From b29faa67bd94bbda6cd845cac65e15f52a43b1d8 Mon Sep 17 00:00:00 2001 From: guillaume-dequenne-sonarsource Date: Fri, 15 Mar 2024 14:32:20 +0000 Subject: [PATCH] Create rule S6948 --- rules/S6948/metadata.json | 2 ++ rules/S6948/python/metadata.json | 25 ++++++++++++++++++ rules/S6948/python/rule.adoc | 44 ++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 rules/S6948/metadata.json create mode 100644 rules/S6948/python/metadata.json create mode 100644 rules/S6948/python/rule.adoc diff --git a/rules/S6948/metadata.json b/rules/S6948/metadata.json new file mode 100644 index 0000000000..2c63c08510 --- /dev/null +++ b/rules/S6948/metadata.json @@ -0,0 +1,2 @@ +{ +} diff --git a/rules/S6948/python/metadata.json b/rules/S6948/python/metadata.json new file mode 100644 index 0000000000..2ae037ff1e --- /dev/null +++ b/rules/S6948/python/metadata.json @@ -0,0 +1,25 @@ +{ + "title": "FIXME", + "type": "CODE_SMELL", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "5min" + }, + "tags": [ + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-6948", + "sqKey": "S6948", + "scope": "All", + "defaultQualityProfiles": ["Sonar way"], + "quickfix": "unknown", + "code": { + "impacts": { + "MAINTAINABILITY": "HIGH", + "RELIABILITY": "MEDIUM", + "SECURITY": "LOW" + }, + "attribute": "CONVENTIONAL" + } +} diff --git a/rules/S6948/python/rule.adoc b/rules/S6948/python/rule.adoc new file mode 100644 index 0000000000..4bd440f87a --- /dev/null +++ b/rules/S6948/python/rule.adoc @@ -0,0 +1,44 @@ +FIXME: add a description + +// If you want to factorize the description uncomment the following line and create the file. +//include::../description.adoc[] + +== Why is this an issue? + +FIXME: remove the unused optional headers (that are commented out) + +//=== What is the potential impact? + +== How to fix it +//== How to fix it in FRAMEWORK NAME + +=== Code examples + +==== Noncompliant code example + +[source,text,diff-id=1,diff-type=noncompliant] +---- +FIXME +---- + +==== Compliant solution + +[source,text,diff-id=1,diff-type=compliant] +---- +FIXME +---- + +//=== How does this work? + +//=== Pitfalls + +//=== Going the extra mile + + +//== Resources +//=== Documentation +//=== Articles & blog posts +//=== Conference presentations +//=== Standards +//=== External coding guidelines +//=== Benchmarks