Compare commits

...

2 Commits

Author SHA1 Message Date
Tomasz Tylenda
7548fa45bf Update metadata 2025-02-28 16:06:21 +01:00
tomasz-tylenda-sonarsource
10feea382d Create rule S7208 2025-02-28 14:44:49 +00:00
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
"title": "Use \"java.nio.file.Path\" instead of legacy \"java.io.File\"",
"type": "CODE_SMELL",
"status": "ready",
"remediation": {
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [
"java11"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-7208",
"sqKey": "S7208",
"scope": "All",
"defaultQualityProfiles": ["Sonar way"],
"quickfix": "targeted",
"code": {
"impacts": {
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "LOW",
"SECURITY": "LOW"
},
"attribute": "CONVENTIONAL"
}
}

View File

@ -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,java,diff-id=1,diff-type=noncompliant]
----
FIXME
----
==== Compliant solution
[source,java,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

View File

@ -0,0 +1,2 @@
{
}