From 05a2bd0cdf62e01db4d3e5ef234748bc74b62a60 Mon Sep 17 00:00:00 2001 From: yassin-kammoun-sonarsource Date: Tue, 25 Mar 2025 12:58:45 +0000 Subject: [PATCH] Add rust to rule S2437 --- rules/S2437/rust/metadata.json | 2 ++ rules/S2437/rust/rule.adoc | 44 ++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 rules/S2437/rust/metadata.json create mode 100644 rules/S2437/rust/rule.adoc diff --git a/rules/S2437/rust/metadata.json b/rules/S2437/rust/metadata.json new file mode 100644 index 0000000000..7a73a41bfd --- /dev/null +++ b/rules/S2437/rust/metadata.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/rules/S2437/rust/rule.adoc b/rules/S2437/rust/rule.adoc new file mode 100644 index 0000000000..368fb2954e --- /dev/null +++ b/rules/S2437/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