jshiell / checkstyle-idea

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

Add a suppression file to a configuration file #641

Closed NilsRenaud closed 6 months ago

NilsRenaud commented 6 months ago

I would like to add a custom suppression file to a specific configuration file in order to skip some checkstyle rules.

This is possible in maven with:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>3.3.1</version>
        <configuration>
          <configLocation>checkstyle.xml</configLocation>
          <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
        </configuration>
      </plugin>
jshiell commented 6 months ago

Suppression files are built into base Checkstyle, and supproted by the plugin via that approach.

NilsRenaud commented 6 months ago

Thanks I haven't seen this optional field in SuppressionFilter ! I need to experiment with this but it looks like it's what I really want