Skip to content

Commit

Permalink
Issue #5899: Add InterfaceImpliedModifierCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jodastephen committed Jun 30, 2018
1 parent fc0f5e3 commit 7133214
Show file tree
Hide file tree
Showing 29 changed files with 1,442 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/jsoref-spellchecker/whitelist.words
Expand Up @@ -582,6 +582,7 @@ Intelli
intellij
intercell
interfaceistype
interfacememberimpliedmodifier
interfacetypeparametername
invalidformat
invalidinherit
Expand Down
4 changes: 4 additions & 0 deletions config/checkstyle_checks.xml
Expand Up @@ -488,6 +488,10 @@
<!-- Modifiers -->
<module name="ModifierOrder"/>
<module name="RedundantModifier"/>
<module name="InterfaceMemberImpliedModifier">
<!-- effectively the opposite of RedundantModifier, so output must be ignored -->
<property name="severity" value="ignore"/>
</module>

<!-- Naming Conventions -->
<module name="AbbreviationAsWordInName">
Expand Down
Expand Up @@ -668,6 +668,8 @@ private static void fillChecksFromMetricsPackage() {
* Fill short-to-full module names map with Checks from modifier package.
*/
private static void fillChecksFromModifierPackage() {
NAME_TO_FULL_MODULE_NAME.put("InterfaceMemberImpliedModifierCheck",
BASE_PACKAGE + ".checks.modifier.InterfaceMemberImpliedModifierCheck");
NAME_TO_FULL_MODULE_NAME.put("ModifierOrderCheck",
BASE_PACKAGE + ".checks.modifier.ModifierOrderCheck");
NAME_TO_FULL_MODULE_NAME.put("RedundantModifierCheck",
Expand Down

0 comments on commit 7133214

Please sign in to comment.