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