Intellij IDEA checkstyle

别来无恙 提交于 2019-11-29 05:32:23

问题


I've got a problem trying to import my check-style to IDEA 14. That's what I do:

  1. File -> Settings -> Inspections -> Import
  2. There I choose my checkstyle.xml and then I don't know why but TempProfile is created.
  3. Hmm, ok, looks like this TempProfile can check my code using my checkstyle.xml but it doesn't!

回答1:


Go to the Checkstyle configuration page via File → Settings, then typing checkstyle into the search box:

Press the plus icon to add your checkstyle.xml. Activate your checkstyle.xml by clicking the checkbox in the column labeled Active.

That's it!
If you want real-time scans, you can go to the Inspections dialog and activate the real-time scan:



来源:https://stackoverflow.com/questions/26955766/intellij-idea-checkstyle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!