From 14462f9ea4c2bcb071963018e038386024c1f0e7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 5 Sep 2016 17:45:38 +0100 Subject: [PATCH] ParameterNumber: don't apply limit to overridden methods --- README.md | 4 +--- src/main/resources/net/kemitix/checkstyle.xml | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2359f5a..abd3e70 100644 --- a/README.md +++ b/README.md @@ -1728,9 +1728,7 @@ Identifiers must match `^[a-z][a-zA-Z0-9]*$`. #### [ParameterNumber](http://checkstyle.sourceforge.net/config_sizes.html#ParameterNumber) -Restricts the number of parameters in a method or constructor to 7. - -> TODO: ignoreOverriddenMethods = true +Restricts the number of parameters in a method or constructor to 7. Overridden methods are not checked as there may be no access to change the super method. #### [ParenPad](http://checkstyle.sourceforge.net/config_whitespace.html#ParenPad) diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index 4291089..37cd8c6 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -169,7 +169,9 @@ - + + +