-
Notifications
You must be signed in to change notification settings - Fork 225
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
Ignore/exclude files #11
Comments
As of now, no. But I was thinking of implementing just that as a solution for issue #7. The reason for delaying that feature is that I'm torn between having it as a cli option (a I think the file approach is more powerful and flexible but honestly I'm tired of each gem having its own dotfile. I can totally see why this would be good to have but I'm curious, what's your use case? |
I agree, the file approach is a better solution. And a file can be committed within the project repository. My first use case is that I want to focus on some parts of the project. So I want to disable other parts and specially tests. That way I'll just have an overview of the classes that interest me. |
Same here. Currently RubyCritic complains about generated files like |
Actually, for Rails projects running But don't worry guys, this on my radar now. |
Fantastic! And thank you for a great gem! 👍 |
Great! 😄 |
I am looking forward to this feature, as I don't want to run against 'vendor'. Also, thank you @guilhermesimoes for a useful gem! |
What's the status for this feature @guilhermesimoes ? Did you decide which you wanted to go with it? (yml config or CLI) |
+1 to adding the command line flag to ignore a pattern or path |
Due to RC's nature this is not really trivial since we aggregate multiple tools and those tools have a different understanding of how you can exclude and include paths. And some might not even offer an "exclude" functionality. |
is there anything that let's me exclude certain method calls? |
No, not at the moment I'm afraid. |
@troessner thanks a lot for the reply! I'll have a look at the config options. --todo doesn't seem to be included in my version of reek/rubycritic and currently parser blocks an update - I'll try to resolve it adapt the config. Thanks a lot! |
The latest version of RubyCritic bundles Reek 3.11 which includes the --todo flag, so you just need to update RubyCritic and you're good to go ;) |
@troessner thanks a lot! And keep up the great work :) |
Hi @cveneziani Define a rake task : you can specify paths as a FileList. Filelist are essentially arrays with helper method. So you can easily white list or black list whatever path you want.
I propose we close this issue, except if you prefer we write the solution in the Readme ? |
Well, nowadays, I just run it on |
I still think there's a the need for this feature since rubycritic should not rely on rake / rails to work flawlessly. The tools rubycritic uses already support similar flags... |
i have also gotten used to running it just in |
Note my comment here where the .reek.yml -- which includes an exclude-this-file statement -- is being ignored by rubycritic: #270 (comment) |
Is there a way to tell to rubycritic to exclude some file patterns?
The text was updated successfully, but these errors were encountered: