I don't remember which version of Checkstyle is used in which maven-
checkstyle-plugin by default (you can change it)

and if current Checkstyle documentation explains about this property [1], 
there is no @since to know when it was introduced


What we can do at maven level is probably add a version table to document 
version history, since this is a recurrent need
I created MCHECKSTYLE-290 [2] to track the issue

HELP WANTED!!!
It would be great if someone could do the history walk-through to prepare a 
documentation patch: I promise I'll merge it :)

Regards,

Hervé

[1] http://checkstyle.sourceforge.net/config_blocks.html#EmptyCatchBlock

[2] https://issues.apache.org/jira/browse/MCHECKSTYLE-290

Le vendredi 10 avril 2015 12:38:56 Mark Derricutt a écrit :
> Hey all,
> 
> I was just adding a bunch of rules to my checkstyle configuration and they
> all seem to trigger the error:
> 
> Failed during checkstyle configuration: cannot initialize module TreeWalker
> - Property 'excludes' in module GenericWhitespace does not exist, please
> check the documentation -> [Help 1]
> 
> This is with 2.15 and 2.14 of the check style plugin, is the plugin
> generating bad config for the version of check style used?
> 
> Out of the rules I added, these ones give the above error:
> 
>      <module name="GenericWhitespace" />
>      <module name="NoWhitespaceAfter" />
>      <module name="MissingDeprecated"/>
>      <module name="MissingOverride"/>
>      <module name="PackageAnnotation"/>
>      <module name="AnnotationLocation"/>
>      <module name="EmptyBlock"/>
>      <module name="EmptyCatchBlock">
>        <property name="exceptionVariableName" value="expected|ignore"/>
>      </module>
>      <module name="LeftCurly"/>
>      <module name="NeedBraces"/>
>      <module name="RightCurly"/>
>      <module name="AvoidNestedBlocks"/>
> 
> I suspect either I've done something wrong, or there's a generic bug in the
> check style plugin?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to