Checkstyle plugin for eclipse

Eclipse has a checkstyle plugin that points to the wrong encoding methods. Is there any tool or in some way in which some of these problems can be automatically fixed?
 For example, suppose you clean up unused imports. If the tool can automatically visit the entire project and delete unused imports?

+3
source share
2 answers

Eclipse has a cleanup wizard since version 3.3 that can help you complete part of the job. But, in my opinion, the question is asked incorrectly:

  • Checkstyle , . , Eclipse , Checkstyle, .
  • , - , . , . Eclipse , JavaDoc eclipse , , - , , .
  • , . Eclipse . , , .

, :

  • Eclipse Window > Preferences > Java > Code Style > Clean Up, , Checkstyle.
  • Code Organizing > Format Source Code , Java. Window > Preferences > Java > Code Style > Formatter, . , , , , , .
  • , , , , Eclipse.
+5

Source: https://habr.com/ru/post/1759104/


All Articles