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
Exclude files in .gitignore #595
Comments
👍 I think it's a neat idea. It doesn't change anything for people who don't use erb pre-processing, and it's versatile, can be used for other things things than excludes based on |
I'm not against this feature. But if the new redesigned configuration that I'm planning (yeah I must propose the new design quickly :) ) is introduced, there will be some overlapped features. |
@yujinakayama Having the config do this would be a much better solution since it can parse .gitignore easily. This could be a solution in the meantime and get ripped out later when the new config is in place. Depends when the configuration is expected. Happy either way. |
@yujinakayama How's that redesigned configuration coming along? |
Sorry for the late. I'll post a draft on this weekend. |
Any news here? |
@yujinakayama Ping :-) |
OK, I'll really do in a few days. :) |
@yujinakayama Great! |
@yujinakayama Any news here? |
Shame on me. 😵 Will do in this weekend. |
Closing this in favour of #1151. |
@yujinakayama just wanted to ask if excluding files from thanks |
I think this issue should be re-opened due to closed #1151. |
Please, @bbatsov or @yujinakayama |
PRs welcome. :-) I guess we're back to the erb idea, as it seems unlikely we'll ever move away from yml. |
I'm not sure about ERB or Regexps in YAML, but I think, that files from |
I know this is closed, but what about files in this file is local to the repository clone, so is available for individual clones only. is described in the official git documentation I'm using it to exclude a file that I use to help me with my personal workflow, that the rest of the team doesn't want on the repo. |
I'm using global gitignore, because files and directories specific for me are common. It's uncomfortable to duplicate the same paths in relatives |
I'll implement the ERB idea, and push it as a solution for this issue. |
…ation [Fix #595] Add ERB pre-processing for configuration files
In case anyone finds this issue because they want to ignore all files/directories from .gitignore automatically, here is the relevant link for how to do it: https://docs.rubocop.org/rubocop/1.27/configuration.html#pre-processing |
The comment by @sandstrom links to an older version of rubocop docs. It has since been updated with a fix for ignored directories: https://docs.rubocop.org/rubocop/configuration.html#pre-processing |
Just be careful that if there are no ignored files ( |
I think this would be a nice feature, the easiest implimention would be to run the
rubocop.yml
through erb so that you could have something like:I'd be happy to look at a PR if you think this is useful.
The text was updated successfully, but these errors were encountered: