-
Notifications
You must be signed in to change notification settings - Fork 54
Draft: Проверка когнитивной сложности #1261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Draft: Проверка когнитивной сложности #1261
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хорошая работа! Но тесты очень нужны на все кейсы расчета - имхо, тут важно очень правильно считать - алгоритм расчета - тут критическое место.
bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/CognitiveComplexityCheck.java
Outdated
Show resolved
Hide resolved
bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/CognitiveComplexityCheck.java
Outdated
Show resolved
Hide resolved
bundles/com.e1c.v8codestyle.bsl/src/com/e1c/v8codestyle/bsl/check/CognitiveComplexityCheck.java
Outdated
Show resolved
Hide resolved
Тестами займусь на неделе, мерж пока в черновике |
Создал интерфейс для процессора вычисления сложности Создал процессор вычисления когнтивной сложности Вынес вычисление из проверки в процессор Сделал локализацию Поправил текст сообщения Поправил получение statements метода Добавил перывание при отмене во все циклы Добавил копирайт Добавил описание проверки
22a89b0
to
5cd5187
Compare
if (method != null) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверка не имеет смысла, т.к. механизм валидация предоставляет объект.
Вместо этого можно было бы проверить параметр PARAM_COMPLEXTITY_THRESHOLD что он больше 0 - т.к. если 0 или меньше - то явно запускать процессор смысла нет.
if (method != null) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
аналогично предыдущей проверке. +параметр
@RedMammoth когда ждать эту классную проверку?) успеем в 0.5 релиз? |
@marmyshev А когда релиз? |
@RedMammoth поторопись! Релиз скоро уже - фактически до релиза 2023.1, т.к. 0.5 версия входит в ЕДТ 2023.1 |
@RedMammoth ping |
Что сделано
Чек-лист
Общее:
master
и нет конфликтовЕсли применимо:
Закрываемые задачи
Closes #1117