Skip to content
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

Layout/Tab ignores tabs that are not indentation #5429

Closed
bquorning opened this issue Jan 10, 2018 · 0 comments
Closed

Layout/Tab ignores tabs that are not indentation #5429

bquorning opened this issue Jan 10, 2018 · 0 comments
Assignees
Labels

Comments

@bquorning
Copy link
Contributor

bquorning commented Jan 10, 2018

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: true

puts	42

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:

$ rubocop -V
0.52.1 (using Parser 2.4.0.2, running on ruby 2.4.2 x86_64-darwin15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants