Menu

#390 OneTopLevelClass check class should not allow specifying tokens

6.5.0
closed
None
1
2015-07-25
2015-05-01
dhdh
No

Currently, for the OneTopLevelClass check, it is possible to specify the tokens on which it is applied class should not allow specifying tokens, e.g.

<module name="OneTopLevelClass">
  <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF"/>
</module>

However, this is not allowed for this check, leading to a crash. See also https://github.com/checkstyle/checkstyle/issues/1017. The check always applies to class, enumeration, and interface definitions, and this can not be customized. The Eclipse Checkstyle Plug-in should not allow customizing it in its GUI either.

Discussion

  • Lars Koedderitzsch

    Fixed for 6.8.0 release

     
  • Lars Koedderitzsch

    • status: open --> closed
    • assigned_to: Lars Koedderitzsch
     

Log in to post a comment.

MongoDB Logo MongoDB