richardwooding/codemetrics complexity gate

Fail a PR when a function it changes exceeds a cyclomatic/cognitive complexity threshold (diff mode).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathsSpace-separated files/directories to analyze..
max-cognitiveFail when a changed function's cognitive complexity exceeds this (0 = disabled).15
max-cyclomaticFail when a changed function's cyclomatic complexity exceeds this (0 = disabled).0
base-refBase git ref to diff against. Defaults to the pull request's base branch.${{ github.base_ref }}
baselineOptional baseline file; findings recorded in it are suppressed (only new ones fail).""
sarif-fileIf set, also write SARIF results here (upload with github/codeql-action/upload-sarif).""
fail-on-findingsFail the job when new findings remain in the diff (true/false).true
codemetrics-versioncodemetrics release to install (e.g. "v0.7.0") or "latest".latest
github-tokenToken used to download the release binary.${{ github.token }}

no outputs