Skip to content
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

Возможность управлять порогом срабатывания линзы #1857

Merged
merged 6 commits into from
Oct 8, 2021

Conversation

nixel2007
Copy link
Member

@nixel2007 nixel2007 commented Oct 7, 2021

Описание

В линзы сложностей добавлен порог срабатывания, до которого линза не показывается. По умолчанию порог установлен в -1, т.е. линза показывается всегда.

Связанные задачи

Closes #1348

Чеклист

Общие

  • Ветка PR обновлена из develop
  • Отладочные, закомментированные и прочие, не имеющие смысла участки кода удалены
  • Изменения покрыты тестами
  • Обязательные действия перед коммитом выполнены (запускал команду gradlew precommit)

Для диагностик

  • Описание диагностики заполнено для обоих языков (присутствуют файлы для обоих языков, для русского заполнено все подробно, перевод на английский можно опустить)

Дополнительно

@nixel2007 nixel2007 requested a review from a team October 7, 2021 14:49
@nixel2007 nixel2007 force-pushed the feature/complexity-lenses-threshold branch from 097cc2e to 699e753 Compare October 7, 2021 14:50
@asosnoviy
Copy link
Member

Вот только сегодня об этом подумал, а оно уже тут

void testGetCodeLens() {

// given
DocumentContext documentContext = TestUtils.getDocumentContextFromFile(FILE_PATH);
Copy link
Member

@otymko otymko Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nixel2007 почему бы не var везде?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Копипаст из старого теста :) поправлю

void testGetCodeLens() {

// given
DocumentContext documentContext = TestUtils.getDocumentContextFromFile(FILE_PATH);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nixel2007 почему бы не var везде?

@nixel2007 nixel2007 merged commit 9a4cefe into develop Oct 8, 2021
@nixel2007 nixel2007 deleted the feature/complexity-lenses-threshold branch October 8, 2021 17:26
@sonarcloud
Copy link

sonarcloud bot commented Oct 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants