Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/knowledge/business/IBotDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 127

fr/paris/lutece/plugins/knowledge/business/IBotSessionDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 154

fr/paris/lutece/plugins/knowledge/business/IDatasetDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 127

fr/paris/lutece/plugins/knowledge/business/IDatasetFileDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 136

fr/paris/lutece/plugins/knowledge/business/IToolSetAbilityDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 138

fr/paris/lutece/plugins/knowledge/business/IToolSetDAO.java

Rule Violation Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 127

fr/paris/lutece/plugins/knowledge/rs/BotResponse.java

Rule Violation Ligne
FieldNamingConventions The field name 'steps' doesn't match '_[a-z][a-zA-Z0-9]*' 19
FieldNamingConventions The field name 'output' doesn't match '_[a-z][a-zA-Z0-9]*' 20
FieldNamingConventions The field name 'session' doesn't match '_[a-z][a-zA-Z0-9]*' 21

fr/paris/lutece/plugins/knowledge/rs/BotRest.java

Rule Violation Ligne
FieldNamingConventions The static field name 'sessions' doesn't match '_[a-z][a-zA-Z0-9]*' 64
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 93

fr/paris/lutece/plugins/knowledge/rs/Constants.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3973

fr/paris/lutece/plugins/knowledge/rs/RequestData.java

Rule Violation Ligne
FieldNamingConventions The field name 'action' doesn't match '_[a-z][a-zA-Z0-9]*' 5
FieldNamingConventions The field name 'question' doesn't match '_[a-z][a-zA-Z0-9]*' 6
FieldNamingConventions The field name 'botId' doesn't match '_[a-z][a-zA-Z0-9]*' 7
FieldNamingConventions The field name 'botSessionId' doesn't match '_[a-z][a-zA-Z0-9]*' 8
FieldNamingConventions The field name 'audioFile' doesn't match '_[a-z][a-zA-Z0-9]*' 9

fr/paris/lutece/plugins/knowledge/service/ChatService.java

Rule Violation Ligne
LocalVariableNamingConventions The local variable name '_proxyAddress' doesn't match '[a-z][a-zA-Z0-9]*' 74

fr/paris/lutece/plugins/knowledge/service/Constant.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'Constant' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 817

fr/paris/lutece/plugins/knowledge/service/DataSetService.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1383

fr/paris/lutece/plugins/knowledge/service/ElasticStoreService.java

Rule Violation Ligne
FieldNamingConventions The static field name 'fileStoreService' doesn't match '_[a-z][a-zA-Z0-9]*' 27
FieldNamingConventions The constant name 'embeddingStores' doesn't match '[A-Z][A-Z_0-9]*' 28
FieldNamingConventions The constant name 'embeddingModel' doesn't match '[A-Z][A-Z_0-9]*' 29

Priority 2

fr/paris/lutece/plugins/knowledge/service/PromptUtils.java

Rule Violation Ligne
SystemPrintln System.out.println is used 28

Priority 3

fr/paris/lutece/plugins/knowledge/business/BotDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 237240

fr/paris/lutece/plugins/knowledge/business/BotSessionDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 50362
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 237240

fr/paris/lutece/plugins/knowledge/business/DatasetDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 237240

fr/paris/lutece/plugins/knowledge/business/DatasetFile.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 155158
CommentRequired Public method and constructor comments are required 160163

fr/paris/lutece/plugins/knowledge/business/DatasetFileDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 226229

fr/paris/lutece/plugins/knowledge/business/IBotSessionDAO.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 46155

fr/paris/lutece/plugins/knowledge/business/ToolSetAbilityDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 226229

fr/paris/lutece/plugins/knowledge/business/ToolSetDAO.java

Rule Violation Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 217220

fr/paris/lutece/plugins/knowledge/rs/BotResponse.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 19
ImmutableField Private field 'steps' could be made final; it is only initialized in the declaration or constructor. 19
ImmutableField Private field 'output' could be made final; it is only initialized in the declaration or constructor. 20
CommentRequired Public method and constructor comments are required 2327
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 40
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 115
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 125

fr/paris/lutece/plugins/knowledge/rs/BotRest.java

Rule Violation Ligne
CommentRequired Public method and constructor comments are required 7098
CommentRequired Public method and constructor comments are required 103110

fr/paris/lutece/plugins/knowledge/rs/Constants.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like ID 45

fr/paris/lutece/plugins/knowledge/rs/RequestData.java

Rule Violation Ligne
CommentRequired Header comments are required 361
DataClass The class 'RequestData' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=10, WMC=10) 361
MethodReturnsInternalArray Returning 'audioFile' may expose an internal array. 43
ArrayIsStoredDirectly The user-supplied array 'audioFile' is stored directly. 46

fr/paris/lutece/plugins/knowledge/rs/SwaggerRest.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 141
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 151
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 154

fr/paris/lutece/plugins/knowledge/service/ChatMemoryService.java

Rule Violation Ligne
CommentRequired Header comments are required 25111
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 26111
ConfusingTernary Avoid if (x != y) ..; else ..; 6071
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the PersistentChatMemoryStore nested class if you want a default access modifier 89109
CommentRequired Header comments are required 89109

fr/paris/lutece/plugins/knowledge/service/ChatService.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 1117
CommentRequired Header comments are required 37117
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 38117
CommentRequired Public method and constructor comments are required 4068
ConfusingTernary Avoid if (x != y) ..; else ..; 5767
ConfusingTernary Avoid if (x != y) ..; else ..; 7283
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the StreamingAssistant nested class if you want a default access modifier 113116
CommentRequired Header comments are required 113116
CommentRequired Public method and constructor comments are required 115

fr/paris/lutece/plugins/knowledge/service/DataSetService.java

Rule Violation Ligne
CommentRequired Header comments are required 1383
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 45

fr/paris/lutece/plugins/knowledge/service/ElasticStoreService.java

Rule Violation Ligne
CommentRequired Header comments are required 25148
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 26148
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 28
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 76

fr/paris/lutece/plugins/knowledge/service/PromptUtils.java

Rule Violation Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1331
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 18
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 22

fr/paris/lutece/plugins/knowledge/web/AbstractManageBotsJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 50117
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 116
DefaultPackage Use explicit scoping instead of the default package private level 116

fr/paris/lutece/plugins/knowledge/web/BotJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 66340
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 129
DefaultPackage Use explicit scoping instead of the default package private level 147154
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 148154
ConfusingTernary Avoid if (x != y) ..; else ..; 174
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 303

fr/paris/lutece/plugins/knowledge/web/BotSessionJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 122
DefaultPackage Use explicit scoping instead of the default package private level 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 167

fr/paris/lutece/plugins/knowledge/web/BotXPage.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 66326
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 123
ConfusingTernary Avoid if (x != y) ..; else ..; 148
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 171
UnusedLocalVariable Avoid unused local variables such as 'user'. 171
UnusedLocalVariable Avoid unused local variables such as 'user'. 204
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 204
UnusedLocalVariable Avoid unused local variables such as 'user'. 225
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 225
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 280
UnusedLocalVariable Avoid unused local variables such as 'user'. 280

fr/paris/lutece/plugins/knowledge/web/DatasetFileJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 122
DefaultPackage Use explicit scoping instead of the default package private level 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 167

fr/paris/lutece/plugins/knowledge/web/DatasetJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 68330
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 132
DefaultPackage Use explicit scoping instead of the default package private level 150157
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 151157
ConfusingTernary Avoid if (x != y) ..; else ..; 177
CommentRequired Public method and constructor comments are required 282289
CommentRequired Public method and constructor comments are required 292298

fr/paris/lutece/plugins/knowledge/web/ToolSetAbilityJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62301
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 122
DefaultPackage Use explicit scoping instead of the default package private level 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 167

fr/paris/lutece/plugins/knowledge/web/ToolSetJspBean.java

