From 315618048dd70a85443e65ffb86039f527c106c9 Mon Sep 17 00:00:00 2001 From: kaufco Date: Wed, 10 May 2023 16:38:00 +0000 Subject: [PATCH] Create rule S6627 --- rules/S6627/kotlin/metadata.json | 17 +++++++++++++ rules/S6627/kotlin/rule.adoc | 43 ++++++++++++++++++++++++++++++++ rules/S6627/metadata.json | 2 ++ 3 files changed, 62 insertions(+) create mode 100644 rules/S6627/kotlin/metadata.json create mode 100644 rules/S6627/kotlin/rule.adoc create mode 100644 rules/S6627/metadata.json diff --git a/rules/S6627/kotlin/metadata.json b/rules/S6627/kotlin/metadata.json new file mode 100644 index 00000000000..6a5a985b285 --- /dev/null +++ b/rules/S6627/kotlin/metadata.json @@ -0,0 +1,17 @@ +{ + "title": "FIXME", + "type": "CODE_SMELL", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "5min" + }, + "tags": [ + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-6627", + "sqKey": "S6627", + "scope": "All", + "defaultQualityProfiles": ["Sonar way"], + "quickfix": "unknown" +} diff --git a/rules/S6627/kotlin/rule.adoc b/rules/S6627/kotlin/rule.adoc new file mode 100644 index 00000000000..50a6ef739e3 --- /dev/null +++ b/rules/S6627/kotlin/rule.adoc @@ -0,0 +1,43 @@ +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 +//=== Benchmarks diff --git a/rules/S6627/metadata.json b/rules/S6627/metadata.json new file mode 100644 index 00000000000..2c63c085104 --- /dev/null +++ b/rules/S6627/metadata.json @@ -0,0 +1,2 @@ +{ +}