From: simonbrandhof Date: Mon, 7 Feb 2011 22:44:19 +0000 (+0100) Subject: SONAR-2167 Improve descriptions and default values of Checkstyle naming convention... X-Git-Tag: 2.6~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7b3fe3882cb4f343f6877b3601e7756c2ff17ab2;p=sonarqube.git SONAR-2167 Improve descriptions and default values of Checkstyle naming convention rules SONAR-2168 Add the parameter tabWidth to the Checkstyle Indentation rule --- diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml index 67c532669c1..1c3d80833fe 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml +++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/plugins/checkstyle/rules.xml @@ -419,13 +419,20 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - - + - - + ^Abstract.*$|^.*Factory$ + + + Controls whether to ignore checking for the abstract modifier on classes that match the name. + false + + Controls whether to ignore checking the name. Realistically only useful if using the check to identify that match name and do not have the abstract modifier name. + false + + MAJOR @@ -526,10 +533,25 @@ Rationale: Too large methods and classes are hard to read and costly to maintain - + - - + ^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$ + + + Controls whether to apply the check to public member + true + + + Controls whether to apply the check to protected member + true + + + Controls whether to apply the check to package-private member + true + + + Controls whether to apply the check to private member + true @@ -882,17 +904,22 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MINOR - - + + 4 - - + + 0 - + + 4 + + + + 8 @@ -1113,12 +1140,10 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - - + - - + ^[a-z][a-zA-Z0-9]*$ @@ -1126,12 +1151,10 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MULTIPLE - - + - - + ^[a-z][a-zA-Z0-9]*$ @@ -1154,26 +1177,28 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR MULTIPLE - + - - + - + ^[a-z][a-zA-Z0-9]*$ - + Controls whether to apply the check to public member + true - + Controls whether to apply the check to protected member + true - - + Controls whether to apply the check to package-private member + true - + Controls whether to apply the check to private member + true @@ -1197,11 +1222,14 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - - + - + ^[a-z][a-zA-Z0-9]*$ + + + Controls whether to allow a method name to have the same name as the residing class name. This is not to be confused with a constructor. An easy mistake is to place a return type on a constructor declaration which turns it into a method. + false @@ -1406,14 +1434,16 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - + - + - - + ^[a-z]+(\.[a-zA-Z_][a-zA-Z0-9_]*)*$ @@ -1427,12 +1457,10 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - - + - - + ^[a-z][a-zA-Z0-9]*$ @@ -1584,9 +1612,25 @@ Rationale: Too large methods and classes are hard to read and costly to maintain - + - + ^[a-z][a-zA-Z0-9]*$ + + + Controls whether to apply the check to public member + true + + + Controls whether to apply the check to protected member + true + + + Controls whether to apply the check to package-private member + true + + + Controls whether to apply the check to private member + true @@ -1681,14 +1725,28 @@ Rationale: Too large methods and classes are hard to read and costly to maintain MAJOR - - + - + ^[A-Z][a-zA-Z0-9]*$ - + + + Controls whether to apply the check to public member + true + + + Controls whether to apply the check to protected member + true + + + Controls whether to apply the check to package-private member + true + + + Controls whether to apply the check to private member + true