jshiell / checkstyle-idea

CheckStyle plug-in for IntelliJ IDEA
https://plugins.jetbrains.com/plugin/1065-checkstyle-idea
Other
889 stars 161 forks source link

support checkstyle_packages #610

Open kdh6429 opened 1 year ago

kdh6429 commented 1 year ago

I am trying to write a separate detection logic using AbstractCheck. To apply this, I need to add related information to checkstyle_packages.xml, but it seems that only checkstyle.xml file is imported from this library. Is there any part I missed? https://checkstyle.sourceforge.io/config.html#Packages

jshiell commented 1 year ago

Hmm. As far as I know, the plugin should handle this - primarily because, other than adding extra checks to the classpath, we don't do anything - Checkstyle itself locates and parses the file.

Sanity check - your check is in a JAR file, the checkstyle_packages.xml is in the root of the JAR file, and it has been added to the third-party checks classpath in the CS-IDEA plugin options?