From 660b5f4b45b5557d450c9400aa77a7af219dd3f1 Mon Sep 17 00:00:00 2001 From: WANG CHAO <1229983126@qq.com> Date: Wed, 6 Mar 2019 23:44:26 +0800 Subject: [PATCH] Edit the addresses of DTD files used for checkstyle We are currently using the DTD files from `http://checkstyle.sourceforge.net/` and `http://puppycrawl.com/` in our config file of checkstyle. However, due to security reason, checkstyle decided to remove DTDs from above websites and ask users to use the DTD files from `https://checkstyle.org/`[1]. Let's update the addresses of DTD files correspondingly. Meanwhile, update the version of suppression DTD file to 1.2 because it is the version suggested from checkstyle. [2] [1] https://github.com/checkstyle/checkstyle/issues/6478 [2] https://checkstyle.org/config_filters.html#SuppressionFilter_Examples --- config/checkstyle/checkstyle.xml | 4 ++-- config/checkstyle/suppressions.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index a9671a144efd..c970943d6b40 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,7 +1,7 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd">