Module pragma

Module pragma 

Source
Expand description

Pragma support for inline rule ignoring.

Supports comment-based rule ignoring in Helm templates and YAML files:

  • # helmlint-ignore HL1001,HL1002 - ignore specific rules for next line
  • # helmlint-ignore-file - ignore all rules for entire file
  • # helmlint-ignore-file HL1001 - ignore specific rule for entire file
  • {{/* helmlint-ignore HL1001 */}} - template comment format

Structs§

PragmaState
State for pragma processing.

Functions§

extract_template_pragmas
Extract pragmas from template content.
extract_yaml_pragmas
Extract pragmas from YAML content (values.yaml, Chart.yaml).
starts_with_disable_file_comment
Check if content starts with a file-level disable comment.