Skip to content
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

Flag to ignore AllCops/Exclude inheritance #4328

Closed
rambleraptor opened this issue Apr 27, 2017 · 1 comment
Closed

Flag to ignore AllCops/Exclude inheritance #4328

rambleraptor opened this issue Apr 27, 2017 · 1 comment

Comments

@rambleraptor
Copy link

It would be helpful to let Rubocop have a flag that allows AllCops/Exclude inheritance to be turned off.

Something like
``rubocop --ignore-parent-exclusion```

If you have folder tree like this:

- root folder
     - some large submodule
     - some code relating to root
     - a Rubocop.yml file that ignores the submodule

It can be necessary to want to run Rubocop inside of root and ignore the submodule because they're separate projects. At the same time, you may want to run Rubocop inside of the submodule and not have to worry about the Rubocop.yml rules from the root folder.

@nelsonjr
Copy link

I have an implementation for this. I will send a PR as soon as I finish the PR checklist.

nelsonjr pushed a commit to nelsonjr/rubocop that referenced this issue Jun 19, 2017
…Cops/Exclude inheritance.

It prevent Rubocop from excluding files listed in parent folders. This is useful
to run cops on folders that are normally excluded from larger tree structures.
nelsonjr pushed a commit to nelsonjr/rubocop that referenced this issue Oct 2, 2017
…Cops/Exclude inheritance.

It prevent Rubocop from excluding files listed in parent folders. This is useful
to run cops on folders that are normally excluded from larger tree structures.
jonas054 added a commit that referenced this issue Oct 2, 2017
[Fix #4328] Add `--ignore-parent-exclusion` flag to ignore AllCops/Ex…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants