struct

Krikri::Lint::LintConfig

Inherits Struct < Value < Object

.ansible-lint config file plus its CLI flag overrides.

Constants

DEFAULT_WARN_LIST = ["experimental", "jinja[spacing]", "fqcn[deep]"]

Upstream's DEFAULT_WARN_LIST (ansiblelint/config.py): rules in here render as warnings and count under warnings in the summary instead of as failures, unless a config file provides its own warn_list (which replaces the defaults wholesale; upstream's merge_config extends only a CLI-provided list onto the file's).

Constructors

discover

Searches cwd upward for a .ansible-lint file, like upstream's project-dir discovery.

Source
from_file(path : String) : LintConfig
Source
new(skip_list : Array(String) = [] of String, warn_list : Array(String) = DEFAULT_WARN_LIST.dup, enable_list : Array(String) = [] of String, tags : Array(String) = [] of String, exclude_paths : Array(String) = [] of String, profile : String = "production", config_dir : String = ".", file_warn_list : Array(String) | Nil = nil)
Source

Instance methods

config_dir
Source
enable_list
Source
exclude_paths
Source
excluded?(path : String) : Bool

Excluded paths are dropped before linting, so they are neither reported nor counted in the summary's file total.

Source
file_warn_list

The warn_list a config file defined, nil when it had none (and the defaults stand); lets the CLI merge reproduce upstream's "CLI list, extended with the file's" behavior exactly.

Source
profile
Source
skip_list
Source
tags
Source
warn_list
Source