Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
implement Style/DisableCopsWithinSourceCodeDirective cop #7384
This cop forbids enabling or disabling cops within source code with comments like:
# rubocop:disable Style/EmptyBlockParameter
The motivation behind it is to make sure developers fix the issues reported by rubocop and not quickly add comments to ignore them.
Before submitting the PR make sure the following are checked:
I love the idea! In fact, I argued rather stubbornly for implementing this kind of functionality in a cop back in #900, but I was overruled and and the
So, I like the cop and the changes look good (had some minor comments), and I would like to see the
Amazing memory! I had totally forgotten about this!