aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/configs
diff options
context:
space:
mode:
authorIvan Sopov <sopov.ivan@gmail.com>2014-02-19 22:34:10 +0200
committerIvan Sopov <sopov.ivan@gmail.com>2014-03-04 19:18:11 +0200
commitf1efb27670a93690577f1bae17fc9dcbd88a795d (patch)
treeb4c1b1405c4b2cfb30bb3f3e6429c4ecd89798a2 /src/test/resources/com/puppycrawl/tools/checkstyle/configs
parent1cdaeaaa4fbf02a7388f1fcbea1c86ef0ea32fed (diff)
downloadcheckstyle-f1efb27670a93690577f1bae17fc9dcbd88a795d.tar.gz
moving to standard directory layout
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/configs')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/checkstyle_checks.xml30
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/custom_messages.xml18
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/empty_configuration.xml8
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/included.xml5
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/including.xml12
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_name.xml9
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml8
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_name.xml9
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_value.xml9
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/configs/subdir/including.xml12
10 files changed, 120 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/checkstyle_checks.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/checkstyle_checks.xml
new file mode 100644
index 000000000..96737f513
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/checkstyle_checks.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module name="Checker">
+ <property name="tabWidth" value="4" />
+ <property name="basedir" value="${checkstyle.basedir}" />
+ <module name="TreeWalker">
+ <module name="AvoidStarImport"/>
+ <module name="MemberName">
+ <property name="format" value="^m_[a-zA-Z0-9]*$"/>
+ </module>
+ <property name="testName" value="testValue" />
+ <module name="ConstantName"/>
+ <module name="EmptyBlock"/>
+ <module name="EqualsHashCode"/>
+ <module name="FileLength"/>
+ <module name="NoWhitespaceAfter">
+ <property name="tokens" value="DOT"/>
+ <property name="allowLineBreaks" value="true"/>
+ </module>
+ <module name="GenericIllegalRegexp">
+ <property name="format" value="System.out.println"/>
+ </module>
+ </module>
+ <module name="JavadocPackage"/>
+ <module name="Translation"/>
+</module> \ No newline at end of file
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/custom_messages.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/custom_messages.xml
new file mode 100644
index 000000000..13d0c20f4
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/custom_messages.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
+
+<module name="Checker">
+ <property name="tabWidth" value="4" />
+ <property name="basedir" value="${checkstyle.basedir}" />
+ <module name="TreeWalker">
+ <module name="MemberName">
+ <property name="format" value="^m[a-zA-Z0-9]*$"/>
+ <message key="name.invalidPattern"
+ value="Member ''{0}'' must start with a lowercase ''m'' (checked pattern ''{1}'')."
+ />
+ </module>
+ </module>
+</module> \ No newline at end of file
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/empty_configuration.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/empty_configuration.xml
new file mode 100644
index 000000000..7077da016
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/empty_configuration.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module name="Checker">
+</module>
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/included.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/included.xml
new file mode 100644
index 000000000..11a9f072d
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/included.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- this is an XML fragment, not valid XML by itself. -->
+<module name="JavadocPackage"/>
+<module name="Translation"/>
+<property name="basedir" value="${checkstyle.basedir}" />
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/including.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/including.xml
new file mode 100644
index 000000000..40604d5a6
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/including.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd" [
+ <!ENTITY includedConfig SYSTEM "included.xml">
+]>
+
+<module name="Checker">
+ <property name="tabWidth" value="4" />
+ &includedConfig;
+</module>
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_name.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_name.xml
new file mode 100644
index 000000000..8582b3319
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_name.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module nam="Checker">
+ <property name="tabWidth" value="4"/>
+</module>
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml
new file mode 100644
index 000000000..4ab4de312
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_config_parent.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<property name="tabWidth" value="4"/>
+
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_name.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_name.xml
new file mode 100644
index 000000000..77d219e47
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_name.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module name="Checker">
+ <property nam="tabWidth" value="4"/>
+</module>
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_value.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_value.xml
new file mode 100644
index 000000000..4f61132b4
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/missing_property_value.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module name="Checker">
+ <property name="tabWidth" valu="4"/>
+</module>
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/configs/subdir/including.xml b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/subdir/including.xml
new file mode 100644
index 000000000..b4f2b00af
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/configs/subdir/including.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd" [
+ <!ENTITY includedConfig SYSTEM "../included.xml">
+]>
+
+<module name="Checker">
+ <property name="tabWidth" value="4" />
+ &includedConfig;
+</module>