marco-audibene/Code Quality Scan
Runs code quality checks using PMD and ESLint
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token for creating annotations and comments | yes | — |
| sourcePath | Root source path to filter changed files (e.g., src/, force-app/) | yes | — |
| file-types-config | JSON configuration of file types to analyze | yes | — |
| scanChangedFilesOnly | Whether to scan only changed files (true) or all files (false) | no | true |
| enableScanCache | Enable caching for faster scans | no | true |
| outputFormats | Comma-separated list of output formats (github,json,html,text) | no | github |
| maxCriticalViolations | Maximum number of critical/high violations allowed before failing | no | 0 |
| maxMediumViolations | Maximum number of medium violations allowed before failing | no | 10 |
| previousViolationsFile | Path to file containing previous violations to ignore | no | "" |
| failOnQualityIssues | Whether to fail the workflow if quality issues exceed thresholds | no | true |
| check-name | Name of the check run to create | no | Code Quality Scan |
| strictNewFiles | Whether to apply strict rules to new files (any violation fails) | no | true |
| maxViolationsForModifiedFiles | Maximum number of violations allowed for modified files before failing | no | 0 |
| maxCriticalViolationsForModifiedFiles | Maximum number of critical/high violations allowed for modified files before failing | no | 0 |
| installSalesforcePlugins | Whether to install Salesforce-specific ESLint plugins | no | false |
| installTypeScriptPlugins | Whether to install TypeScript-specific ESLint plugins | no | false |
Outputs
| name | description |
|---|---|
| total-violations | Total number of violations found |
| critical-violations | Number of critical/high violations found |
| medium-violations | Number of medium violations found |
| json-report-path | Path to the JSON report file (if generated) |
| html-report-path | Path to the HTML report file (if generated) |
| text-report-path | Path to the text report file (if generated) |
| violations | JSON string containing all violations found |
| new-file-violations | Number of violations in new files |
| modified-file-violations | Number of violations in modified files |
| action-required | Whether violations exceed configured thresholds and require action |