Skip to content

Module specific suppression file not working #537

@Avinm

Description

@Avinm

I have a checkstyle rule file with the following config for suppressions:

    <module name="SuppressionFilter">
        <property name="file" value="${checkstyle.suppression.filter}" default="checkstyle-suppressions.xml" />
    </module>

I have imported this rule to checkstyle-idea and provided the value checkstyle-suppressions.xml for the variable checkstyle.suppression.filter when importing.

The documentation says that the plugin will look for the file checkstyle-suppressions.xml in module root directory. However, in a project with multiple modules say M1, M2, M3, the plugin always uses M1/checkstyle-suppressions.xml for running inspections on all 3 modules.

Would it be possible to improve this behavior so that inspection in M2 use M2/checkstyle-suppressions.xml and those in M3 use M3/checkstyle-suppressions.xml and so on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions