jzahedieh
jzahedieh

Reputation: 1579

PHPStorm 8 version control (git) scope to ignore files in PHP_CodeSniffer

I would only like to run an inspection (phpcs) on files that are not ignored by git as the core code of Magento (which is ignored) does not really have code style so the inspector goes wild.

So I see in Settings | Scopes you need to match as a pattern, is it possible to define the .gitignore files somehow.

I think this is not possible, so any other solutions of keeping files out of PHPCodeSniffer would be appreciated.

Upvotes: 2

Views: 208

Answers (1)

Kirill Morozov
Kirill Morozov

Reputation: 146

You can configure JetBrains product integration with phpcs. Integration will bring you even more flexibility.

Please check documentation http://www.jetbrains.com/idea/webhelp/using-php-code-sniffer-tool.html

Upvotes: 1

Related Questions