Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a suppression file to a configuration file #641

Closed
NilsRenaud opened this issue May 14, 2024 · 2 comments
Closed

Add a suppression file to a configuration file #641

NilsRenaud opened this issue May 14, 2024 · 2 comments

Comments

@NilsRenaud
Copy link

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
Copy link
Owner

jshiell commented May 18, 2024

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

@jshiell jshiell closed this as completed May 18, 2024
@NilsRenaud
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants