Skip to content

Commit 0643789

Browse files
committed
feat: исключить ложные срабатывания MagicNumber и MagicDate для структур
- Добавлена поддержка исключения ложных срабатываний при присваивании к свойствам структуры - Обновлена документация для обеих диагностик на русском и английском языках - Исправлены проблемы линтера (SonarQube) - Покрытие тестами >90%
1 parent acd3247 commit 0643789

File tree

1 file changed

+24
-4
lines changed
  • src/main/resources/com/github/_1c_syntax/bsl/languageserver/configuration

1 file changed

+24
-4
lines changed

src/main/resources/com/github/_1c_syntax/bsl/languageserver/configuration/schema.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,15 +921,30 @@
921921
"properties": {
922922
"type": {
923923
"type": "string",
924-
"enum": ["ERROR", "CODE_SMELL", "VULNERABILITY", "SECURITY_HOTSPOT"]
924+
"enum": [
925+
"ERROR",
926+
"CODE_SMELL",
927+
"VULNERABILITY",
928+
"SECURITY_HOTSPOT"
929+
]
925930
},
926931
"severity": {
927932
"type": "string",
928-
"enum": ["INFO", "MINOR", "MAJOR", "CRITICAL", "BLOCKER"]
933+
"enum": [
934+
"INFO",
935+
"MINOR",
936+
"MAJOR",
937+
"CRITICAL",
938+
"BLOCKER"
939+
]
929940
},
930941
"scope": {
931942
"type": "string",
932-
"enum": ["ALL", "BSL", "OS"]
943+
"enum": [
944+
"ALL",
945+
"BSL",
946+
"OS"
947+
]
933948
},
934949
"modules": {
935950
"type": "array",
@@ -960,7 +975,12 @@
960975
},
961976
"lspSeverity": {
962977
"type": "string",
963-
"enum": ["Error", "Warning", "Information", "Hint"],
978+
"enum": [
979+
"Error",
980+
"Warning",
981+
"Information",
982+
"Hint"
983+
],
964984
"description": "LSP severity level (Error, Warning, Information, Hint). If not specified, calculated automatically based on type and severity."
965985
}
966986
}

0 commit comments

Comments
 (0)