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

Add linter to enforce character used for indentation #81

Closed
wants to merge 1 commit into from

Conversation

gburt
Copy link
Contributor

@gburt gburt commented Jun 22, 2015

Disabled by default, since tabs are acceptable in HAML, but folks may
want to enable this to enforce spaces-only.

Disabled by default, since tabs are acceptable in HAML, but folks may
want to enable this to enforce spaces-only.

# rubocop and overcomit HardTab checks don't like tabs either, but they don't
# check for hex, so use that to avoid triggering them
let(:tab) { "\x09" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The \t escape sequence allows us to write tabs in Ruby without using literal tab characters, and is a little more readable.

@sds
Copy link
Owner

sds commented Jun 23, 2015

Thanks for the pull request, @gburt!

I've merged your change in 7707e61 and changed it to support specifying which type of indent character to enforce in 134c414. The name has been changed to Indentation to reflect this more generic behavior.

@sds sds closed this Jun 23, 2015
@sds sds changed the title New linter: SpacesForIndentation Add linter to enforce character used for indentation Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants