From 4be3c6eb3a8c9df30d0d2825b9c9e6df4fafaa5c Mon Sep 17 00:00:00 2001 From: yassin-kammoun-sonarsource Date: Thu, 27 Mar 2025 09:07:48 +0000 Subject: [PATCH] Create rule S7463 --- rules/S7463/metadata.json | 2 ++ rules/S7463/rust/metadata.json | 25 +++++++++++++++++++ rules/S7463/rust/rule.adoc | 44 ++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 rules/S7463/metadata.json create mode 100644 rules/S7463/rust/metadata.json create mode 100644 rules/S7463/rust/rule.adoc diff --git a/rules/S7463/metadata.json b/rules/S7463/metadata.json new file mode 100644 index 0000000000..2c63c08510 --- /dev/null +++ b/rules/S7463/metadata.json @@ -0,0 +1,2 @@ +{ +} diff --git a/rules/S7463/rust/metadata.json b/rules/S7463/rust/metadata.json new file mode 100644 index 0000000000..9f325b027d --- /dev/null +++ b/rules/S7463/rust/metadata.json @@ -0,0 +1,25 @@ +{ + "title": "FIXME", + "type": "CODE_SMELL", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "5min" + }, + "tags": [ + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-7463", + "sqKey": "S7463", + "scope": "All", + "defaultQualityProfiles": ["Sonar way"], + "quickfix": "unknown", + "code": { + "impacts": { + "MAINTAINABILITY": "HIGH", + "RELIABILITY": "MEDIUM", + "SECURITY": "LOW" + }, + "attribute": "CONVENTIONAL" + } +} diff --git a/rules/S7463/rust/rule.adoc b/rules/S7463/rust/rule.adoc new file mode 100644 index 0000000000..368fb2954e --- /dev/null +++ b/rules/S7463/rust/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,rust,diff-id=1,diff-type=noncompliant] +---- +FIXME +---- + +==== Compliant solution + +[source,rust,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