AutoRefactor icon indicating copy to clipboard operation
AutoRefactor copied to clipboard

Provide Eclipse CS preferences to run checkstyle directly in eclipse

Open Bananeweizen opened this issue 6 years ago • 2 comments

The build of this project fails on checkstyle errors. The Eclipse plugins however don't have any Eclipse CS configuration. Therefore during editing new checkstyle failures are not reported and will only be found later during the PR build. I can create the necessary preferences in the Eclipse projects, if you want me to.

Bananeweizen avatar Nov 11 '19 15:11 Bananeweizen

If you do it, I will merge it.

Fabrice-TIERCELIN avatar Nov 11 '19 16:11 Fabrice-TIERCELIN

You can also use Save actions to save time, for example, for trailing spaces:

  • Window -> Preferences -> Java -> Editor -> Save actions -> Perform the selected actions on save -> Additional actions -> Remove trailing white space on all lines
  • Window -> Preferences -> Java -> Code style -> Formatter -> Edit -> Indentation -> Tab policy -> Spaces only

What are the other CS rules that bores you?

Fabrice-TIERCELIN avatar Nov 11 '19 17:11 Fabrice-TIERCELIN