-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Milestone
Description
discussed in #7542 (comment)
we need to extend AbstractGoogleModuleTestSupport to allow load few modules from config file.
In referenced PR we need to load together for each test:
<module name="RightCurly">
<property name="id" value="RightCurlyAlone"/>
<property name="option" value="alone"/>
<property name="tokens"
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF"/>
</module>
<module name="SuppressionXpathSingleFilter">
<!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
<property name="id" value="RightCurlyAlone"/>
<property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
or parent::OBJBLOCK[count(./*)=2]]"/>
</module>
Attention: id property in Filter is occupied for business logic meaning, so load of specific Filter might be problematic. It might require update in Filters to make id be same as in Check - just identifier.