codeclimate / codeclimate-phpcodesniffer

Code Climate Engine for PHP Code Sniffer
MIT License
28 stars 23 forks source link

Engine flags issues under .git #14

Closed pbrisbin closed 7 years ago

pbrisbin commented 8 years ago

There seems to be a "this is not a PHP file" check and it's generating issues for files under .git. This 1) doesn't make sense and 2) causes problems when we attempt to render these issues on the site.

pbrisbin commented 8 years ago

The fix is likely to add and $f !== '.git' here.

opalenet-yann commented 8 years ago

Noticed a similar issues, a temporary fixed seems to add into the codeclimate.yml the phpcondesniffer config

phpcodesniffer:
    enabled: true
    config:
      file_extensions: "php"
dblandin commented 7 years ago

I'm pretty sure this was fixed as of https://github.com/codeclimate/codeclimate-phpcodesniffer/pull/16.

Let us know if that's not the case!