SONARJAVA-6493 Implement rule S8913: REST Data with Panache resource interfaces should not have implementation classes#5708
Conversation
b3c1892 to
959f77f
Compare
|
There was a problem hiding this comment.
Remove this file from commits
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <release>26</release> | ||
| <release>21</release> |
There was a problem hiding this comment.
| <release>21</release> | |
| <release>26</release> |
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <release>26</release> | ||
| <release>21</release> |
There was a problem hiding this comment.
| <release>21</release> | |
| <release>26</release> |
93ec116 to
236650b
Compare
Detect when classes implement interfaces extending Quarkus REST Data with Panache resource interfaces (PanacheEntityResource, PanacheRepositoryResource, PanacheMongoEntityResource, PanacheMongoRepositoryResource). These implementations are silently ignored by Quarkus's code generation mechanism, leading to wasted development effort and confusion.
236650b to
b862a2d
Compare
CI failed: The build failed due to compilation errors in test code regarding method signatures and test infrastructure failures in the autoscan module following the implementation of rule S8913.OverviewTwo distinct failures were identified in the CI: a compilation error in a Java test source file and a missing artifact failure in the autoscan integration tests. Both appear directly related to the changes introduced in this PR. FailuresCompilation Failure in
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar




Implements rule S8913: REST Data with Panache resource interfaces should not have implementation classes.
Summary
RestDataPanacheResourceImplementationCheckthat detects classes implementing Quarkus REST Data with Panache resource interfaces (PanacheEntityResource,PanacheRepositoryResource,PanacheMongoEntityResource,PanacheMongoRepositoryResource)pom.xmlfiles from 26 to 21