An open API service indexing awesome lists of open source software.

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

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`