Skip to content

Commit c9e177c

Browse files
SONARJAVA-4569 Update rule metadata
* Add new Clean Code Taxonomy metadata * Update rule descriptions to latest version
1 parent 7cbdd49 commit c9e177c

File tree

629 files changed

+3809
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

629 files changed

+3809
-31
lines changed

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S100.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Method names should comply with a naming convention",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "LOW"
7+
},
8+
"attribute": "IDENTIFIABLE"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S101.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Class names should comply with a naming convention",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "LOW"
7+
},
8+
"attribute": "IDENTIFIABLE"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S103.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Lines should not be too long",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "FORMATTED"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S104.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Files should not have too many lines of code",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "FOCUSED"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S105.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Tabulation characters should not be used",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "LOW"
7+
},
8+
"attribute": "FORMATTED"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S106.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Standard outputs should not be used directly to log anything",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "MODULAR"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1065.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Unused labels should be removed",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "CLEAR"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1066.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Collapsible \"if\" statements should be merged",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "CLEAR"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1067.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Expressions should not be too complex",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "HIGH"
7+
},
8+
"attribute": "FOCUSED"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Linear with offset",

java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1068.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"title": "Unused \"private\" fields should be removed",
33
"type": "CODE_SMELL",
4+
"code": {
5+
"impacts": {
6+
"MAINTAINABILITY": "MEDIUM"
7+
},
8+
"attribute": "CLEAR"
9+
},
410
"status": "ready",
511
"remediation": {
612
"func": "Constant\/Issue",

0 commit comments

Comments
 (0)