Quality
quality
Node quality rules — diff size (git, language-agnostic) and eslint-security.
QUALITY_DIFF_SIZEis puregit diffand has no language specifics, so the node variant subclasses the Python rule and only re-declares its framework registration — one implementation, both ecosystems.QUALITY_SECURITYports the Python bandit rule's intent via eslint-plugin-security, filteringsecurity/*findings out of the same ESLint JSON run.
NodeDiffSizeRule
dataclass
Bases: DiffSizeRule
Diff-size rule for node projects — identical git-based logic.
git diff is language-agnostic, so this reuses the Python
implementation wholesale; only the framework registration differs.
Lives in lint like the Python DiffSizeRule.
Source code in packages/axm-audit/src/axm_audit/core/rules/node/quality.py
NodeSecurityLintRule
Bases: NodeToolRule
Score eslint-plugin-security findings (the bandit pendant for TS/JS).
Mirrors the Python QUALITY_SECURITY: 100 - findings * 15. Reuses the
project's ESLint config (which must enable eslint-plugin-security) and
filters the security/* ruleIds from the JSON output.
Source code in packages/axm-audit/src/axm_audit/core/rules/node/quality.py
args
property
Run ESLint over the project with the JSON formatter.
rule_id
property
Unique identifier (shared with the Python security rule).
score_output(parsed, project_path)
Score by the count of eslint-plugin-security findings.