问题
I've got a problem trying to import my check-style to IDEA 14. That's what I do:
- File -> Settings -> Inspections -> Import
- There I choose my checkstyle.xml and then I don't know why but TempProfile is created.
- 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