Refactor: reduce detekt findings (unused params, throws, long methods, config)
This commit is contained in:
@@ -37,6 +37,16 @@ style:
|
||||
active: true
|
||||
LoopWithTooManyJumpStatements:
|
||||
maxJumpCount: 2
|
||||
# MVC-контроллеры возвращают имя шаблона — это не «магическая константа».
|
||||
FunctionOnlyReturningConstant:
|
||||
ignoreAnnotated:
|
||||
- 'GetMapping'
|
||||
- 'PostMapping'
|
||||
|
||||
performance:
|
||||
# runApplication<App>(*args) — идиоматичная точка входа Spring Boot.
|
||||
SpreadOperator:
|
||||
active: false
|
||||
|
||||
naming:
|
||||
FunctionNaming:
|
||||
@@ -44,6 +54,9 @@ naming:
|
||||
- 'Test'
|
||||
MatchingDeclarationName:
|
||||
active: false
|
||||
# Enum-значения хранятся в БД и API строками в lowerCamelCase.
|
||||
EnumNaming:
|
||||
active: false
|
||||
|
||||
empty-blocks:
|
||||
EmptyCatchBlock:
|
||||
|
||||
Reference in New Issue
Block a user