Eclipse Checkstyle Disable "Lline has trailing spaces"

checkstyle, eclipse, java

Solution

Found the way to disable it in checkstyle:

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

Problem

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.

Original source