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

Md reference intergrity quick fix #36

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

sanaroff
Copy link
Collaborator

@sanaroff sanaroff commented Aug 4, 2022

Что сделано

Добавлено быстрое исправление для проверки целостности ссылок путем удаления proxy-ссылки

Чек-лист

Общее:

  • ветка PR обновлена из master и нет конфликтов
  • Тесты-кейсы, JUnit тесты правильного и неправильного состояния
  • Измененные Вами исходники отформатированы в соответствии с конвенцией
  • Авто-аудит (SonarQube и CheckStyle) пройден, покрытие кода хорошее, ошибок нет, плохой код устранен
  • Добавлена запись в ИСТОРИЮ ИЗМЕНЕНИЯ, включаемая в пользовательскую документацию плагина

Если применимо:

  • Пользовательская документация на доп.инструменты написана (на русском)
  • Описание проверок - на двух языках

Закрываемые задачи

Closes #??

@tretyakevich прошу сделать аудит

CHANGELOG.md Outdated
Comment on lines 5 to 8
## 0.4.0

- Добавлено быстрое исправление для проверки целостности ссылок объектов метаданных путем удаления неправильной ссылки.

Copy link
Collaborator

Choose a reason for hiding this comment

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

текущая версия в мастере - 0.3

Comment on lines 1 to 2
MdReferenceIntegrity_FixTitle=\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u043A\u0441\u0438-\u0441\u0441\u044B\u043B\u043A\u0438
MdReferenceIntegrity_FixDescription=\u0411\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043B\u0435\u043D\u0430 \u0441\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043F\u0440\u043E\u043A\u0441\u0438
Copy link
Collaborator

Choose a reason for hiding this comment

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

Неправильный файл - неправильная кодировка -> UTF-8 надо

* @author Alexandr Sanarov
*
*/
final class Messages
Copy link
Collaborator

Choose a reason for hiding this comment

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

В тестах локализация вообще не нужна - достаточно использовать английский язык

Comment on lines 1 to 2
MdReferenceIntegrity_FixTitle=Proxy reference deletion
MdReferenceIntegrity_FixDescription=Proxy reference will be removed from contained object
Copy link
Collaborator

Choose a reason for hiding this comment

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

ненужная локализация в тестах

{

@ClassRule
public static TestingPlatformSupport testingPlatformSupport = new TestingPlatformSupport(Version.V8_3_20);
Copy link
Collaborator

Choose a reason for hiding this comment

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

а зачем это? если нигде не используется

*
* @param marker {@link Marker} marker with error. May not be {@code null}.
* @param dtProject {@link IDtProject} EDT project. May not be {@code null}. Should match the sub-folder name of the 'workspaces' folder
* @param targetFixDescription {@link String} Fix title. May not be {@code null}.
Copy link
Collaborator

Choose a reason for hiding this comment

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

А можно ли как-то указать фикс не через описание, а как-то по-другому. Описание сидит в .properties файле и его могут поменять. К логике это никакого отношения иметь не будет, а тест сломается.
Например, причесали запятые или привели формулировки к общему виду. Тест по идее сломаться не должен, а скорее всего сломается.

@sonarcloud
Copy link

sonarcloud bot commented Aug 20, 2022

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

82.8% 82.8% Coverage
0.0% 0.0% Duplication

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.

None yet

4 participants