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

Please split up DecorateFunctionMessage #39

Open
mvz opened this issue May 13, 2020 · 0 comments
Open

Please split up DecorateFunctionMessage #39

mvz opened this issue May 13, 2020 · 0 comments

Comments

@mvz
Copy link
Contributor

mvz commented May 13, 2020

Use Case

I'm adding checking with rubocop-i18n to an existing code base so there are a lot of offenses. I'd like to fix the low-hanging fruit first, e.g., multi-line strings, and then move on to the more complex work, e.g., eliminating interpolation. The DecorateFunctionMessage cop checks both of these things and more, so slicing up the work becomes harder.

Describe the Solution You Would Like

I'd like to be able to just run a cop that checks for multi-line strings, or interpolation, and also disable each functionality separately in the RuboCop configuration.

Describe Alternatives You've Considered

I'm using grep right now to allow me to only look at multi-line strings, but it feels like a hack and doesn't allow disabling in the RuboCop config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant