2

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.

jzahedieh
  • 1,570
  • 1
  • 15
  • 27
  • 1
    You will have to add such ignored files/patterns into a scope manually -- they will not be magically read from `.gitignore` (or any other similar file). – LazyOne Sep 23 '14 at 09:17

1 Answers1

1

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