From bb36eace93c007d24ffd264622898852091e7596 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 4 Sep 2002 14:59:34 +0000 Subject: [PATCH] moved some rules into a new braces ruleset git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@833 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/rulesets/basic.xml | 58 -------------------------- pmd/rulesets/braces.xml | 70 ++++++++++++++++++++++++++++++++ pmd/rulesets/rulesets.properties | 2 +- 3 files changed, 71 insertions(+), 59 deletions(-) create mode 100644 pmd/rulesets/braces.xml diff --git a/pmd/rulesets/basic.xml b/pmd/rulesets/basic.xml index 0112b94d85..020dbb66d0 100644 --- a/pmd/rulesets/basic.xml +++ b/pmd/rulesets/basic.xml @@ -62,30 +62,6 @@ while (a == b) { - - - Avoid using if..else statements without using curly braces - - - - - - - @@ -181,40 +157,6 @@ public void bar() { - - - Avoid using 'while' statements without using curly braces - - - - - - - - - - Avoid using 'for' statements without using curly braces - - - - - - - diff --git a/pmd/rulesets/braces.xml b/pmd/rulesets/braces.xml new file mode 100644 index 0000000000..367f3334b9 --- /dev/null +++ b/pmd/rulesets/braces.xml @@ -0,0 +1,70 @@ + + + + +The Braces Ruleset contains a collection of braces rules. + + + + + + Avoid using if..else statements without using curly braces + + + + + + + + + + Avoid using 'while' statements without using curly braces + + + + + + + + + + Avoid using 'for' statements without using curly braces + + + + + + + + + + + diff --git a/pmd/rulesets/rulesets.properties b/pmd/rulesets/rulesets.properties index 03f791eab7..ddcad49cdd 100644 --- a/pmd/rulesets/rulesets.properties +++ b/pmd/rulesets/rulesets.properties @@ -1 +1 @@ -rulesets.filenames=rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/design.xml,rulesets/naming.xml,rulesets/imports.xml \ No newline at end of file +rulesets.filenames=rulesets/braces.xml,rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/design.xml,rulesets/naming.xml,rulesets/imports.xml \ No newline at end of file