je_load_density.utils.linter.action_linter
Action JSON linter.
Statically checks a LoadDensity action JSON for unknown commands,
hard-coded URLs, weak parameter usage, missing tasks, and a few other
foot-guns. Returns a list of LintFinding records — does not raise
unless the input is structurally invalid.
Functions
|
Lint an action JSON. |
|
Read an action JSON file from disk and lint it. |
Classes
|
One rule hit. |
- class je_load_density.utils.linter.action_linter.LintFinding(rule: str, severity: str, message: str, location: str = '')
Bases:
objectOne rule hit.
severityiserrororwarning.- as_dict() Dict[str, str]
- location: str = ''
- message: str
- rule: str
- severity: str
- je_load_density.utils.linter.action_linter.lint_action(actions: List[Any] | Dict[str, Any], known_commands: Set[str] | None = None) List[Dict[str, str]]
Lint an action JSON. Returns a list of finding dicts.
- je_load_density.utils.linter.action_linter.lint_action_file(path: str, known_commands: Set[str] | None = None) List[Dict[str, str]]
Read an action JSON file from disk and lint it.