aboutsummaryrefslogtreecommitdiff
path: root/config/checkstyle_checks.xml
diff options
context:
space:
mode:
authorArtem Dudkin <Artem_Dudkin@epam.com>2017-10-16 16:46:02 +0300
committerRoman Ivanov <romani@users.noreply.github.com>2017-10-18 07:19:42 -0700
commitb16aef991830dd1fce1ce2640af7e7db8b329d86 (patch)
tree9209ec2954bed0668399823721502ae83c9da348 /config/checkstyle_checks.xml
parent22024226183edbafcf067a945411e1e620003432 (diff)
downloadcheckstyle-b16aef991830dd1fce1ce2640af7e7db8b329d86.tar.gz
Issue #5023: Prohibited the usage of hardcoded encoding in Checkstyle source code;
Diffstat (limited to 'config/checkstyle_checks.xml')
-rw-r--r--config/checkstyle_checks.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml
index 6c0d565f5..5bf837fa5 100644
--- a/config/checkstyle_checks.xml
+++ b/config/checkstyle_checks.xml
@@ -257,7 +257,11 @@
<property name="tokens" value="LITERAL_VOLATILE"/>
<property name="tokens" value="LITERAL_ASSERT"/>
</module>
- <module name="IllegalTokenText"/>
+ <module name="IllegalTokenText">
+ <property name="tokens" value="STRING_LITERAL"/>
+ <property name="format" value="^(US-ASCII|ISO-8859-1|UTF-8|UTF-16BE|UTF-16LE|UTF-16)$"/>
+ <property name="ignoreCase" value="true"/>
+ </module>
<module name="IllegalType"/>
<module name="InnerAssignment"/>
<module name="MagicNumber"/>