From 20b7faa45014272fb58104d96041c50ae97c02a7 Mon Sep 17 00:00:00 2001 From: Rick Giles Date: Sun, 31 Aug 2003 16:26:01 +0000 Subject: [PATCH] Moved ExecutableStatementCountCheck to sizes package. --- docs/config_metrics.html | 75 ------------------ docs/config_sizes.html | 76 +++++++++++++++++++ .../checks/metrics/messages.properties | 1 - .../ExecutableStatementCountCheck.java | 2 +- .../checks/sizes/messages.properties | 1 + .../puppycrawl/tools/checkstyle/AllTests.java | 2 +- .../ExecutableStatementCountCheckTest.java | 2 +- 7 files changed, 80 insertions(+), 79 deletions(-) rename src/checkstyle/com/puppycrawl/tools/checkstyle/checks/{metrics => sizes}/ExecutableStatementCountCheck.java (99%) rename src/tests/com/puppycrawl/tools/checkstyle/checks/{metrics => sizes}/ExecutableStatementCountCheckTest.java (98%) diff --git a/docs/config_metrics.html b/docs/config_metrics.html index 05db9aebc..6a457274f 100644 --- a/docs/config_metrics.html +++ b/docs/config_metrics.html @@ -24,9 +24,6 @@ @@ -98,78 +95,6 @@ considered good, 5-7 ok, 8-10 consider re-factoring, and 11+ re-factor now! TreeWalker

- -

ExecutableStatementCount

-

Description

- -

- Restricts the number of executable statements to a specified limit. -

- - -

Properties

- - - - - - - - - - - - - - - - - - - - - - -
namedescriptiontypedefault value
maxthe maximum threshold allowedinteger30
tokensmembers to checksubset of tokens CTOR_DEF, - METHOD_DEF, - INSTANCE_INIT, - STATIC_INIT - all tokens
- -

Examples

-

- To configure the check: -

-
-<module name="ExecutableStatementCount"/>
-      
-

- To configure the check with a threshold of 20 for constructor and - method definitions: -

-
-<module name="ExecutableStatementCount">
-    <property name="max" value="20"/>
-    <property name="tokens" value="CTOR_DEF,METHOD_DEF"/>
-</module>
-      
-      
- -

Package

-

- com.puppycrawl.tools.checkstyle.checks.metrics -

- -

Parent Module

-

- TreeWalker -

- - diff --git a/docs/config_sizes.html b/docs/config_sizes.html index 0501cd5b3..fddfada67 100644 --- a/docs/config_sizes.html +++ b/docs/config_sizes.html @@ -22,6 +22,9 @@