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

Disable UnnecessaryStringOutput haml linter #1131

Merged
merged 1 commit into from
Jun 26, 2017

Conversation

jhanggi
Copy link
Contributor

@jhanggi jhanggi commented Jun 20, 2017

The linter prefers %p Note: #{order_detail.note} to %p= "Note: #{order_detail.note}”. We usually go with the latter where the string
interpolation is explicit.

I'm open to debate on this. This can probably wait until Meara is back so she can weigh in on it.

The linter prefers `%p Note: #{order_detail.note}` to `%p= "Note:
#{order_detail.note}”`. We usually go with the latter where the string
interpolation is explicit.
@jhanggi jhanggi requested review from noelrappin and meara June 20, 2017 23:27
@noelrappin
Copy link
Contributor

I kind of prefer the former, but don't really have strong feelings about it either way.

Copy link
Contributor

@noelrappin noelrappin left a comment

Choose a reason for hiding this comment

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

See above

@meara
Copy link
Contributor

meara commented Jun 26, 2017

I would probably go with the explicit string interpolation option, but I don't have strong feelings about it.

With style things, I tend to bias towards the more obvious formatting, just because I think it helps make codebases friendlier for newer devs.

@jhanggi
Copy link
Contributor Author

jhanggi commented Jun 26, 2017

I prefer it with = and the quotes mainly because my editor syntax highlights it as a string. But that's just me.

@noelrappin
Copy link
Contributor

I'm fine with either

@jhanggi jhanggi merged commit c055655 into master Jun 26, 2017
@jhanggi jhanggi deleted the disable_string_output_haml_linter branch June 26, 2017 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants