-
Notifications
You must be signed in to change notification settings - Fork 37
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
Reference directories when using config file #15
Comments
I believe the configuration file also requires |
Thank you for quick response! Maybe moving code before reading config file to place right after could help, but I cannot be sure as I did not dig into the sources much yet. Just discovered that for API CodeDetector object with |
I decided it was best to deal with the root cause of this issue, which is allowing both a config file and specific parameters to be passed as arguments to the The PR is here: #16. If this change would be particularly disruptive for your project feel free to comment on the PR. |
It's not a big deal, I am ready to update my project once the new release is coming to the PyPi, since I am using this tool as the pip requirement. |
Is it correct that from now API allows only 2 options: a) full config parameters set up and b) passing config file instead? So I need to save current config dict to file first and then pass the file path to process? |
Sorry, the PR description could have been more clear. It's still a dict object, so you won't have to save it first. |
The fix is in version 0.4.1 and is now on pypi. Your existing code should still work but when you switch to the |
It is told that if
reference_directories
list is empty, they become equal totest_directories
list (which is strictly required in any variant).But it is not told (at least it is not cleared out) that if using tool with
-c
flag,reference_directories
list should be provided non-empty in config file and it will not become equal to (copied from)test_directories
list.And this 'cross-confusing rule' got confirmed when I've inspected the code here (copy) and here (no copy) that empty
reference_directories
is only allowed for full-optioned CLI run, but not with-c
-run.Can you state this restriction more clear in the docs or, probably better - update the
-c
mode to behave equal to full-optioned run?The text was updated successfully, but these errors were encountered: