-
Notifications
You must be signed in to change notification settings - Fork 280
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
Exclusions while generating the TODO file #1406
Comments
Yes, you can just use the regular "exclude_path" option in your configuration file that is outlined here, so e.g.: # Directories below will not be scanned at all
exclude_paths:
- lib/legacy
- lib/rake/legacy_tasks Reek will use the same configuration it uses for regular runs for the generation of the todo list as well. |
This part of the README confuses me:
So this is what I do to generate the
After this, I run |
Yeah, you're right, that IS super confusing and we really should fix this 😆 So the way that this could work is that you copy the whole content of .todo.reek into .reek.yml. But that is very inconvenient for sure, no question about that. @mvz wdyt having the TodoCommand recognise if there is a configuration file present (either the default one or whatever is passed in via -c option) and if there is, append to that instead of creating a new file? Coupled with explanatory output like
or
we might be able to remove all confusion. |
Yeah that's probably the best solution. |
Is there a reason behind having only one configuration file? I find the approach of Rubocop with |
Yes, we discussed this quite extensively and the answer is that we see more benefit in a very simple and straight forward configuration handling (which includes our own source code complexity) than in supporting every use case of multiple configuration files. I do agree though that your use case is a very good one which we'll hopefully fix with the solution outlined above. I'll probably look into implementing this this weekend. |
Closing this one since the initial question has been answered.
We will make it possible to include additional configuration files in the future. See #1411 for details ;) |
@troessner maybe triple-backticks are not ideal for quoting human text 😉. |
@mvz good point, fixed, thanks ;) |
Hey,
I would like to start using reek in a project. I want reek to skip some directories/paths as they contain legacy files.
I cannot find a way to generate the TODO file while excluding those directories/paths. Is this possible?
The text was updated successfully, but these errors were encountered: