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 seems that Layout/Tab will only report on tabs when they are part of a line’s indentation – although the documentation says that “this cop checks for tabs inside the source code.”
Expected behavior
In my test file, there is a tab between puts and 42, which I expect Layout/Tab to detect.
# frozen_string_literal: trueputs42
Actual behavior
No offense is reported.
Steps to reproduce the problem
Run rubocop on the file above.
RuboCop version
Include the output of rubocop -V. Here's an example:
It seems that Layout/Tab will only report on tabs when they are part of a line’s indentation – although the documentation says that “this cop checks for tabs inside the source code.”
Expected behavior
In my test file, there is a tab between
puts
and42
, which I expect Layout/Tab to detect.Actual behavior
No offense is reported.
Steps to reproduce the problem
Run
rubocop
on the file above.RuboCop version
Include the output of
rubocop -V
. Here's an example:The text was updated successfully, but these errors were encountered: