Skip to content

Commit a8f1d45

Browse files
committed
Fix #85: Changed DTD locations
1 parent b384513 commit a8f1d45

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

net.sf.eclipsecs.checkstyle/metadata/com/puppycrawl/tools/checkstyle/checks/imports/checkstyle-metadata.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ IllegalImport.name = Illegal Imports
1515
IllegalImport.illegalClasses = Class names to reject, if regexp variable is not set, checks if import equals class name. If regexp variable is set, then list of class name will be interpreted as regular expressions. Note, all properties for match will be used.
1616
IllegalImport.regexp = Whether the <b>illegalPkgs</b> and <b>illegalClasses</b> should be interpreted as regular expressions
1717
18-
ImportControl.desc = Controls what can be imported in each package. Useful for ensuring that application layering rules are not violated, especially on large projects.<br/>\r\nThe DTD for a import control XML document is at http://www.puppycrawl.com/dtds/import_control_1_0.dtd. It contains documentation on each of the elements and attributes.<br/>\r\nThe check validates a XML document when it loads the document. To validate against the above DTD, include the following document type declaration in your XML document:\r\n<pre>\r\n<!DOCTYPE import-control PUBLIC\r\n "-//Puppy Crawl//DTD Import Control 1.0//EN"\r\n "http://www.puppycrawl.com/dtds/import_control_1_0.dtd">\r\n</pre>\r\n
18+
ImportControl.desc = Controls what can be imported in each package. Useful for ensuring that application layering rules are not violated, especially on large projects.<br/>\r\nThe DTD for a import control XML document is at http://checkstyle.org/dtds/import_control_1_0.dtd. It contains documentation on each of the elements and attributes.<br/>\r\nThe check validates a XML document when it loads the document. To validate against the above DTD, include the following document type declaration in your XML document:\r\n<pre>\r\n<!DOCTYPE import-control PUBLIC\r\n "-//Puppy Crawl//DTD Import Control 1.0//EN"\r\n "http:/checkstyle.org/dtds/import_control_1_0.dtd">\r\n</pre>\r\n
1919
ImportControl.name = Import Control
2020
ImportControl.file = The location of the file containing the import control configuration. It can be a regular file, URL or resource path. It will try loading the path as a URL first, then as a file, and finally as a resource.
2121
ImportControl.path = Regular expression of file paths to which this check should apply. Files that don't match the pattern will not be checked. The pattern will be matched against the full absolute file path.

net.sf.eclipsecs.core/src/net/sf/eclipsecs/core/config/ConfigurationWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static void write(OutputStream out, List<Module> modules, ICheckConfigura
9090

9191
Document doc = DocumentHelper.createDocument();
9292
doc.addDocType(XMLTags.MODULE_TAG, "-//Puppy Crawl//DTD Check Configuration 1.3//EN",
93-
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd");
93+
"https://checkstyle.org/dtds/configuration_1_3.dtd");
9494

9595
String lineSeperator = System.getProperty("line.separator"); //$NON-NLS-1$
9696

net.sf.eclipsecs.sample/sample_checks.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- This configuration file was written by the eclipse-cs plugin configuration editor -->
33
<!-- Checkstyle-Configuration: Test Description: none -->
4-
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
4+
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
55
<module name="Checker">
66
<property name="severity" value="warning" />
77

net.sf.eclipsecs.sample/src/checkstyle_packages.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE checkstyle-packages PUBLIC
44
"-//Puppy Crawl//DTD Package Names 1.0//EN"
5-
"http://www.puppycrawl.com/dtds/packages_1_0.dtd">
5+
"http://checkstyle.org/dtds/packages_1_0.dtd">
66

77
<checkstyle-packages>
88
<!--

0 commit comments

Comments
 (0)