You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mass Dosage (JIRA)" <ji...@codehaus.org> on 2013/10/09 12:46:52 UTC
[jira] (MCHECKSTYLE-184) Allow src/main/resources to be searched by
Checkstyle
[ https://jira.codehaus.org/browse/MCHECKSTYLE-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333838#comment-333838 ]
Mass Dosage commented on MCHECKSTYLE-184:
-----------------------------------------
I have run into this same issue - checkstyle is now trying to apply Java checks on all .properties files in src/main/resources and there appears to be no way to turn it off. I have tried the includes and excludes elements but these don't seem to apply to files under src/main/resources. Should I add a feature request for this?
I tried using a SuppressionFilter but this would seem to require a suppressions file in each and every project which has this issue which isn't ideal. I tried putting my suppressions XML file in the same jar (a plugin-config jar) as the checkstyle-config.xml but getResourceAsStream doesn't appear to find it, it only finds files local to my project. Either way, having to go via the SuppressionsFilter feels like a hack, one should be able to configure files to include/exclude from the plugin config itself.
> Allow src/main/resources to be searched by Checkstyle
> -----------------------------------------------------
>
> Key: MCHECKSTYLE-184
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-184
> Project: Maven Checkstyle Plugin
> Issue Type: New Feature
> Affects Versions: 2.9.1
> Reporter: Dennis Lundberg
> Assignee: Dennis Lundberg
> Fix For: 2.10
>
>
> There is a nice check in Checkstyle that allows you to keep your localized resource bundles in sync.
> <module name="Translation"/>
> http://checkstyle.sourceforge.net/config_misc.html
> In its current state maven-checkstyle-plugin cannot make use of this check, for two reasons:
> # maven-checkstyle-plugin only recognizes {{\*\*/\*.java}} files. This can be re-configured with the <includes> parameter.
> # maven-checkstyle-plugin supports only one source directory, which is configured with the <sourceDirectory> parameter.
> We need to be able to add a resource directory (/src/main/resources by default) that is searched for {{\*\*/\*.properties}} files by default.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira