![]() > choosing PSR2 in 'Coding standards' dropdown: sniffs marked Local configuration with path to phpcs.bat (PHP_CodeSniffer-3.4.2, manually downloaded) (as documented)ī) Settings > Editor > Inspections: PHP > Quality tools > PHP Code Sniffer Validation: What I think it does is that it uses the PSR2 coding standard and excludes two of the contained rules, inspired by phpcs: How can I modify PSR2 to check that the brace is on the same line as the method? and Ī) Settings > Languages & Frameworks > PHP > Quality Tools: ![]() I copied the whole /PSR2 folder under /PHP_CodeSniffer-3.4.2/src/Standards/, named it PSR2-Custom and edited the contained ruleset.xml to this: The Code Sniffer works as expected, w hen I choose a provided coding standard, but when I change to my custom ruleset, all sniffs disappear. I have a project in PhpStorm 2019.2.3 for which I want to use a custom coding standard ruleset with PHP Code Sniffer.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |