You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Thanks for the report. I think I know what's going on here.
If you run codeclimate analyze foo.php, the CLI will print out issues even if foo.php is excluded. It assumes that if you are providing a path to a file, you want it to be analyzed, even if it is otherwise excluded. The atom package shells out the CLI and runs codeclimate analyze -f json foo.php.
I think this behavior is expected based on the implementation, but I could see how it's not how you'd expect it to behave. Will you outline what your expectations are? I could imagine adding a flag to the CLI such as --respect-excludes, which the package would use. Can you think of any cases where that wouldn't do the right thing?
Most linters actually follow this current behavior: If you give an explicit path it is ran even if the configuration file says to ignore it. There are some that do ignore it anyway, sometimes printing a warning that it is being ignored. Those that follow the second pattern have an option to ignore the ignoring.
As far as implementing it here, the above option is probably just as good a solution as others.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The exclude_paths rules are followed when running
codeclimate analyze
, but in linter-codeclimate (phpcodesniffer) they are not:Below are my .codeclimate.yml and phpcs.xml files:
The text was updated successfully, but these errors were encountered: