equisoft-actions/PHP_CodeSniffer
Lint PHP with PHP_CodeSniffer
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| standard | The name or path of the coding standard to use | yes | ./phpcs.xml |
| ignore | Comma delimited list of files to ignore | yes | vendor |
| extensions | Comma delimited list of extensions to lint | yes | php |
| paths | Space delimited list of paths to lint. Not used when only-changed-files is enabled. | yes | . |
| report-name | The name of the archived report. It must follow the convention detailed by our ADRs. | yes | phpcs.junit.xml |
| report-retention-days | Duration in days to preserve reports. | no | 5 |
| extra-args | Extra arguments to pass to the phpcs binary | no | — |
| default-branch | Default branch to compute changed files | yes | main |
| only-changed-files | Run phpcs only on changed files compared to master. Or previous commit for master branch. | no | false |
| changed-files-pattern | File path pattern. | yes | \.php |
| changed-files-threshold | If changed file count is greater than this number, perform a full phpcs. | yes | 150 |
| working-directory | Workflow working directory | no | . |
Outputs
no outputs