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:
Excludes:
<% `git whatever`.each_line do |path| %>
- <%= path %>
< % end %>
I'd be happy to look at a PR if you think this is useful.
:+1: 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 .gitignore.
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. :dizzy_face: Will do in this weekend.
Closing this in favour of #1151.
@bbatsov #1151 is closed now. Does it mean that excluding files form .gitignore won't be supported any time soon?
@yujinakayama just wanted to ask if excluding files from .gitignore is somewhere in your roadmap?
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 .gitignore can be excluded by default. If somebody will want to include them — we can make an option later, but it doesn't seem normal.
I know this is closed, but what about files in .git/info/exclude, or more generally $GIT_DIR/info/exclude ?
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 .git/info/exclude.
I'll implement the ERB idea, and push it as a solution for this issue.
Most helpful comment
@bbatsov #1151 is closed now. Does it mean that excluding files form
.gitignorewon't be supported any time soon?