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
lib/transpec/syntax/matcher_definition.rb:12:23: C: IndentHash: Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.
match_for_should: :match,
^^^^^^^^^^^^^^^^^^^^^^^^
However, the pairs cannot be aligned if the first pair is indented with 2 spaces relative to the left curly line, since there is not enough left space in the failure_message_for_should_not: line. IMO, in this case, the longest key should be the target of IndentHash.
With this AlignHash
separator
style hash:... IndentHash registers an offense:
However, the pairs cannot be aligned if the first pair is indented with 2 spaces relative to the left curly line, since there is not enough left space in the
failure_message_for_should_not:
line. IMO, in this case, the longest key should be the target of IndentHash.Also autocorrection breaks the code:
@jonas054 Can you take a look?
The text was updated successfully, but these errors were encountered: