-
Notifications
You must be signed in to change notification settings - Fork 53
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
G5V8DT-24086 Ложные срабатывания проверки The asynchronous method is followed by lines of code #1408
Conversation
followed by lines of code
@MaksimDzyuba Я тут не соглашусь что проверка полезна только тем кто переходит на асинхрон:
Т.е. практика оставлять код после асинх-метода - порочная и невозможно отделить всякий мусор который не захотели перенести на 2 строчки выше (типа Тут полезнее было бы сделать 2 квикфикса:
|
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.
Нужно ещё в историю изменений запись добавить об отключении по умолчанию
@@ -101,6 +101,7 @@ protected void configureCheck(CheckConfigurer builder) | |||
.complexity(CheckComplexity.NORMAL) | |||
.severity(IssueSeverity.MAJOR) | |||
.issueType(IssueType.WARNING) | |||
.disable() | |||
.extension(new CommonSenseCheckExtension(getCheckId(), BslPlugin.PLUGIN_ID)) |
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.
Нужно убрать проверку из профиля общего смысла, потому что enablement переопределяется этим профилем.
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.
сделал
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.
Да, присоединяюсь к @marmyshev по поводу настроек профилей проверок (доп. страничка визарда создания проекта). В остальном вопросов нет.
followed by lines of code Правки по ревью
Сделал |
|
Проверка "code-after-async-call" выключена по умолчанию. Сделал это по следующим причинам:
Поэтому предлагаю данную ошибку не включать по умолчанию.