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

Настройка исключений для диагностики CommentedCodeDiagnostic #2917

Conversation

alkoleft
Copy link
Contributor

@alkoleft alkoleft commented Oct 25, 2022

Описание

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

Closes #2916

Чеклист

Общие

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

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

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

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

@sonarqubecloud
Copy link

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 3 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@DiagnosticParameter(
type = String.class
)
private Set<String> exclusionPrefixes = Collections.emptySet();
Copy link
Member

Choose a reason for hiding this comment

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

Т.к. по умолчанию сет пустой, в целом не вижу причин, почему бы не влить не глядя. Но все же спрошу - пробовал замерять с включенной настройкой? не сильно просаживается анализ?

Copy link
Member

Choose a reason for hiding this comment

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

@nixel2007 протестим

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Сделал замеры

feature/CommentedCodeDiagnostic_exclusionPrefixes

---------------------------------------------- benchmark: 1 tests ---------------------------------------------
Name (time in s)           Min      Max     Mean  StdDev   Median     IQR  Outliers     OPS  Rounds  Iterations
---------------------------------------------------------------------------------------------------------------
test_analyze_ssl31     15.3787  15.9920  15.7355  0.3187  15.8356  0.4600       1;0  0.0636       3           1
---------------------------------------------------------------------------------------------------------------
test_analyze_ssl31     14.8679  15.8270  15.3444  0.4796  15.3382  0.7193       1;0  0.0652       3           1
---------------------------------------------------------------------------------------------------------------


develop

---------------------------------------------- benchmark: 1 tests ---------------------------------------------
Name (time in s)           Min      Max     Mean  StdDev   Median     IQR  Outliers     OPS  Rounds  Iterations
---------------------------------------------------------------------------------------------------------------
test_analyze_ssl31     14.5382  15.2764  14.8924  0.3700  14.8626  0.5537       1;0  0.0671       3           1
---------------------------------------------------------------------------------------------------------------
test_analyze_ssl31     14.8964  16.0918  15.3080  0.6791  14.9359  0.8966       1;0  0.0653       3           1
---------------------------------------------------------------------------------------------------------------

Copy link
Member

Choose a reason for hiding this comment

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

В пределах погрешности.

@nixel2007 nixel2007 merged commit 7258d25 into 1c-syntax:develop Oct 26, 2022
@theshadowco theshadowco deleted the feature/CommentedCodeDiagnostic_exclusionPrefixes branch October 27, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Настройка исключений для диагностики CommentedCodeDiagnostic
4 participants