chindit / actions-phpcs

PHPCS action for GitHub
GNU General Public License v3.0
0 stars 3 forks source link

How to specify custom ruleset? #3

Closed svivian closed 4 years ago

svivian commented 4 years ago

Is there no way to specify a different XML file for a custom ruleset? I don't have phpcs.xml.dist and don't want to clog up the root directory with it. I have a ruleset.xml in another folder.

Or what about custom cmd flags so I can add --standard=path/to/ruleset.xml

chindit commented 4 years ago

That's a good idea.

chindit commented 4 years ago

@svivian I've added a cli arguments on master branch. You can try it by using uses: chindit/actions-phpcs@master and setting your CLI args here:

 with:
     cli: 'YOUR_CLI_ARGS'

Let me know if your have any issue.

svivian commented 4 years ago

Yep all seems to work, thanks!