schorfES / grunt-lintspaces

A Grunt task for checking spaces in files.
https://npmjs.com/package/grunt-lintspaces
MIT License
31 stars 9 forks source link

Make destructive changes #13

Closed corysimmons closed 10 years ago

corysimmons commented 10 years ago

Instead of just warning. Why not fix things at the same time? I understand not everything can do this, but for something like newlines at the end of files it shouldn't be a problem.

schorfES commented 10 years ago

This task is only meant to validate your files. To change, update or beautify your code I think this should be done by other tasks. Its also inconsistent to update files according one rule but keep the errors from another...

Yes, I think this would save your time but when just validating your code you maybe learn from time to time doing it the correct way... ;-)

corysimmons commented 10 years ago

np, JSBeautifier for Grunt can do most of it so Lintspaces just goes over it to double check.

schorfES commented 10 years ago

Yep, and you could use the .editorconfig for a lot of common editors to keep your spaces the way you like it.