Rule Violation Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 122
DefaultPackage Use explicit scoping instead of the default package private level 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 167

Priority 4

fr/paris/lutece/plugins/knowledge/business/Bot.java

Rule Violation Ligne
ShortClassName Avoid short class names like Bot 43237

Fichiers

fr/paris/lutece/plugins/knowledge/business/Bot.java

Rule Violation Priority Ligne
ShortClassName Avoid short class names like Bot 4 43237

fr/paris/lutece/plugins/knowledge/business/BotDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 237240

fr/paris/lutece/plugins/knowledge/business/BotSessionDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 50362
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 237240

fr/paris/lutece/plugins/knowledge/business/DatasetDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 237240

fr/paris/lutece/plugins/knowledge/business/DatasetFile.java

Rule Violation Priority Ligne
CommentRequired Public method and constructor comments are required 3 155158
CommentRequired Public method and constructor comments are required 3 160163

fr/paris/lutece/plugins/knowledge/business/DatasetFileDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 226229

fr/paris/lutece/plugins/knowledge/business/IBotDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 127

fr/paris/lutece/plugins/knowledge/business/IBotSessionDAO.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 46155
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 154

fr/paris/lutece/plugins/knowledge/business/IDatasetDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 127

fr/paris/lutece/plugins/knowledge/business/IDatasetFileDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 136

fr/paris/lutece/plugins/knowledge/business/IToolSetAbilityDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 138

fr/paris/lutece/plugins/knowledge/business/IToolSetDAO.java

Rule Violation Priority Ligne
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 127

fr/paris/lutece/plugins/knowledge/business/ToolSetAbilityDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 226229

fr/paris/lutece/plugins/knowledge/business/ToolSetDAO.java

Rule Violation Priority Ligne
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 217220

fr/paris/lutece/plugins/knowledge/rs/BotResponse.java

Rule Violation Priority Ligne
FieldNamingConventions The field name 'steps' doesn't match '_[a-z][a-zA-Z0-9]*' 1 19
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 19
ImmutableField Private field 'steps' could be made final; it is only initialized in the declaration or constructor. 3 19
ImmutableField Private field 'output' could be made final; it is only initialized in the declaration or constructor. 3 20
FieldNamingConventions The field name 'output' doesn't match '_[a-z][a-zA-Z0-9]*' 1 20
FieldNamingConventions The field name 'session' doesn't match '_[a-z][a-zA-Z0-9]*' 1 21
CommentRequired Public method and constructor comments are required 3 2327
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 40
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 115
AvoidPrintStackTrace Avoid printStackTrace(); use a logger call instead. 3 125

fr/paris/lutece/plugins/knowledge/rs/BotRest.java

Rule Violation Priority Ligne
FieldNamingConventions The static field name 'sessions' doesn't match '_[a-z][a-zA-Z0-9]*' 1 64
CommentRequired Public method and constructor comments are required 3 7098
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 93
CommentRequired Public method and constructor comments are required 3 103110

fr/paris/lutece/plugins/knowledge/rs/Constants.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3973
ShortVariable Avoid variables with short names like ID 3 45

fr/paris/lutece/plugins/knowledge/rs/RequestData.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 361
DataClass The class 'RequestData' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=10, WMC=10) 3 361
FieldNamingConventions The field name 'action' doesn't match '_[a-z][a-zA-Z0-9]*' 1 5
FieldNamingConventions The field name 'question' doesn't match '_[a-z][a-zA-Z0-9]*' 1 6
FieldNamingConventions The field name 'botId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 7
FieldNamingConventions The field name 'botSessionId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 8
FieldNamingConventions The field name 'audioFile' doesn't match '_[a-z][a-zA-Z0-9]*' 1 9
MethodReturnsInternalArray Returning 'audioFile' may expose an internal array. 3 43
ArrayIsStoredDirectly The user-supplied array 'audioFile' is stored directly. 3 46

fr/paris/lutece/plugins/knowledge/rs/SwaggerRest.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 141
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 151
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 154

