From c17394ad4ff1e16961669c68b0d01cb9bc2633c9 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 25 Sep 2011 16:43:36 +0000 Subject: [PATCH] Applied patch 3155140: Exclude boolean getters (is*) from TooManyMethods rule. Thanks to Riku Nykanen. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7349 51baf565-9d33-0410-a72c-fc3788e3496d --- .../java/rule/codesize/xml/TooManyMethods.xml | 49 +++++++++++-------- pmd/rulesets/java/codesize.xml | 38 ++++++++------ pmd/xdocs/credits.xml | 1 + 3 files changed, 51 insertions(+), 37 deletions(-) diff --git a/pmd/regress/test/net/sourceforge/pmd/lang/java/rule/codesize/xml/TooManyMethods.xml b/pmd/regress/test/net/sourceforge/pmd/lang/java/rule/codesize/xml/TooManyMethods.xml index 1d9eff0c48..69a750eca6 100644 --- a/pmd/regress/test/net/sourceforge/pmd/lang/java/rule/codesize/xml/TooManyMethods.xml +++ b/pmd/regress/test/net/sourceforge/pmd/lang/java/rule/codesize/xml/TooManyMethods.xml @@ -57,30 +57,37 @@ Less than 10 methods, with getter/setter... ]]> 0 - - +]]> + diff --git a/pmd/rulesets/java/codesize.xml b/pmd/rulesets/java/codesize.xml index 64f53c3b70..be58e8d64d 100644 --- a/pmd/rulesets/java/codesize.xml +++ b/pmd/rulesets/java/codesize.xml @@ -363,28 +363,34 @@ have more fine grained objects. $maxmethods ] ]]> diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index 881a6865c0..321c47031c 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -320,6 +320,7 @@
  • Jared Bunting - Patch to add ASTAnnotationMethodDeclaration to Java AST
  • Lucian Ciufudean - RedundantFieldInitializerRule
  • Andreas Dangel - GodClass and LawOfDemeter rules, several bugfixes and cleanup
  • +
  • Riku Nykanen - patch improving TooManyMethods rule