Checkstyle Results
The following document contains the results of Checkstyle 9.3 with sun_checks.xml ruleset.
Summary
Files | ![]() |
![]() |
![]() |
---|---|---|---|
16 | 0 | 0 | 416 |
Files
Rules
Category | Rule | Violations | Severity |
---|---|---|---|
blocks | LeftCurly | 6 | ![]() |
coding | HiddenField | 23 | ![]() |
design | DesignForExtension | 61 | ![]() |
HideUtilityClassConstructor | 1 | ![]() | |
imports | AvoidStarImport | 7 | ![]() |
RedundantImport | 1 | ![]() | |
UnusedImports
|
7 | ![]() | |
javadoc | JavadocMethod | 1 | ![]() |
JavadocPackage | 6 | ![]() | |
JavadocType | 4 | ![]() | |
JavadocVariable | 21 | ![]() | |
MissingJavadocMethod | 82 | ![]() | |
misc | FinalParameters | 82 | ![]() |
NewlineAtEndOfFile | 6 | ![]() | |
regexp | RegexpSingleline
|
29 | ![]() |
sizes | LineLength
|
66 | ![]() |
whitespace | FileTabCharacter | 2 | ![]() |
OperatorWrap | 4 | ![]() | |
WhitespaceAround | 7 | ![]() |
Details
application.properties
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
com/example/restapi/RestApiApplication.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
design | HideUtilityClassConstructor | Utility classes should not have a public or default constructor. | 6 |
![]() |
whitespace | FileTabCharacter | File contains tab characters (this is the first instance). | 9 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 9 |
![]() |
misc | FinalParameters | Parameter args should be final. | 9 |
com/example/restapi/config/SwaggerConfig.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
design | DesignForExtension | Class 'SwaggerConfig' looks like designed for extension (can be subclassed), but the method 'customOpenAPI' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'SwaggerConfig' final or making the method 'customOpenAPI' static/final/abstract/empty, or adding allowed annotation for the method. | 10 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 10 |
com/example/restapi/controller/BookController.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - org.springframework.web.bind.annotation.*. | 7 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 19 |
![]() |
design | DesignForExtension | Class 'BookController' looks like designed for extension (can be subclassed), but the method 'getAllBooks' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookController' final or making the method 'getAllBooks' static/final/abstract/empty, or adding allowed annotation for the method. | 22 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 22 |
![]() |
design | DesignForExtension | Class 'BookController' looks like designed for extension (can be subclassed), but the method 'getBookById' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookController' final or making the method 'getBookById' static/final/abstract/empty, or adding allowed annotation for the method. | 27 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 27 |
![]() |
misc | FinalParameters | Parameter id should be final. | 28 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 95). | 30 |
![]() |
design | DesignForExtension | Class 'BookController' looks like designed for extension (can be subclassed), but the method 'createBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookController' final or making the method 'createBook' static/final/abstract/empty, or adding allowed annotation for the method. | 33 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 33 |
![]() |
misc | FinalParameters | Parameter book should be final. | 34 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 98). | 35 |
![]() |
design | DesignForExtension | Class 'BookController' looks like designed for extension (can be subclassed), but the method 'updateBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookController' final or making the method 'updateBook' static/final/abstract/empty, or adding allowed annotation for the method. | 45 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 45 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 98). | 46 |
![]() |
misc | FinalParameters | Parameter id should be final. | 46 |
![]() |
misc | FinalParameters | Parameter bookDetails should be final. | 46 |
![]() |
design | DesignForExtension | Class 'BookController' looks like designed for extension (can be subclassed), but the method 'deleteBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookController' final or making the method 'deleteBook' static/final/abstract/empty, or adding allowed annotation for the method. | 55 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 55 |
![]() |
misc | FinalParameters | Parameter id should be final. | 56 |
com/example/restapi/controller/BorrowingController.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 99). | 3 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 117). | 5 |
![]() |
imports | UnusedImports | Unused import - com.example.restapi.model.Book. | 9 |
![]() |
imports | UnusedImports | Unused import - io.swagger.v3.oas.annotations.Hidden. | 14 |
![]() |
imports | RedundantImport | Duplicate import to line 14 - io.swagger.v3.oas.annotations.Hidden. | 15 |
![]() |
imports | UnusedImports | Unused import - io.swagger.v3.oas.annotations.Hidden. | 15 |
![]() |
imports | UnusedImports | Unused import - java.util.Optional. | 19 |
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - org.springframework.web.bind.annotation.*. | 23 |
![]() |
javadoc | JavadocType | Unknown tag 'class'. | 26 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 27 |
![]() |
javadoc | JavadocType | Unknown tag 'brief'. | 27 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 95). | 29 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 32 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 41 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 54 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 54 |
![]() |
misc | FinalParameters | Parameter user should be final. | 54 |
![]() |
whitespace | OperatorWrap | '?' should be on a new line. | 55 |
![]() |
whitespace | OperatorWrap | ':' should be on a new line. | 56 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 67 |
![]() |
whitespace | OperatorWrap | '?' should be on a new line. | 68 |
![]() |
whitespace | OperatorWrap | ':' should be on a new line. | 69 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 73 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 109). | 76 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 114). | 90 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 108). | 93 |
![]() |
misc | FinalParameters | Parameter username should be final. | 93 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 94 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 103). | 106 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 106 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 106 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 109 |
com/example/restapi/controller/LibraryController.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - org.springframework.web.bind.annotation.*. | 10 |
![]() |
imports | UnusedImports | Unused import - java.util.Optional. | 15 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 119). | 19 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 22 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 23 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 24 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 26 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 27 |
![]() |
misc | FinalParameters | Parameter userController should be final. | 27 |
![]() |
coding | HiddenField | 'userController' hides a field. | 27 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 28 |
![]() |
misc | FinalParameters | Parameter bookController should be final. | 28 |
![]() |
coding | HiddenField | 'bookController' hides a field. | 28 |
![]() |
misc | FinalParameters | Parameter borrowingController should be final. | 29 |
![]() |
coding | HiddenField | 'borrowingController' hides a field. | 29 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'registerUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'registerUser' static/final/abstract/empty, or adding allowed annotation for the method. | 36 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 36 |
![]() |
misc | FinalParameters | Parameter user should be final. | 37 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'loginUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'loginUser' static/final/abstract/empty, or adding allowed annotation for the method. | 41 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 41 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 85). | 42 |
![]() |
misc | FinalParameters | Parameter user should be final. | 42 |
![]() |
misc | FinalParameters | Parameter session should be final. | 42 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 45 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'getUserSession' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'getUserSession' static/final/abstract/empty, or adding allowed annotation for the method. | 49 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 49 |
![]() |
misc | FinalParameters | Parameter session should be final. | 50 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'getBooks' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'getBooks' static/final/abstract/empty, or adding allowed annotation for the method. | 55 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 55 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 57 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'addBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'addBook' static/final/abstract/empty, or adding allowed annotation for the method. | 63 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 63 |
![]() |
misc | FinalParameters | Parameter book should be final. | 64 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 65 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'borrowBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'borrowBook' static/final/abstract/empty, or adding allowed annotation for the method. | 70 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 70 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 71 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 71 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 71 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 72 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'returnBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'returnBook' static/final/abstract/empty, or adding allowed annotation for the method. | 76 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 76 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 77 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'getUserProfile' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'getUserProfile' static/final/abstract/empty, or adding allowed annotation for the method. | 82 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 82 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 83 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'getUserProfileByUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'getUserProfileByUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 88 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 88 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 89 |
![]() |
misc | FinalParameters | Parameter username should be final. | 89 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 93 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 95 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 88). | 96 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'getBorrowedBooksByUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'getBorrowedBooksByUser' static/final/abstract/empty, or adding allowed annotation for the method. | 101 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 101 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 108). | 102 |
![]() |
misc | FinalParameters | Parameter username should be final. | 102 |
![]() |
design | DesignForExtension | Class 'LibraryController' looks like designed for extension (can be subclassed), but the method 'deleteBorrowing' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LibraryController' final or making the method 'deleteBorrowing' static/final/abstract/empty, or adding allowed annotation for the method. | 106 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 106 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 103). | 107 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 107 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 107 |
com/example/restapi/controller/UserController.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
imports | UnusedImports | Unused import - com.example.restapi.model.Book. | 3 |
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - org.springframework.web.bind.annotation.*. | 14 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 25 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 27 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 30 |
![]() |
misc | FinalParameters | Parameter userService should be final. | 31 |
![]() |
coding | HiddenField | 'userService' hides a field. | 31 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'getUserById' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'getUserById' static/final/abstract/empty, or adding allowed annotation for the method. | 35 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 35 |
![]() |
misc | FinalParameters | Parameter id should be final. | 36 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 39 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'getUserByUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'getUserByUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 43 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 43 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 82). | 44 |
![]() |
misc | FinalParameters | Parameter username should be final. | 44 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 47 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'getAllUsers' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'getAllUsers' static/final/abstract/empty, or adding allowed annotation for the method. | 51 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 51 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'createUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'createUser' static/final/abstract/empty, or adding allowed annotation for the method. | 56 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 56 |
![]() |
misc | FinalParameters | Parameter user should be final. | 57 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'register' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'register' static/final/abstract/empty, or adding allowed annotation for the method. | 61 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 61 |
![]() |
misc | FinalParameters | Parameter user should be final. | 62 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 113). | 64 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'login' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'login' static/final/abstract/empty, or adding allowed annotation for the method. | 71 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 71 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 108). | 72 |
![]() |
misc | FinalParameters | Parameter user should be final. | 72 |
![]() |
misc | FinalParameters | Parameter session should be final. | 72 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 82). | 73 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 124). | 75 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 87). | 76 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'checkSession' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'checkSession' static/final/abstract/empty, or adding allowed annotation for the method. | 86 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 86 |
![]() |
misc | FinalParameters | Parameter session should be final. | 87 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 88). | 92 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'logout' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'logout' static/final/abstract/empty, or adding allowed annotation for the method. | 95 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 95 |
![]() |
misc | FinalParameters | Parameter session should be final. | 96 |
![]() |
design | DesignForExtension | Class 'UserController' looks like designed for extension (can be subclassed), but the method 'deleteUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserController' final or making the method 'deleteUser' static/final/abstract/empty, or adding allowed annotation for the method. | 102 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 102 |
![]() |
misc | FinalParameters | Parameter id should be final. | 103 |
com/example/restapi/model/Book.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - jakarta.persistence.*. | 3 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 8 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 11 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 12 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 13 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 14 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 19 |
![]() |
whitespace | WhitespaceAround | '{' is not followed by whitespace. | 19 |
![]() |
whitespace | WhitespaceAround | '}' is not preceded with whitespace. | 19 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 21 |
![]() |
misc | FinalParameters | Parameter title should be final. | 21 |
![]() |
coding | HiddenField | 'title' hides a field. | 21 |
![]() |
misc | FinalParameters | Parameter author should be final. | 21 |
![]() |
coding | HiddenField | 'author' hides a field. | 21 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'getId' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'getId' static/final/abstract/empty, or adding allowed annotation for the method. | 26 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 26 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'setId' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'setId' static/final/abstract/empty, or adding allowed annotation for the method. | 30 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 30 |
![]() |
misc | FinalParameters | Parameter id should be final. | 30 |
![]() |
coding | HiddenField | 'id' hides a field. | 30 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'getTitle' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'getTitle' static/final/abstract/empty, or adding allowed annotation for the method. | 34 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 34 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'setTitle' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'setTitle' static/final/abstract/empty, or adding allowed annotation for the method. | 38 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 38 |
![]() |
misc | FinalParameters | Parameter title should be final. | 38 |
![]() |
coding | HiddenField | 'title' hides a field. | 38 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'getAuthor' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'getAuthor' static/final/abstract/empty, or adding allowed annotation for the method. | 42 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 42 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'setAuthor' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'setAuthor' static/final/abstract/empty, or adding allowed annotation for the method. | 46 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 46 |
![]() |
misc | FinalParameters | Parameter author should be final. | 46 |
![]() |
coding | HiddenField | 'author' hides a field. | 46 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'getBorrower' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'getBorrower' static/final/abstract/empty, or adding allowed annotation for the method. | 50 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 50 |
![]() |
design | DesignForExtension | Class 'Book' looks like designed for extension (can be subclassed), but the method 'setBorrower' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'Book' final or making the method 'setBorrower' static/final/abstract/empty, or adding allowed annotation for the method. | 54 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 54 |
![]() |
misc | FinalParameters | Parameter borrowedBy should be final. | 54 |
com/example/restapi/model/Borrowing.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
sizes | LineLength | Line is longer than 80 characters (found 86). | 3 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 94). | 7 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 12 |
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - jakarta.persistence.*. | 19 |
![]() |
javadoc | JavadocType | Unknown tag 'class'. | 23 |
![]() |
javadoc | JavadocType | Unknown tag 'brief'. | 24 |
![]() |
whitespace | WhitespaceAround | '{' is not followed by whitespace. | 77 |
![]() |
whitespace | WhitespaceAround | '}' is not preceded with whitespace. | 77 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 102). | 86 |
![]() |
misc | FinalParameters | Parameter user should be final. | 88 |
![]() |
coding | HiddenField | 'user' hides a field. | 88 |
![]() |
misc | FinalParameters | Parameter book should be final. | 88 |
![]() |
coding | HiddenField | 'book' hides a field. | 88 |
![]() |
blocks | LeftCurly | '{' at column 25 should have line break after. | 100 |
![]() |
blocks | LeftCurly | '{' at column 27 should have line break after. | 107 |
![]() |
blocks | LeftCurly | '{' at column 27 should have line break after. | 114 |
![]() |
blocks | LeftCurly | '{' at column 42 should have line break after. | 121 |
![]() |
blocks | LeftCurly | '{' at column 42 should have line break after. | 128 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 135 |
![]() |
misc | FinalParameters | Parameter returnDate should be final. | 135 |
![]() |
coding | HiddenField | 'returnDate' hides a field. | 135 |
![]() |
blocks | LeftCurly | '{' at column 57 should have line break after. | 135 |
com/example/restapi/model/User.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
imports | AvoidStarImport | Using the '.*' form of import should be avoided - jakarta.persistence.*. | 3 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 11 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 15 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 16 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 17 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 18 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 21 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 25 |
![]() |
whitespace | WhitespaceAround | '{' is not followed by whitespace. | 25 |
![]() |
whitespace | WhitespaceAround | '}' is not preceded with whitespace. | 25 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 82). | 27 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 27 |
![]() |
misc | FinalParameters | Parameter username should be final. | 27 |
![]() |
coding | HiddenField | 'username' hides a field. | 27 |
![]() |
misc | FinalParameters | Parameter password should be final. | 27 |
![]() |
coding | HiddenField | 'password' hides a field. | 27 |
![]() |
misc | FinalParameters | Parameter fullName should be final. | 27 |
![]() |
coding | HiddenField | 'fullName' hides a field. | 27 |
![]() |
misc | FinalParameters | Parameter email should be final. | 27 |
![]() |
coding | HiddenField | 'email' hides a field. | 27 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getId' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getId' static/final/abstract/empty, or adding allowed annotation for the method. | 34 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 34 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setId' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setId' static/final/abstract/empty, or adding allowed annotation for the method. | 38 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 38 |
![]() |
misc | FinalParameters | Parameter id should be final. | 38 |
![]() |
coding | HiddenField | 'id' hides a field. | 38 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 42 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 42 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 46 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 46 |
![]() |
misc | FinalParameters | Parameter username should be final. | 46 |
![]() |
coding | HiddenField | 'username' hides a field. | 46 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getPassword' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getPassword' static/final/abstract/empty, or adding allowed annotation for the method. | 50 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 50 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setPassword' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setPassword' static/final/abstract/empty, or adding allowed annotation for the method. | 54 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 54 |
![]() |
misc | FinalParameters | Parameter password should be final. | 54 |
![]() |
coding | HiddenField | 'password' hides a field. | 54 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getFullName' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getFullName' static/final/abstract/empty, or adding allowed annotation for the method. | 58 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 58 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setFullName' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setFullName' static/final/abstract/empty, or adding allowed annotation for the method. | 62 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 62 |
![]() |
misc | FinalParameters | Parameter fullName should be final. | 62 |
![]() |
coding | HiddenField | 'fullName' hides a field. | 62 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getEmail' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getEmail' static/final/abstract/empty, or adding allowed annotation for the method. | 66 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 66 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setEmail' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setEmail' static/final/abstract/empty, or adding allowed annotation for the method. | 70 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 70 |
![]() |
misc | FinalParameters | Parameter email should be final. | 70 |
![]() |
coding | HiddenField | 'email' hides a field. | 70 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'getBorrowedBooks' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'getBorrowedBooks' static/final/abstract/empty, or adding allowed annotation for the method. | 74 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 74 |
![]() |
design | DesignForExtension | Class 'User' looks like designed for extension (can be subclassed), but the method 'setBorrowedBooks' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'User' final or making the method 'setBorrowedBooks' static/final/abstract/empty, or adding allowed annotation for the method. | 78 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 78 |
![]() |
misc | FinalParameters | Parameter borrowedBooks should be final. | 78 |
![]() |
coding | HiddenField | 'borrowedBooks' hides a field. | 78 |
com/example/restapi/repository/BookRepository.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
com/example/restapi/repository/BorrowingRepository.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
imports | UnusedImports | Unused import - org.springframework.data.repository.query.Param. | 7 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 15 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 16 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 17 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 124). | 20 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 20 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 100). | 25 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 25 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 28 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 126). | 29 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 29 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 33 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 33 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 114). | 36 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 36 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 84). | 37 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 114). | 39 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 39 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 93). | 40 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 170). | 42 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 42 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 90). | 46 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 46 |
com/example/restapi/repository/UserRepository.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 10 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 11 |
com/example/restapi/service/BookService.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 97). | 13 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 20 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 21 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 22 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 24 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 33 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 91). | 38 |
![]() |
misc | FinalParameters | Parameter id should be final. | 40 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 43 |
![]() |
misc | FinalParameters | Parameter book should be final. | 50 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 95). | 51 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 54 |
![]() |
misc | FinalParameters | Parameter id should be final. | 63 |
![]() |
misc | FinalParameters | Parameter bookDetails should be final. | 63 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 70 |
![]() |
whitespace | FileTabCharacter | File contains tab characters (this is the first instance). | 72 |
![]() |
misc | FinalParameters | Parameter id should be final. | 76 |
![]() |
javadoc | JavadocMethod | Expected @param tag for 'id'. | 76 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 79 |
![]() |
design | DesignForExtension | Class 'BookService' looks like designed for extension (can be subclassed), but the method 'borrowBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BookService' final or making the method 'borrowBook' static/final/abstract/empty, or adding allowed annotation for the method. | 80 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 80 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 80 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 80 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 93 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 98 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 100 |
com/example/restapi/service/BorrowingService.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
misc | NewlineAtEndOfFile | File does not end with a newline. | 1 |
![]() |
javadoc | JavadocPackage | Missing package-info.java file. | 1 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 24 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 26 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 28 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'getAllBorrowings' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'getAllBorrowings' static/final/abstract/empty, or adding allowed annotation for the method. | 31 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 31 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'borrowBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'borrowBook' static/final/abstract/empty, or adding allowed annotation for the method. | 35 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 35 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 35 |
![]() |
misc | FinalParameters | Parameter user should be final. | 35 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'returnBook' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'returnBook' static/final/abstract/empty, or adding allowed annotation for the method. | 50 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 50 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 50 |
![]() |
whitespace | WhitespaceAround | '=' is not preceded with whitespace. | 55 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 107). | 59 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 72 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 112). | 74 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 75 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 79 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 81). | 80 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'getBorrowedBooksByUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'getBorrowedBooksByUser' static/final/abstract/empty, or adding allowed annotation for the method. | 83 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 83 |
![]() |
misc | FinalParameters | Parameter username should be final. | 83 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 88). | 86 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 87). | 94 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 108). | 96 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'getBorrowingDetails' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'getBorrowingDetails' static/final/abstract/empty, or adding allowed annotation for the method. | 113 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 113 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 113 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 113 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 85). | 114 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 116 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'getBorrowingsDetails' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'getBorrowingsDetails' static/final/abstract/empty, or adding allowed annotation for the method. | 118 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 118 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 118 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 118 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 85). | 119 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 89). | 120 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 121 |
![]() |
design | DesignForExtension | Class 'BorrowingService' looks like designed for extension (can be subclassed), but the method 'deleteByBookUserId' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'BorrowingService' final or making the method 'deleteByBookUserId' static/final/abstract/empty, or adding allowed annotation for the method. | 124 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 124 |
![]() |
misc | FinalParameters | Parameter bookId should be final. | 125 |
![]() |
misc | FinalParameters | Parameter userId should be final. | 125 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 92). | 126 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 131 |
com/example/restapi/service/UserService.java
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 12 |
![]() |
javadoc | JavadocVariable | Missing a Javadoc comment. | 13 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 15 |
![]() |
misc | FinalParameters | Parameter userRepository should be final. | 16 |
![]() |
coding | HiddenField | 'userRepository' hides a field. | 16 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 19 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'getAllUsers' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'getAllUsers' static/final/abstract/empty, or adding allowed annotation for the method. | 20 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 20 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 23 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'getUserById' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'getUserById' static/final/abstract/empty, or adding allowed annotation for the method. | 24 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 24 |
![]() |
misc | FinalParameters | Parameter id should be final. | 24 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 27 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'createUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'createUser' static/final/abstract/empty, or adding allowed annotation for the method. | 28 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 28 |
![]() |
misc | FinalParameters | Parameter user should be final. | 28 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'existsByUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'existsByUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 32 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 32 |
![]() |
misc | FinalParameters | Parameter username should be final. | 32 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 98). | 33 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'saveUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'saveUser' static/final/abstract/empty, or adding allowed annotation for the method. | 36 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 36 |
![]() |
misc | FinalParameters | Parameter user should be final. | 36 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'findByUsername' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'findByUsername' static/final/abstract/empty, or adding allowed annotation for the method. | 41 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 41 |
![]() |
misc | FinalParameters | Parameter username should be final. | 41 |
![]() |
sizes | LineLength | Line is longer than 80 characters (found 96). | 42 |
![]() |
design | DesignForExtension | Class 'UserService' looks like designed for extension (can be subclassed), but the method 'deleteUser' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'UserService' final or making the method 'deleteUser' static/final/abstract/empty, or adding allowed annotation for the method. | 45 |
![]() |
javadoc | MissingJavadocMethod | Missing a Javadoc comment. | 45 |
![]() |
misc | FinalParameters | Parameter id should be final. | 45 |
![]() |
regexp | RegexpSingleline | Line has trailing spaces. | 49 |