fr/paris/lutece/plugins/knowledge/service/ChatMemoryService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 25111
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 26111
ConfusingTernary Avoid if (x != y) ..; else ..; 3 6071
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the PersistentChatMemoryStore nested class if you want a default access modifier 3 89109
CommentRequired Header comments are required 3 89109

fr/paris/lutece/plugins/knowledge/service/ChatService.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 1117
CommentRequired Header comments are required 3 37117
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 38117
CommentRequired Public method and constructor comments are required 3 4068
ConfusingTernary Avoid if (x != y) ..; else ..; 3 5767
ConfusingTernary Avoid if (x != y) ..; else ..; 3 7283
LocalVariableNamingConventions The local variable name '_proxyAddress' doesn't match '[a-z][a-zA-Z0-9]*' 1 74
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the StreamingAssistant nested class if you want a default access modifier 3 113116
CommentRequired Header comments are required 3 113116
CommentRequired Public method and constructor comments are required 3 115

fr/paris/lutece/plugins/knowledge/service/Constant.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'Constant' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 817

fr/paris/lutece/plugins/knowledge/service/DataSetService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 1383
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 1383
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 45

fr/paris/lutece/plugins/knowledge/service/ElasticStoreService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 25148
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 26148
FieldNamingConventions The static field name 'fileStoreService' doesn't match '_[a-z][a-zA-Z0-9]*' 1 27
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 28
FieldNamingConventions The constant name 'embeddingStores' doesn't match '[A-Z][A-Z_0-9]*' 1 28
FieldNamingConventions The constant name 'embeddingModel' doesn't match '[A-Z][A-Z_0-9]*' 1 29
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 76

fr/paris/lutece/plugins/knowledge/service/PromptUtils.java

Rule Violation Priority Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 1331
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 18
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 22
SystemPrintln System.out.println is used 2 28

fr/paris/lutece/plugins/knowledge/web/AbstractManageBotsJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 50117
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 116
DefaultPackage Use explicit scoping instead of the default package private level 3 116

fr/paris/lutece/plugins/knowledge/web/BotJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 66340
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 129
DefaultPackage Use explicit scoping instead of the default package private level 3 147154
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 148154
ConfusingTernary Avoid if (x != y) ..; else ..; 3 174
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 302
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 303

fr/paris/lutece/plugins/knowledge/web/BotSessionJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 122
DefaultPackage Use explicit scoping instead of the default package private level 3 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 3 167

fr/paris/lutece/plugins/knowledge/web/BotXPage.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 66326
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 123
ConfusingTernary Avoid if (x != y) ..; else ..; 3 148
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 171
UnusedLocalVariable Avoid unused local variables such as 'user'. 3 171
UnusedLocalVariable Avoid unused local variables such as 'user'. 3 204
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 204
UnusedLocalVariable Avoid unused local variables such as 'user'. 3 225
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 225
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 280
UnusedLocalVariable Avoid unused local variables such as 'user'. 3 280

fr/paris/lutece/plugins/knowledge/web/DatasetFileJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 122
DefaultPackage Use explicit scoping instead of the default package private level 3 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 3 167

fr/paris/lutece/plugins/knowledge/web/DatasetJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 68330
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 132
DefaultPackage Use explicit scoping instead of the default package private level 3 150157
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 151157
ConfusingTernary Avoid if (x != y) ..; else ..; 3 177
CommentRequired Public method and constructor comments are required 3 282289
CommentRequired Public method and constructor comments are required 3 292298

fr/paris/lutece/plugins/knowledge/web/ToolSetAbilityJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62301
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 122
DefaultPackage Use explicit scoping instead of the default package private level 3 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 3 167

fr/paris/lutece/plugins/knowledge/web/ToolSetJspBean.java

Rule Violation Priority Ligne
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 62300
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 122
DefaultPackage Use explicit scoping instead of the default package private level 3 140147
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 141147
ConfusingTernary Avoid if (x != y) ..; else ..; 3 167