Skip to content

Commit

Permalink
Create rule S6627
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufco committed May 10, 2023
1 parent 3fb0db7 commit 3156180
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
17 changes: 17 additions & 0 deletions rules/S6627/kotlin/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
}
43 changes: 43 additions & 0 deletions rules/S6627/kotlin/rule.adoc
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions rules/S6627/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}

0 comments on commit 3156180

Please sign in to comment.