Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Checkstyle Disable "Lline has trailing spaces"

I'm using eclipse on Win 7. I'm also using checkstyle and find that checkstyle is complaining about trailing white space in comments.

I wish to disable this check in checkstyle, not make any modifications to my environment as I wish to share the check style file with other developers in the office an ensure everyone can see the code in the same checkstyle "light" :)

I'm okay with other built in features that would solve this problem. I've tried: Ctrl+Shift+F and Ctrl+Alt+C. Neither of which auto fix the trailing space automatically.

enter image description here

like image 297
James Oravec Avatar asked Apr 11 '13 13:04

James Oravec


1 Answers

Found the way to disable it in checkstyle:

Preferences -> CheckStyle -> Regexp -> RegexpSingleLine (Disable)

like image 199
James Oravec Avatar answered Sep 28 '22 05:09

James Oravec