Add back common rule S1482 and change the status to closed
This commit is contained in:
parent
f6a64c41de
commit
28e8afa71d
3
rules/S1482/abap/metadata.json
Normal file
3
rules/S1482/abap/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/abap/rule.adoc
Normal file
12
rules/S1482/abap/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/cfamily/metadata.json
Normal file
3
rules/S1482/cfamily/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/cfamily/rule.adoc
Normal file
12
rules/S1482/cfamily/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/cobol/metadata.json
Normal file
3
rules/S1482/cobol/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/cobol/rule.adoc
Normal file
12
rules/S1482/cobol/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/csharp/metadata.json
Normal file
3
rules/S1482/csharp/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/csharp/rule.adoc
Normal file
12
rules/S1482/csharp/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/flex/metadata.json
Normal file
3
rules/S1482/flex/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/flex/rule.adoc
Normal file
12
rules/S1482/flex/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/java/metadata.json
Normal file
3
rules/S1482/java/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/java/rule.adoc
Normal file
12
rules/S1482/java/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/javascript/metadata.json
Normal file
3
rules/S1482/javascript/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/javascript/rule.adoc
Normal file
12
rules/S1482/javascript/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
4
rules/S1482/message.adoc
Normal file
4
rules/S1482/message.adoc
Normal file
@ -0,0 +1,4 @@
|
||||
=== Message
|
||||
|
||||
Add tests to cover this branch.
|
||||
|
29
rules/S1482/metadata.json
Normal file
29
rules/S1482/metadata.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"title": "Branches should have sufficient coverage by unit tests",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "closed",
|
||||
"remediation": {
|
||||
"func": "Linear",
|
||||
"linearDesc": "per uncovered condition",
|
||||
"linearFactor": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"bad-practice"
|
||||
],
|
||||
"extra": {
|
||||
"replacementRules": [
|
||||
|
||||
],
|
||||
"legacyKeys": [
|
||||
"InsufficientBranchCoverage"
|
||||
]
|
||||
},
|
||||
"defaultSeverity": "Critical",
|
||||
"ruleSpecification": "RSPEC-1482",
|
||||
"sqKey": "S1482",
|
||||
"scope": "Main",
|
||||
"defaultQualityProfiles": [
|
||||
|
||||
],
|
||||
"quickfix": "unknown"
|
||||
}
|
11
rules/S1482/parameters.adoc
Normal file
11
rules/S1482/parameters.adoc
Normal file
@ -0,0 +1,11 @@
|
||||
=== Parameters
|
||||
|
||||
.minimumBranchCoverageRatio
|
||||
****
|
||||
|
||||
----
|
||||
65.0
|
||||
----
|
||||
|
||||
The minimum required branch coverage ratio.
|
||||
****
|
3
rules/S1482/php/metadata.json
Normal file
3
rules/S1482/php/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/php/rule.adoc
Normal file
12
rules/S1482/php/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/pli/metadata.json
Normal file
3
rules/S1482/pli/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/pli/rule.adoc
Normal file
12
rules/S1482/pli/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/plsql/metadata.json
Normal file
3
rules/S1482/plsql/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/plsql/rule.adoc
Normal file
12
rules/S1482/plsql/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/python/metadata.json
Normal file
3
rules/S1482/python/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/python/rule.adoc
Normal file
12
rules/S1482/python/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/rpg/metadata.json
Normal file
3
rules/S1482/rpg/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/rpg/rule.adoc
Normal file
12
rules/S1482/rpg/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
2
rules/S1482/rule.adoc
Normal file
2
rules/S1482/rule.adoc
Normal file
@ -0,0 +1,2 @@
|
||||
An issue is created on a file as soon as the branch coverage on this file is less than the required threshold. It gives the number of branches to be covered in order to reach the required threshold.
|
||||
|
3
rules/S1482/swift/metadata.json
Normal file
3
rules/S1482/swift/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/swift/rule.adoc
Normal file
12
rules/S1482/swift/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/vb6/metadata.json
Normal file
3
rules/S1482/vb6/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/vb6/rule.adoc
Normal file
12
rules/S1482/vb6/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
3
rules/S1482/vbnet/metadata.json
Normal file
3
rules/S1482/vbnet/metadata.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
12
rules/S1482/vbnet/rule.adoc
Normal file
12
rules/S1482/vbnet/rule.adoc
Normal file
@ -0,0 +1,12 @@
|
||||
include::../rule.adoc[]
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
||||
'''
|
||||
== Implementation Specification
|
||||
(visible only on this page)
|
||||
|
||||
include::../message.adoc[]
|
||||
|
||||
include::../parameters.adoc[]
|
||||
|
||||
endif::env-github,rspecator-view[]
|
Loading…
x
Reference in New Issue
Block a user