Skip to content

Commit 74b9e25

Browse files
Create rule S8216
1 parent 02d9741 commit 74b9e25

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

rules/S8216/cfamily/metadata.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"title": "FIXME",
3+
"type": "CODE_SMELL",
4+
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "5min"
8+
},
9+
"tags": [
10+
],
11+
"defaultSeverity": "Major",
12+
"ruleSpecification": "RSPEC-8216",
13+
"sqKey": "S8216",
14+
"scope": "All",
15+
"defaultQualityProfiles": ["Sonar way"],
16+
"quickfix": "unknown",
17+
"code": {
18+
"impacts": {
19+
"MAINTAINABILITY": "HIGH",
20+
"RELIABILITY": "MEDIUM",
21+
"SECURITY": "LOW"
22+
},
23+
"attribute": "CONVENTIONAL"
24+
}
25+
}

rules/S8216/cfamily/rule.adoc

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FIXME: add a description
2+
3+
// If you want to factorize the description uncomment the following line and create the file.
4+
//include::../description.adoc[]
5+
6+
== Why is this an issue?
7+
8+
FIXME: remove the unused optional headers (that are commented out)
9+
10+
//=== What is the potential impact?
11+
12+
== How to fix it
13+
//== How to fix it in FRAMEWORK NAME
14+
15+
=== Code examples
16+
17+
==== Noncompliant code example
18+
19+
[source,cpp,diff-id=1,diff-type=noncompliant]
20+
----
21+
FIXME
22+
----
23+
24+
==== Compliant solution
25+
26+
[source,cpp,diff-id=1,diff-type=compliant]
27+
----
28+
FIXME
29+
----
30+
31+
//=== How does this work?
32+
33+
//=== Pitfalls
34+
35+
//=== Going the extra mile
36+
37+
38+
//== Resources
39+
//=== Documentation
40+
//=== Articles & blog posts
41+
//=== Conference presentations
42+
//=== Standards
43+
//=== External coding guidelines
44+
//=== Benchmarks

rules/S8216/metadata.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

0 commit comments

Comments
 (0)