brackets-php-code-quality-tools icon indicating copy to clipboard operation
brackets-php-code-quality-tools copied to clipboard

Implement custom ruleset

Open ajaydsouza opened this issue 8 years ago • 3 comments

One good feature worth adding into the options is the use of a custom ruleset

https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/phpcs.xml.dist.sample

I'm happy to try and have a go at this feature, but I'm not familiar with Brackets and how to update the options page for this.

Could you please point me to which files I can look at in this extension so that I could try it out?

ajaydsouza avatar Jul 28 '17 21:07 ajaydsouza

I would be great if you would like to have a go at it. Logic for the settings are in SettingsDialog.js and the view in settings-dialog.html.

It could probably be done in the same way PHP location but pointing to a directory instead.

mikaeljorhult avatar Jul 29 '17 09:07 mikaeljorhult

Thanks. I'll try to see if I can implement this. Will study how you've done the others

ajaydsouza avatar Jul 29 '17 09:07 ajaydsouza

Awesome! Let me know if you have any questions.

mikaeljorhult avatar Jul 29 '17 13:07 mikaeljorhult