Nightly update
This commit is contained in:
parent
26b18d5d09
commit
dfc955af1e
@ -2,6 +2,10 @@
|
||||
"title": "Meta tags should not be used to refresh or redirect",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "20min"
|
||||
},
|
||||
"tags": [
|
||||
"user-experience"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "\"<title>\" should be present in all pages",
|
||||
"type": "BUG",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"user-experience"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Favicons should be used in all pages",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"user-experience"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Track lack of required child elements",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Function parameters' default values should not be modified or assigned",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Instance and class methods should have at least one positional parameter",
|
||||
"type": "BUG",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Assertion methods should not be used within the try block of a try-catch catching an Error",
|
||||
"type": "BUG",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"tests"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Only one method invocation is expected when testing checked exceptions",
|
||||
"type": "BUG",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"tests"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "JUnit assertTrue\/assertFalse should be simplified to the corresponding dedicated assertion",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "2min"
|
||||
},
|
||||
"tags": [
|
||||
"tests"
|
||||
],
|
||||
|
@ -2,6 +2,10 @@
|
||||
"title": "Functions, methods and lambdas should not have too many mandatory parameters",
|
||||
"type": "CODE_SMELL",
|
||||
"status": "ready",
|
||||
"remediation": {
|
||||
"func": "Constant\/Issue",
|
||||
"constantCost": "20min"
|
||||
},
|
||||
"tags": [
|
||||
"brain-overload",
|
||||
"design"
|
||||
|
@ -7,7 +7,7 @@ This rule raises an issue when ``++computeIfAbsent++`` or ``++computeIfPresent++
|
||||
== Noncompliant Code Example
|
||||
|
||||
----
|
||||
map.computeIfAbsent(key, k -> null); // Noncompliant, te map will not contain an entry key->null.
|
||||
map.computeIfAbsent(key, k -> null); // Noncompliant, the map will not contain an entry key->null.
|
||||
map.computeIfPresent(key, (k, oldValue) -> null); // Noncompliant
|
||||
----
|
||||
|
||||
@ -26,5 +26,5 @@ if (map.containsKey(key)) {
|
||||
|
||||
== See also
|
||||
|
||||
* S3824 - "Map.get" and value test should be replaced with single method call
|
||||
* S3824 - "Map.get" and value test should be replaced with a single method call
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user