diff --git a/CHANGELOG.md b/CHANGELOG.md index edd296003..5c733ebf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Custom rules plugin API: - See: [Writing Custom Delphi Rules 101](docs/CUSTOM_RULES_101.md) +- Rule metadata for the new [Clean Code Taxonomy](https://docs.sonarsource.com/sonarqube/10.2/user-guide/clean-code/). - Support for identifiers prefixed with 2 ampersands (`&&`). - `OleVariant` overloads for `VarArrayRedim` and `VarClear` intrinsics. - `InlineAssembly` analysis rule, which flags inline assembly usage. diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AddressOfSubroutine.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AddressOfSubroutine.json index 35fadbf36..b21717735 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AddressOfSubroutine.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AddressOfSubroutine.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssertMessage.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssertMessage.json index d62ba903e..3b3fc1c10 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssertMessage.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssertMessage.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "MAIN", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssignedAndFree.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssignedAndFree.json index f08655989..f33a46e49 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssignedAndFree.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AssignedAndFree.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "EFFICIENT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AttributeName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AttributeName.json index d0710090c..a04f03601 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AttributeName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/AttributeName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/BeginEndRequired.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/BeginEndRequired.json index 1014ce8ba..b5ae56343 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/BeginEndRequired.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/BeginEndRequired.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CaseStatementSize.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CaseStatementSize.json index 37d281ea9..242219ca6 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CaseStatementSize.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CaseStatementSize.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CastAndFree.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CastAndFree.json index 6d42d61a8..cada42861 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CastAndFree.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CastAndFree.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "EFFICIENT", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CatchingRawException.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CatchingRawException.json index 562944e66..ca18fa44d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CatchingRawException.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CatchingRawException.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CharacterToCharacterPointerCast.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CharacterToCharacterPointerCast.json index 66e5c6251..78c8eeae5 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CharacterToCharacterPointerCast.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CharacterToCharacterPointerCast.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassName.json index 2d5e99ba3..ad668c5bc 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassPerFile.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassPerFile.json index 33139cb51..4cd03d023 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassPerFile.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ClassPerFile.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1h" }, + "code": { + "attribute": "MODULAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CognitiveComplexityMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CognitiveComplexityMethod.json index 9c21cc16a..867b2ee5a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CognitiveComplexityMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CognitiveComplexityMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentRegularExpression.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentRegularExpression.json index f43ea4ce5..1b51c8514 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentRegularExpression.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentRegularExpression.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "20min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentedOutCode.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentedOutCode.json index efdea0f09..108e396ce 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentedOutCode.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CommentedOutCode.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerHints.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerHints.json index ce5c3d4e2..60baaac32 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerHints.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerHints.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "MAINTAINABILITY": "LOW", + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerWarnings.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerWarnings.json index 6e215745a..6c5b4a69d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerWarnings.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CompilerWarnings.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "MAINTAINABILITY": "LOW", + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstantName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstantName.json index 8087fd6d0..b2e59f4b5 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstantName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstantName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorName.json index b97ed31b0..914f3eaa3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorWithoutInherited.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorWithoutInherited.json index 7bdb6b10d..47735a473 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorWithoutInherited.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ConstructorWithoutInherited.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "COMPLETE", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CyclomaticComplexityMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CyclomaticComplexityMethod.json index 1314dfe6b..16eded4fd 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CyclomaticComplexityMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/CyclomaticComplexityMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DateFormatSettings.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DateFormatSettings.json index 2e185df0b..470f2dd4a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DateFormatSettings.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DateFormatSettings.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorName.json index 32b68ed75..dc183cba2 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorWithoutInherited.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorWithoutInherited.json index bc3ec189d..0c4b6496f 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorWithoutInherited.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/DestructorWithoutInherited.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "COMPLETE", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyArgumentList.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyArgumentList.json index 82b4c4dc0..ad494c40d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyArgumentList.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyArgumentList.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyBlock.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyBlock.json index 7582f12a5..f56c0e4bf 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyBlock.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyBlock.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFieldSection.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFieldSection.json index 1a6bce6b4..5b58e6008 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFieldSection.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFieldSection.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFile.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFile.json index cb973a5b5..74fb7f0d0 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFile.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFile.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFinallyBlock.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFinallyBlock.json index 02449e04a..eb8155585 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFinallyBlock.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyFinallyBlock.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyInterface.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyInterface.json index 7c19ee37d..49db1acf3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyInterface.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyInterface.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "20min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyMethod.json index 55392ebc1..dfd1c920d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyMethod.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "COMPLETE", + "impacts": { + "MAINTAINABILITY": "LOW", + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyTypeSection.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyTypeSection.json index 9e6d801a4..794c8b51b 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyTypeSection.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyTypeSection.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyVisibilitySection.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyVisibilitySection.json index f1fb5ddcd..283f875f7 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyVisibilitySection.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EmptyVisibilitySection.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EnumName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EnumName.json index 98c8824fc..585d1096d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EnumName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/EnumName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitDefaultPropertyReference.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitDefaultPropertyReference.json index cbb284240..b87b6f5e9 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitDefaultPropertyReference.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitDefaultPropertyReference.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "2min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitTObjectInheritance.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitTObjectInheritance.json index af5118837..feb266825 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitTObjectInheritance.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ExplicitTObjectInheritance.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FieldName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FieldName.json index 030d91999..cefca1f68 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FieldName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FieldName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenConstant.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenConstant.json index 1a15375b6..76ef19d2c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenConstant.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenConstant.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenEnumValue.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenEnumValue.json index 5ca86ea9a..268c8bc4f 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenEnumValue.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenEnumValue.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenField.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenField.json index e5d6a0550..a578269fd 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenField.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenField.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenIdentifier.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenIdentifier.json index d2c9a21c3..2c2f2f8ed 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenIdentifier.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenIdentifier.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenImportFilePattern.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenImportFilePattern.json index f64dea67a..5802dcbaf 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenImportFilePattern.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenImportFilePattern.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenMethod.json index 24a5d5b26..687392551 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenProperty.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenProperty.json index 3822e49f3..022f17104 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenProperty.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenProperty.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenType.json index 25d4c1367..43fc55fae 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ForbiddenType.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FreeAndNilTObject.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FreeAndNilTObject.json index 1257faf4d..7837b992d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FreeAndNilTObject.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/FreeAndNilTObject.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GotoStatement.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GotoStatement.json index e253de6ee..b0c7a8aea 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GotoStatement.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GotoStatement.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedFieldDeclaration.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedFieldDeclaration.json index 49bc5eade..5c14af21b 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedFieldDeclaration.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedFieldDeclaration.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedParameterDeclaration.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedParameterDeclaration.json index 135e349b8..25aab3783 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedParameterDeclaration.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedParameterDeclaration.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedVariableDeclaration.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedVariableDeclaration.json index 713299a51..33c99b593 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedVariableDeclaration.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/GroupedVariableDeclaration.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/HelperName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/HelperName.json index 375f0da4a..bb23cae90 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/HelperName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/HelperName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/IfThenShortCircuit.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/IfThenShortCircuit.json index ecb9a03f9..b8f8bdd22 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/IfThenShortCircuit.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/IfThenShortCircuit.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ImportSpecificity.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ImportSpecificity.json index f2dd99a68..7344d5783 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ImportSpecificity.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ImportSpecificity.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "MODULAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedMethodWithNoCode.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedMethodWithNoCode.json index 5c8b243da..ffb911687 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedMethodWithNoCode.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedMethodWithNoCode.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedTypeName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedTypeName.json index e71135072..02935343c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedTypeName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InheritedTypeName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineAssembly.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineAssembly.json index b20503b49..3bf405404 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineAssembly.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineAssembly.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineConstExplicitType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineConstExplicitType.json index ca188484c..c2e24f1e1 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineConstExplicitType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineConstExplicitType.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineDeclarationCapturedByAnonymousMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineDeclarationCapturedByAnonymousMethod.json index 58a75c811..543fe814c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineDeclarationCapturedByAnonymousMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineDeclarationCapturedByAnonymousMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineLoopVarExplicitType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineLoopVarExplicitType.json index 2f91a1185..7e4254010 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineLoopVarExplicitType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineLoopVarExplicitType.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineVarExplicitType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineVarExplicitType.json index 89adf0a33..652003571 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineVarExplicitType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InlineVarExplicitType.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "RELIABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InstanceInvokedConstructor.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InstanceInvokedConstructor.json index a0b954739..90ab3310b 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InstanceInvokedConstructor.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InstanceInvokedConstructor.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceGuid.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceGuid.json index eec628e24..3deda9f2b 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceGuid.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceGuid.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceName.json index c73111f40..14d77e017 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/InterfaceName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LegacyInitializationSection.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LegacyInitializationSection.json index 6372a7577..12cb87ee2 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LegacyInitializationSection.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LegacyInitializationSection.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LowercaseKeyword.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LowercaseKeyword.json index cc3840891..0bfe887f3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LowercaseKeyword.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/LowercaseKeyword.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MathFunctionSingleOverload.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MathFunctionSingleOverload.json index d472ef50e..49dc3704c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MathFunctionSingleOverload.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MathFunctionSingleOverload.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MemberDeclarationOrder.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MemberDeclarationOrder.json index b47b38fa0..c31886d1a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MemberDeclarationOrder.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MemberDeclarationOrder.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodName.json index e59e82066..f2b04c2be 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodNestingDepth.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodNestingDepth.json index 1c88ecc5a..42540fd7c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodNestingDepth.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodNestingDepth.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodResultAssigned.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodResultAssigned.json index bdccac3c4..40633f0b3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodResultAssigned.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MethodResultAssigned.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MissingSemicolon.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MissingSemicolon.json index 9fae20e3b..18a7e9d3a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MissingSemicolon.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MissingSemicolon.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MixedNames.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MixedNames.json index 5f45ca322..607a5e7a4 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MixedNames.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/MixedNames.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NilComparison.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NilComparison.json index ba4b4bc19..8495de6e7 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NilComparison.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NilComparison.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NoSonar.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NoSonar.json index 5ae01dfbd..32ad524ea 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NoSonar.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/NoSonar.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "TESTED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ObjectType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ObjectType.json index 57f50aca7..6aec865d6 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ObjectType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ObjectType.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PascalStyleResult.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PascalStyleResult.json index 66c957abc..6054026af 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PascalStyleResult.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PascalStyleResult.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentCast.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentCast.json index 842fa1572..d832c3fb3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentCast.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentCast.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentTruncation.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentTruncation.json index e8bdbfb6f..0d3b21677 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentTruncation.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PlatformDependentTruncation.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PointerName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PointerName.json index 2ce8b773d..f43be02b9 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PointerName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PointerName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileMethod.json index 06724d097..8456f91d2 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "MODULAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileVariable.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileVariable.json index 7aa5d062f..e82652785 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileVariable.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ProjectFileVariable.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "MODULAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PublicField.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PublicField.json index 124177a2b..15779fb3f 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PublicField.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/PublicField.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "MODULAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RaisingRawException.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RaisingRawException.json index 4b4599ea7..c20545778 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RaisingRawException.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RaisingRawException.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "HIGH", + "RELIABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ReRaiseException.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ReRaiseException.json index f9ffe54eb..41e84291a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ReRaiseException.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ReRaiseException.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RecordName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RecordName.json index 59e8a239a..24867884e 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RecordName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RecordName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantAssignment.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantAssignment.json index 8c01ac196..acd6d819b 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantAssignment.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantAssignment.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "DISTINCT", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantBoolean.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantBoolean.json index 7a000940d..4cedc82cd 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantBoolean.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantBoolean.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantCast.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantCast.json index daac4bb84..34a2fea79 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantCast.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantCast.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "2min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantParentheses.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantParentheses.json index 376c72da9..5760f9208 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantParentheses.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/RedundantParentheses.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ShortIdentifier.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ShortIdentifier.json index 48a4a5cbc..fd69a4690 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ShortIdentifier.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/ShortIdentifier.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringListDuplicates.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringListDuplicates.json index 47174f191..ff86980f4 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringListDuplicates.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringListDuplicates.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "2min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringLiteralRegularExpression.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringLiteralRegularExpression.json index bb2b1ffc5..244572ffc 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringLiteralRegularExpression.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/StringLiteralRegularExpression.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "20min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "MAIN", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SuperfluousSemicolon.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SuperfluousSemicolon.json index 2c460a65f..549f9a146 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SuperfluousSemicolon.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SuperfluousSemicolon.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SwallowedException.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SwallowedException.json index 6ac88ff2c..3bb461bad 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SwallowedException.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/SwallowedException.json @@ -6,6 +6,13 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "COMPLETE", + "impacts": { + "MAINTAINABILITY": "MEDIUM", + "SECURITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "MAIN", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TabulationCharacter.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TabulationCharacter.json index f3829a02b..557defdfd 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TabulationCharacter.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TabulationCharacter.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Info", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLargeMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLargeMethod.json index 4a0a84c3c..5e01d3e5f 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLargeMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLargeMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLongLine.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLongLine.json index 974e03eee..6f8868ca4 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLongLine.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooLongLine.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "2min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyParameters.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyParameters.json index 8ea79beb4..5ea98372a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyParameters.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyParameters.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1h" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "MAIN", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManySubroutines.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManySubroutines.json index 2a07815b5..8fd3de244 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManySubroutines.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManySubroutines.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyVariables.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyVariables.json index 710dccbd0..e091a6f43 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyVariables.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TooManyVariables.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "30min" }, + "code": { + "attribute": "FOCUSED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "MAIN", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingCommaArgumentList.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingCommaArgumentList.json index f08814fe5..7de1d9f93 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingCommaArgumentList.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingCommaArgumentList.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Blocker", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingWhitespace.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingWhitespace.json index 5afb7e65c..d6b97debb 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingWhitespace.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TrailingWhitespace.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Info", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TypeAlias.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TypeAlias.json index fbd47148c..19596bf7c 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TypeAlias.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/TypeAlias.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "10min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Info", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnicodeToAnsiCast.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnicodeToAnsiCast.json index 9c0c2d3e8..9dc7d5247 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnicodeToAnsiCast.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnicodeToAnsiCast.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "20min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitLevelKeywordIndentation.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitLevelKeywordIndentation.json index 094c2eb32..9b2e71983 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitLevelKeywordIndentation.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitLevelKeywordIndentation.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitName.json index 30f3f993e..c569d2537 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnitName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "15min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnspecifiedReturnType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnspecifiedReturnType.json index 32f765644..9bb2efaf6 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnspecifiedReturnType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnspecifiedReturnType.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedConstant.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedConstant.json index fdee6a908..7e720c3f0 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedConstant.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedConstant.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedField.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedField.json index 2604b71a6..69ad740a0 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedField.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedField.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedGlobalVariable.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedGlobalVariable.json index d434d5109..4e09c36d3 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedGlobalVariable.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedGlobalVariable.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedImport.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedImport.json index 4108426a0..49b73427d 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedImport.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedImport.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedLocalVariable.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedLocalVariable.json index 572300d7b..5920dbf83 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedLocalVariable.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedLocalVariable.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedMethod.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedMethod.json index 7b29bbb0d..f93c5a18a 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedMethod.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedMethod.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedProperty.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedProperty.json index 506d8892b..2bb2bdb26 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedProperty.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedProperty.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedType.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedType.json index c94a82124..7204271f1 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedType.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/UnusedType.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableInitialization.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableInitialization.json index f17078b63..a2f98c4ed 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableInitialization.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableInitialization.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "LOGICAL", + "impacts": { + "RELIABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableName.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableName.json index 7d28125ae..aefde84f4 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableName.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VariableName.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "IDENTIFIABLE", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Minor", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilityKeywordIndentation.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilityKeywordIndentation.json index 71ccdfc9b..b343e8836 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilityKeywordIndentation.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilityKeywordIndentation.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "1min" }, + "code": { + "attribute": "FORMATTED", + "impacts": { + "MAINTAINABILITY": "MEDIUM" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilitySectionOrder.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilitySectionOrder.json index 5ce426cb6..0115958bc 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilitySectionOrder.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/VisibilitySectionOrder.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "3min" }, + "code": { + "attribute": "CONVENTIONAL", + "impacts": { + "MAINTAINABILITY": "LOW" + } + }, "tags": [], "defaultSeverity": "Major", "scope": "ALL", diff --git a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/WithStatement.json b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/WithStatement.json index 5c2f04274..cde066764 100644 --- a/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/WithStatement.json +++ b/delphi-checks/src/main/resources/org/sonar/l10n/delphi/rules/community-delphi/WithStatement.json @@ -6,6 +6,12 @@ "func": "Constant/Issue", "constantCost": "5min" }, + "code": { + "attribute": "CLEAR", + "impacts": { + "MAINTAINABILITY": "HIGH" + } + }, "tags": [], "defaultSeverity": "Critical", "scope": "ALL",