From c4165e5800297bbd33f716def89f40accdabb416 Mon Sep 17 00:00:00 2001 From: Jonas Wielage Date: Wed, 13 Nov 2024 14:12:13 +0100 Subject: [PATCH] Update static RSPEC files --- .../org/sonar/l10n/php/rules/php/S128.json | 2 +- .../org/sonar/l10n/php/rules/php/S1314.json | 2 +- .../org/sonar/l10n/php/rules/php/S1451.json | 2 +- .../org/sonar/l10n/php/rules/php/S1599.json | 2 +- .../org/sonar/l10n/php/rules/php/S1799.json | 2 +- .../org/sonar/l10n/php/rules/php/S2007.json | 2 +- .../org/sonar/l10n/php/rules/php/S2014.json | 2 +- .../org/sonar/l10n/php/rules/php/S2068.html | 1 - .../org/sonar/l10n/php/rules/php/S2068.json | 2 +- .../org/sonar/l10n/php/rules/php/S2187.json | 2 +- .../org/sonar/l10n/php/rules/php/S2245.html | 40 ++++++++++++------- .../org/sonar/l10n/php/rules/php/S2699.json | 2 +- .../org/sonar/l10n/php/rules/php/S3333.json | 2 +- .../org/sonar/l10n/php/rules/php/S3334.json | 2 +- .../org/sonar/l10n/php/rules/php/S3336.json | 2 +- .../org/sonar/l10n/php/rules/php/S3337.json | 2 +- .../org/sonar/l10n/php/rules/php/S3360.json | 2 +- .../org/sonar/l10n/php/rules/php/S5632.json | 2 +- .../org/sonar/l10n/php/rules/php/S5708.json | 2 +- .../org/sonar/l10n/php/rules/php/S5911.json | 2 +- .../org/sonar/l10n/php/rules/php/S6418.html | 6 +-- .../org/sonar/l10n/php/rules/php/S6418.json | 2 +- sonarpedia.json | 2 +- 23 files changed, 48 insertions(+), 39 deletions(-) diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S128.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S128.json index 0d3c0b36a7..3b3cc28e0d 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S128.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S128.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "CLEAR" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1314.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1314.json index 66bbaf0901..d7557e6e96 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1314.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1314.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "CLEAR" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1451.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1451.json index b6b4082f10..2ce4351013 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1451.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1451.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "LAWFUL" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1599.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1599.json index f9c5245a9b..75447271f1 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1599.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1599.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "CLEAR" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1799.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1799.json index d2f7fbc760..c3bdbb939b 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1799.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S1799.json @@ -3,7 +3,7 @@ "type": "BUG", "code": { "impacts": { - "RELIABILITY": "HIGH" + "RELIABILITY": "BLOCKER" }, "attribute": "CONVENTIONAL" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2007.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2007.json index b0efbcee60..b92e548506 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2007.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2007.json @@ -3,7 +3,7 @@ "type": "CODE_SMELL", "code": { "impacts": { - "MAINTAINABILITY": "HIGH" + "MAINTAINABILITY": "BLOCKER" }, "attribute": "MODULAR" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2014.json b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2014.json index 88295059ec..e41704ab5b 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2014.json +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2014.json @@ -3,7 +3,7 @@ "type": "BUG", "code": { "impacts": { - "RELIABILITY": "HIGH" + "RELIABILITY": "BLOCKER" }, "attribute": "LOGICAL" }, diff --git a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2068.html b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2068.html index b29dcea16a..10bb69236a 100644 --- a/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2068.html +++ b/php-checks/src/main/resources/org/sonar/l10n/php/rules/php/S2068.html @@ -8,7 +8,6 @@

Credentials should be stored outside of the code in a configuration file, a database, or a management service for secrets.

This rule flags instances of hard-coded credentials used in database and LDAP connections. It looks for hard-coded credentials in connection strings, and for variable names that match any of the patterns from the provided list.

-

It’s recommended to customize the configuration of this rule with additional credential words such as "oauthToken", "secret", …​

Ask Yourself Whether