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
Rubocop disable AccessModifierDeclarations? #370
Comments
@Fryguy This will make it more complicated, but this is also an option for individual declaration that I prefer over inline declaration: class Foo
def method0
end
private :method0
end Not sure if this is something that is affected by this rule. |
That style is part of |
Oh, then in that case, I guess I am going to be "that guy"... sorry ¯\_(ツ)_/¯ |
Oh I'm sorry...I'm completely wrong...that is part of class Blah
def foo
end
private :foo
end blah.rb:5:3: C: Style/AccessModifierDeclarations: private should not be inlined in method definitions.
private :foo
^^^^^^^ |
Geez... now you make me look bad... thanks.... so offended... And now I look like I am just one of the 🐑 ... |
And finally, what's the decision ? |
Looks like disable is the choice...I'll send up a PR for that. |
See https://rubydoc.info/gems/rubocop/0.69.0/RuboCop/Cop/Style/AccessModifierDeclarations
tl;dr
I would like to disable this cop. I like inline modifiers, but this new cop is enforcing the
group
style. I don't think we have a preference collectively, so I'd like to disable it and allow forinline
in addition togroup
.Please vote with what you think.
👍 - allow developers to do both
group
andinline
(disable
the cop)👎 - only support
group
, do not allowinline
(leave it as is)🚀 - only support
inline
, do not allowgroup
(opposite than currently)The text was updated successfully, but these errors were encountered: