diff options
author | Roman Ivanov <ivanov-jr@mail.ru> | 2017-07-14 06:06:08 -0700 |
---|---|---|
committer | Roman Ivanov <ivanov-jr@mail.ru> | 2017-07-14 06:06:08 -0700 |
commit | e02d6889a7474d7e2e796f1244eabcba4d4ce99d (patch) | |
tree | e4d130cbed484e0a038eba0c0348f3d44ec1f625 /config | |
parent | 18b6e9e61e577ef58415d7d6b4585ddcf7f437c8 (diff) | |
download | checkstyle-e02d6889a7474d7e2e796f1244eabcba4d4ce99d.tar.gz |
config: extend SuppressWarnings to catch cases of IDEA inspection suppressions by java annotation
Diffstat (limited to 'config')
-rw-r--r-- | config/checkstyle_checks.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml index 80580ede1..e7205fb4b 100644 --- a/config/checkstyle_checks.xml +++ b/config/checkstyle_checks.xml @@ -149,7 +149,12 @@ <property name="javaFiveCompatibility" value="true"/> </module> <module name="PackageAnnotation"/> - <module name="SuppressWarnings"/> + <module name="SuppressWarnings"> + <property name="format" value="^((?!unchecked|deprecation|rawtypes).)*$"/> + <message key="suppressed.warning.not.allowe" + value="The warning ''{0}'' cannot be suppressed at this location. If you try to suppress IntelliJ IDEA inspection, please use javadoc block tag @noinspection" + /> + </module> <module name="SuppressWarningsHolder"/> <!-- Block Checks --> |