-
-
Notifications
You must be signed in to change notification settings - Fork 75
Linter: Implement erb-no-extra-newline linter rule
#557
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
Conversation
e303205 to
d0230ca
Compare
|
I have the same thoughts of this rule as with SpaceInHtmlTag. This rules are "formatting rules", if the Herb formatter could (or can i don't know) verify that a file is correctly formatter, this rule should not be necessary and can be removed from the roadmap for ErbLint compatibility. I left an implementation anyways if you belive it provide some value. Feel free to change the severity from error to warning, or to make this rule an optional rule instead of default. |
marcoroth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @domingo2000! 🙏🏼
Implements the `ExtraNewLine` rule from [ERBLint](https://github.com/Shopify/erb_lint). This rules avoid having multiple extra consecutives new lines in one file. Resolves marcoroth#541 --------- Co-authored-by: Marco Roth <marco.roth@intergga.ch>
Implements the
ExtraNewLinerule from ERBLint.This rules avoid having multiple extra consecutives new lines in one file.
Resolves #541