-
Notifications
You must be signed in to change notification settings - Fork 71
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 rake task to detect trailing whitespace in markdown files #151
Comments
maybe we also want to think a step further and offer something to automatically remove the whitespaces? |
@bastelfreak isn't this checked for by puppet-lint and rubocop both? |
Our existing rake tasks seem to ignore it. I never get complaints when I run them local, just my vim does. |
Our current setup already does that. Puppet lint
Rubocop
We could use something like |
@bastelfreak puppet-lint is already doing this for us. Closing as this issue is quite old and seems to be resolved. Please re-open if I'm missing something. |
Personally, I would also like to see our markdown files without trailing whitespace. This is currently not implemented. |
This PR can easily be changed to add other files that should be checked for trailing whitespace.
@bastelfreak opened a PR to fix this at #532 |
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace.
This PR can easily be changed to add other files that should be checked for trailing whitespace. Disable rubocop cop's in Rakefile that are not actually improving code Enabling these cops, with regards to the trailing_whitespace task, make the code more difficult to read and understand. The ability to understand the code easily should take precedence over any style.
This PR can easily be changed to add other files that should be checked for trailing whitespace. Disable rubocop cop's in Rakefile that are not actually improving code Enabling these cops, with regards to the trailing_whitespace task, make the code more difficult to read and understand. The ability to understand the code easily should take precedence over any style.
This implements a rake task check:trailing_whitespace. The actual check has mostly been written by Garrett Honeycutt. Co-authored-by: Garrett Honeycutt <code@garretthoneycutt.com>
This implements a rake task check:trailing_whitespace. The actual check has mostly been written by Garrett Honeycutt. Co-authored-by: Garrett Honeycutt <code@garretthoneycutt.com>
(GH-151) Implement whitespace checks for markdown
@bastelfreak I think this issue can be closed since it has been solved via #541. |
IMO it is best practice to avoid trailing whitespace. I'm not sure if any of our tasks already can handle this or if there are existing solutions. Any opinions?
The text was updated successfully, but these errors were encountered: