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

SuppressionFilter #6

Open
abhibhosale05 opened this issue Apr 20, 2015 · 3 comments
Open

SuppressionFilter #6

abhibhosale05 opened this issue Apr 20, 2015 · 3 comments

Comments

@abhibhosale05
Copy link

SuppressionFilter option is not working. Any idea how to add SuppressionFilter properties in default config file.

@nrudenko
Copy link
Owner

Hello.
Have you made appropriate changes in your {proj_root}/cq-config/checkstyle/checkstyle.xml?

@abhibhosale05
Copy link
Author

Yes, I have added one rule to check. e.g Cyclomatic Complexity.
And for SuppressionFilter, added below module. module name="SuppressionFilter"
property name="file" value="${checkstyleSuppressionsPath}"
module

But, now I am not able to configure the path of suppression.xml file.
In default checkstyle task, we can set this path using below
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath

But I am fail to do same in this.

@nrudenko
Copy link
Owner

Could you try to add suppressions.xml path to checkstyle.xml?

<module name="SuppressionFilter">
    <property name="file" value="{correct path to suppressions.xml}"/>
</module>

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