github SonarSource/sonar-java 8.25.0.42802

6 hours ago

Release notes - SonarJava - 8.25

Feature

SONARJAVA-6093 Implement rule S3051 : Main methods should be used only as program entry point
SONARJAVA-6100 Implement rule S8450 : Use IO.readln() for console input instead of BufferedReader boilerplate
SONARJAVA-6102 Implement rule S8447 : Initialize subclass fields before super() when superclass constructor may call
SONARJAVA-6104 S8469: Use IO.readln(String prompt) instead of IO.print followed by IO.readln()
SONARJAVA-6106 S8465 "ScopedValue" instances should be assigned to a stable reference
SONARJAVA-6112 Implement rule S8446 - Only one "main" method should be present

False Positive

SONARJAVA-6146 S8445: Relax the rule to allow more styles of sorting imports

False Negative

SONARJAVA-5017 S4684 Add support for Jakarta

Bug

SONARJAVA-6143 Repair quickFix for S1118 rule

Maintenance

SONARJAVA-6006 Bump org.assertj:assertj-core from 3.23.1 to 3.27.7
SONARJAVA-6016 Upgrade or remove Guava-based ruling test
SONARJAVA-6029 Licence packaging standard - SonarJava
SONARJAVA-6092 Add telemetry for Java 25 features
SONARJAVA-6098 Add redundant module imports checking to S1128
SONARJAVA-6114 Update RSpec synchonization GitHub action
SONARJAVA-6121 S2694 raises issues on classes classes within Implicitly Declared Classes
SONARJAVA-6140 Add automated release workflow
SONARJAVA-6141 Save ncloc metric on test files
SONARJAVA-6144 Modify rule S1128: Add an example of unnecessary module import
SONARJAVA-6150 Automated Release: Add Jira issue categories
SONARJAVA-6159 Update rule metadata: change formatting with new rule-api.jar
SONARJAVA-6178 Update rule metadata

Don't miss a new sonar-java release

NewReleases is sending notifications on new releases.