Add spotless plugin and fix grammar issues #1503
Quality Gate failed
Failed conditions
2 Security Hotspots
C Reliability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check warning on line 128 in org.restlet/src/test/java/org/restlet/engine/header/HeaderTestCase.java
sonarqubecloud / SonarCloud Code Analysis
Swap these 2 arguments so they are in the correct order: expected value, actual value.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwOKLQrmbX5-9NHF&open=AZ06MwOKLQrmbX5-9NHF&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Change the visibility of this constructor to "protected".
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv6-LQrmbX5-9ND2&open=AZ06Mv6-LQrmbX5-9ND2&pullRequest=1503
Check warning on line 44 in org.restlet/src/main/java/org/restlet/Request.java
sonarqubecloud / SonarCloud Code Analysis
Split this “Monster Class” into smaller and more specialized ones to reduce its dependencies on other classes from 24 to the maximum authorized 20 or less.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwNuLQrmbX5-9NG4&open=AZ06MwNuLQrmbX5-9NG4&pullRequest=1503
Check warning on line 129 in org.restlet/src/test/java/org/restlet/engine/header/HeaderTestCase.java
sonarqubecloud / SonarCloud Code Analysis
Swap these 2 arguments so they are in the correct order: expected value, actual value.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwOKLQrmbX5-9NHG&open=AZ06MwOKLQrmbX5-9NHG&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Remove this 'public' modifier.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwRyLQrmbX5-9NHY&open=AZ06MwRyLQrmbX5-9NHY&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
This class has 6 parents which is greater than 5 authorized.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwZNLQrmbX5-9NH6&open=AZ06MwZNLQrmbX5-9NH6&pullRequest=1503
Check failure on line 51 in org.restlet/src/main/java/org/restlet/data/Conditions.java
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwG3LQrmbX5-9NFt&open=AZ06MwG3LQrmbX5-9NFt&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv9_LQrmbX5-9NER&open=AZ06Mv9_LQrmbX5-9NER&pullRequest=1503
Check failure on line 200 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv39LQrmbX5-9NDX&open=AZ06Mv39LQrmbX5-9NDX&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv9JLQrmbX5-9NEO&open=AZ06Mv9JLQrmbX5-9NEO&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 35 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv9mLQrmbX5-9NEQ&open=AZ06Mv9mLQrmbX5-9NEQ&pullRequest=1503
Check warning on line 535 in org.restlet/src/main/java/org/restlet/Application.java
sonarqubecloud / SonarCloud Code Analysis
Format specifiers or lambda should be used instead of string concatenation.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwNhLQrmbX5-9NG3&open=AZ06MwNhLQrmbX5-9NG3&pullRequest=1503
Check warning on line 77 in org.restlet/src/main/java/org/restlet/routing/VirtualHost.java
sonarqubecloud / SonarCloud Code Analysis
Remove this block of code, fill it in, or add a comment explaining why it is empty.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwLqLQrmbX5-9NGt&open=AZ06MwLqLQrmbX5-9NGt&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwXJLQrmbX5-9NHt&open=AZ06MwXJLQrmbX5-9NHt&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Remove this 'public' modifier.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwXXLQrmbX5-9NHu&open=AZ06MwXXLQrmbX5-9NHu&pullRequest=1503
Check warning on line 771 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java
sonarqubecloud / SonarCloud Code Analysis
Lambda should be used to defer string concatenation.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv39LQrmbX5-9NDc&open=AZ06Mv39LQrmbX5-9NDc&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "javax.net.ssl.trustStorePassword" 3 times.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwCdLQrmbX5-9NE_&open=AZ06MwCdLQrmbX5-9NE_&pullRequest=1503
Check failure on line 68 in org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "], SYSTEM [" 4 times.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwAjLQrmbX5-9NEn&open=AZ06MwAjLQrmbX5-9NEn&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Use the built-in formatting to construct this argument.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv1OLQrmbX5-9NDI&open=AZ06Mv1OLQrmbX5-9NDI&pullRequest=1503
Check warning on line 745 in org.restlet/src/main/java/org/restlet/engine/header/HeaderUtils.java
sonarqubecloud / SonarCloud Code Analysis
Lambda should be used to defer string concatenation.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv39LQrmbX5-9NDb&open=AZ06Mv39LQrmbX5-9NDb&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Format specifiers or lambda should be used instead of string concatenation.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06MwNELQrmbX5-9NG1&open=AZ06MwNELQrmbX5-9NG1&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 47 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv0dLQrmbX5-9NC5&open=AZ06Mv0dLQrmbX5-9NC5&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 46 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv-PLQrmbX5-9NEU&open=AZ06Mv-PLQrmbX5-9NEU&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 153 to 64, Complexity from 29 to 14, Nesting Level from 10 to 2, Number of Variables from 24 to 6.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv7YLQrmbX5-9ND9&open=AZ06Mv7YLQrmbX5-9ND9&pullRequest=1503
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ06Mv_QLQrmbX5-9NEc&open=AZ06Mv_QLQrmbX5-9NEc&pullRequest=1503