Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.coala taking priority over command-line arguments #6086

Open
Seanny123 opened this issue Nov 21, 2019 · 1 comment
Open

.coala taking priority over command-line arguments #6086

Seanny123 opened this issue Nov 21, 2019 · 1 comment

Comments

@Seanny123
Copy link

I have created a repo to demonstrate this error:
https://github.com/Seanny123/coala-fail

Expected Behaviour

coala -f=cfail/check.py would only run bears on the file check.py.

Actual Behaviour

In .coala, the rule files=**.py takes priority over the command line argument -f=cfail/check.py. Thus, both check.py and ignore.py are checked.

Work-Around

Anytime I want to verify an individual file, I have to delete the files= line from .coala. This is a bit inconvenient and goes against my expectations.

In this intended behaviour or a bug?

@codehobbyist06
Copy link

Yes, I have reproduced this issue and it persists. What actually happens is coala first runs the settings given in the coafile and then the settings given by cli(I have checked this by running coala in debug mode). According to the coala documentation this is a bug because it says that,

Settings given in the project-wide coafile override all settings given by other files and can only be overridden by settings given via the command line interface

Can someone from coala maintainers pls tell how this issue can be resolved?
According to me, I first need to check the flow of programs to find the file that is responsible for this behaviour. Can someone help with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants