-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Configurable IndentationWidth #872
Comments
Sure - we'll accept such a PR. We're all for configurable style choices. The reason there's currently none for this particular cop is that nobody expressed an interest to make this configurable. |
Awesome—I'll get started on implementing it then :)— On Thu, Mar 13, 2014 at 8:33 AM, Bozhidar Batsov [email protected]
|
@adamnbowen Ping :-) |
Lol, don't worry, it's still on my TODO list ;) |
@adamnbowen I'll be closing this. Feel free to reopen it when you're ready with the implementation. |
Ping, 4 spaces is wayy more readable for me! |
I'm reopening and assigning myself. I have an implementation almost ready. |
[Fix #872] Make IndentationWidth configurable
Before I start working on a pull request, I want to test the waters a bit: Are you open to making IndentationWidth configurable?
My team has adopted a 4 space indentation width across languages for consistency's sake, but I'm interested in using rubocop to enforce all other parts of the ruby style guide. I know I can just turn off indentation checking in rubocop, but I'd rather have it check for correct 4 space indentation as well.
It looks like a few files throughout the library would require changing (references to
IndentationWidth::CORRECT_INDENTATION
), and the tests forIndentationWidth
would also need adjustment, as they have2
hard-coded in their message checks (or at the very least, we'd want to add a few tests checking for a configuredIndentationWidth::CORRECT_INDENTATION
).I'd rather not have to monkey patch something that ideally could just live in the
.rubocop.yml
.So if I take a stab at a pull request, are you likely to consider merging it in?
The text was updated successfully, but these errors were encountered: