You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a known limitation of the IndentationWidth cop that it can't catch inconsistent indentation in all cases (only in begin..end blocks). Here's an excerpt from the specs:
it'registers an offence for bad indentation of a def body'doinspect_source(cop,['def test',' func1',' func2',# No offence registered for this.'end'])expect(cop.messages).toeq(['Use 2 (not 4) spaces for indentation.'])end
But if we want to add more consistency checking, then I guess this cop is where it should go.
As of dc7544f, using:
Then:
It looks to me like the IndentationWidth cop should catch this.
The text was updated successfully, but these errors were encountered: