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

Haml hash attributes spacing linter #48

Closed
wants to merge 4 commits into from
Closed

Haml hash attributes spacing linter #48

wants to merge 4 commits into from

Conversation

seanwalbran
Copy link

Add a linter for checking for spaces inside hash attribute braces, analogous to the Style/SpaceInsideHashLiteralBraces cop for spaces inside ruby hash literal braces.


context 'default config (space)' do
it { should_not report_lint }
end
Copy link
Owner

Choose a reason for hiding this comment

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

We like to separate our blocks with a single blank line, e.g.

...
context ... do
  ...
end
                    # <-- Blank line
context ... do
  ...
end

Copy link
Author

Choose a reason for hiding this comment

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

Updated in 8a02d33

@sds sds added the enhancement label Dec 9, 2014
@sds
Copy link
Owner

sds commented Dec 9, 2014

Hey @seanwalbran, thanks for contributing this linter to haml-lint!

I've left some comments inline. Once those are addressed I'll be happy to merge. Thanks!

@sds
Copy link
Owner

sds commented Dec 12, 2014

Thanks for addressing that feedback, @seanwalbran!

Merged in e6fb407.

@sds sds closed this Dec 12, 2014
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.

2 participants