drbaher/contract-lint
Lint contracts for internal-consistency defects and gate the build; optionally upload SARIF to GitHub code-scanning.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| paths | Files and/or directories to lint (space- or newline-separated). Directories are searched for .md/.markdown/.txt/.html/.docx. | no | . |
| fail-on | Severity that fails the build: error | warning | none. | no | error |
| version | contract-lint version to install (default: latest from PyPI). | no | "" |
| args | Extra arguments passed through to contract-lint (e.g. '--enable signature-block --config .contract-lint.json'). | no | "" |
| sarif-file | Path to write the merged SARIF report. | no | contract-lint.sarif |
| upload-sarif | Upload the SARIF report to GitHub code-scanning (needs 'security-events: write'). | no | true |
Outputs
| name | description |
|---|---|
| findings | Total number of findings across all linted files. |
| exit-code | Gate exit code (0 clean, 1 findings at/above fail-on). |