wpsharks / phings

Just a few Phings we like to use :-)
GNU General Public License v3.0
1 stars 0 forks source link

IDE Helper Exclusion #134

Closed jaswrks closed 8 years ago

jaswrks commented 8 years ago

It might be worth it for us to automatically exclude files with the special name _ide.php.

jaswrks commented 8 years ago

What we can do is add a new exclusion rule here so we can avoid this problem altogether. https://github.com/websharks/phings/blob/dev/src/psr4/targets/linters/phpcs.xml#L45

jaswrks commented 8 years ago

Next Release Changelog:

jaswrks commented 8 years ago

@raamdev Noting also that you can tell PHP Code Sniffer to ignore any given file by adding this line somewhere near the top of the file.

// @codingStandardsIgnoreFile

Referencing: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders