Skip to content

Commit 2a6f5d2

Browse files
committed
Rename groovy FatApp rule to EC5001
1 parent 1f9b3b9 commit 2a6f5d2

File tree

13 files changed

+23
-23
lines changed

13 files changed

+23
-23
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ruleKey;remediationFunction;remediationFactor
2-
org.codenarc.rule.ecocode.FatAppRule;linear;1h
2+
org.codenarc.rule.ecocode.EC5001Rule;linear;1h
33
org.codenarc.rule.ecocode.SupportedVersionRangeRule;linear;10min
44
org.codenarc.rule.ecocode.DisableObfuscationRule;linear;10min
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.codenarc.rule.ecocode.FatAppRule
1+
org.codenarc.rule.ecocode.EC5001Rule
22
org.codenarc.rule.ecocode.SupportedVersionRangeRule
33
org.codenarc.rule.ecocode.DisableObfuscationRule

android-plugin/src/main/resources/org/sonar/plugins/groovy/rules.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
<!-- since 2.2.1 -->
66
<rule>
7-
<key>org.codenarc.rule.ecocode.FatAppRule</key>
7+
<key>org.codenarc.rule.ecocode.EC5001Rule</key>
88
<severity>MINOR</severity>
99
<name><![CDATA[Fat App]]></name>
10-
<internalKey><![CDATA[FatApp]]></internalKey>
10+
<internalKey><![CDATA[EC5001]]></internalKey>
1111
<description><![CDATA[<p>Using &quot;multiDexEnabled true&quot; goes against the overall reduction of the weight of the apps and hence must be avoided.</p>
1212
<p>Example of violations:</p>
1313
<pre><code> android {

codenarc-converter/CodeNarc/docs/StarterRuleSet-AllRules.groovy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ ruleset {
8888
DuplicateNumberLiteral
8989
DuplicateSetValue
9090
DuplicateStringLiteral
91+
EC5001
9192
ElseBlockBraces
9293
EmptyCatchBlock
9394
EmptyClass
@@ -133,7 +134,6 @@ ruleset {
133134
ExplicitStackInstantiation
134135
ExplicitTreeSetInstantiation
135136
FactoryMethodName
136-
FatApp
137137
FieldName
138138
FieldTypeRequired
139139
FileCreateTempFile

codenarc-converter/CodeNarc/docs/StarterRuleSet-AllRulesByCategory.groovy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ruleset {
166166
DuplicateStringLiteral
167167

168168
// rulesets/ecocode.xml
169-
FatApp
169+
EC5001
170170
SupportedVersionRange
171171
DisableObfuscation
172172

codenarc-converter/CodeNarc/docs/codenarc-rule-index-by-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ title: CodeNarc - Rule Index by Name
9090
* [DuplicateNumberLiteral](./codenarc-rules-dry.html#duplicatenumberliteral-rule)
9191
* [DuplicateSetValue](./codenarc-rules-basic.html#duplicatesetvalue-rule)
9292
* [DuplicateStringLiteral](./codenarc-rules-dry.html#duplicatestringliteral-rule)
93+
* [EC5001](./codenarc-rules-ecocode.html#EC5001-rule)
9394
* [ElseBlockBraces](./codenarc-rules-braces.html#elseblockbraces-rule)
9495
* [EmptyCatchBlock](./codenarc-rules-basic.html#emptycatchblock-rule)
9596
* [EmptyClass](./codenarc-rules-basic.html#emptyclass-rule)
@@ -135,7 +136,6 @@ title: CodeNarc - Rule Index by Name
135136
* [ExplicitStackInstantiation](./codenarc-rules-groovyism.html#explicitstackinstantiation-rule)
136137
* [ExplicitTreeSetInstantiation](./codenarc-rules-groovyism.html#explicittreesetinstantiation-rule)
137138
* [FactoryMethodName](./codenarc-rules-naming.html#factorymethodname-rule)
138-
* [FatApp](./codenarc-rules-ecocode.html#fatapp-rule)
139139
* [FieldName](./codenarc-rules-naming.html#fieldname-rule)
140140
* [FieldTypeRequired](./codenarc-rules-convention.html#fieldtyperequired-rule)
141141
* [FileCreateTempFile](./codenarc-rules-security.html#filecreatetempfile-rule)

codenarc-converter/CodeNarc/docs/codenarc-rule-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ title: CodeNarc - Rule Index
167167
* [DuplicateStringLiteral](./codenarc-rules-dry.html#duplicatestringliteral-rule)
168168

169169
## [Ecocode](./codenarc-rules-ecocode.html)
170-
* [FatApp](./codenarc-rules-ecocode.html#fatapp-rule)
170+
* [EC5001](./codenarc-rules-ecocode.html#EC5001-rule)
171171
* [SupportedVersionRange](./codenarc-rules-ecocode.html#supportedversionrange-rule)
172172
* [DisableObfuscation](./codenarc-rules-ecocode.html#disableobfuscation-rule)
173173

codenarc-converter/CodeNarc/docs/codenarc-rules-ecocode.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: CodeNarc - Ecocode Rules
55

66
# Ecocode Rules ("*rulesets/ecocode.xml*")
77

8-
## FatApp Rule
8+
## EC5001 Rule
99

1010
*Since CodeNarc 2.2.1*
1111

@@ -119,4 +119,3 @@ Example of violations:
119119
}
120120
}
121121
```
122-

codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/FatAppRule.groovy renamed to codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/EC5001Rule.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import org.codenarc.util.AstUtil
2929
*
3030
* @author Leboulanger Mickael
3131
*/
32-
class FatAppRule extends AbstractAstVisitorRule {
32+
class EC5001Rule extends AbstractAstVisitorRule {
3333

34-
String name = 'FatApp'
34+
String name = 'EC5001'
3535
int priority = 2
36-
Class astVisitorClass = FatAppAstVisitor
36+
Class astVisitorClass = EC5001AstVisitor
3737
}
3838

39-
class FatAppAstVisitor extends AbstractAstVisitor {
39+
class EC5001AstVisitor extends AbstractAstVisitor {
4040

4141
@Override
4242
void visitMethodCallExpression(MethodCallExpression methodCallExpression) {

codenarc-converter/CodeNarc/src/main/resources/codenarc-base-messages.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
12
DisableObfuscation.description=Using minifyEnabled true will obfuscate code and will have a sligthly negative impact on power consumption at runtime.
23
DisableObfuscation.description.html=Using minifyEnabled true will obfuscate code and will have a sligthly negative impact on power consumption at runtime.
34

45
SupportedVersionRange.description=The amplitude of supported platform versions should not be too wide, at the risk of making the app too heavy to handle all cases.
56
SupportedVersionRange.description.html=The amplitude of supported platform versions should not be too wide, at the risk of making the app too heavy to handle all cases.
67

7-
FatApp.description=Using "multiDexEnabled true" goes against the overall reduction of the weight of the apps and hence must be avoided.
8-
FatApp.description.html=Using "multiDexEnabled true" goes against the overall reduction of the weight of the apps and hence must be avoided.
8+
EC5001.description=Using "multiDexEnabled true" goes against the overall reduction of the weight of the apps and hence must be avoided.
9+
EC5001.description.html=Using "multiDexEnabled true" goes against the overall reduction of the weight of the apps and hence must be avoided.
910

1011
ParameterAssignmentInFilterClosure.description=An assignment operator was used on a parameter in a filtering closure. This is usually a typo, and the comparison operator (==) was intended.
1112
ParameterAssignmentInFilterClosure.description.html=An assignment operator was used on a parameter in a filtering closure. This is usually a typo, and the comparison operator (==) was intended.

0 commit comments

Comments
 (0)