https://github.com/szepeviktor/phpcs-ruleset-validator
GitHub action for PHPCS rulesets
https://github.com/szepeviktor/phpcs-ruleset-validator
action github-actions phpcs phpcs-standard ruleset schema
Last synced: about 2 months ago
JSON representation
GitHub action for PHPCS rulesets
- Host: GitHub
- URL: https://github.com/szepeviktor/phpcs-ruleset-validator
- Owner: szepeviktor
- License: mit
- Created: 2023-02-04T14:21:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T04:23:22.000Z (about 3 years ago)
- Last Synced: 2026-02-11T21:58:15.361Z (5 months ago)
- Topics: action, github-actions, phpcs, phpcs-standard, ruleset, schema
- Language: Shell
- Homepage: https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Validate PHPCS rulesets
This is an action for GitHub Actions. It runs `xmllint` on each listed ruleset file.
```yaml
- name: "Validate ruleset"
uses: "szepeviktor/phpcs-ruleset-validator@v0.4.0"
with:
# When you indent with tabs
# xmllint_indent: "\t"
xml_ruleset: "RulesetName/ruleset.xml"
```
You can use any key in `with`.
There are two special keys
1. for non-default PHPCS shema path: `xml_phpcs_schema`
2. for XML file indentation string: `xmllint_indent`