module

Krikri::Lint::FileDiscovery

Constants

EXTENSIONS = [".yml", ".yaml"] of ::String
SKIP_DIRS = [".git", ".hg", ".svn", "node_modules", "files", "templates", "library", "module_defaults"] of ::String

Instance methods

directory_targets(targets : Array(String)) : Array(String)

Targets that were directories rather than files. Upstream keeps a walked directory in its lintable set (with no kind, so no rules run on it), which makes it count towards the "on N files" total.

Source
discover(targets : Array(String)) : Array(String)

Given user-supplied targets (files or directories), return the list of YAML files to lint. A file target is kept as-is; a directory is searched recursively for .yml/.yaml, skipping VCS and non-lintable role directories (files/templates hold no YAML lint targets).

Source
missing_targets(targets : Array(String)) : Array(String)

Targets that are neither files nor directories. Upstream lints these instead of erroring: each yields load-failure matches.

Source