Skip to content

Commit abfacae

Browse files
authored
Merge pull request #3223 from 1c-syntax/feature/issOnPrj
Признак диагностики для разрешения размещения ее замечаний на уровне проекта
2 parents 08b00ab + 7c66312 commit abfacae

File tree

14 files changed

+113
-38
lines changed

14 files changed

+113
-38
lines changed

docs/diagnostics/DenyIncompleteValues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Запрет незаполненных значений (DenyIncompleteValues)
1+
# Запрет незаполненных значений у измерений регистров (DenyIncompleteValues)
22

33
<!-- Блоки выше заполняются автоматически, не трогать -->
44
## Описание диагностики

docs/en/diagnostics/DeprecatedCurrentDate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Using of the deprecated method "CurrentDate" (DeprecatedCurrentDate)
22

3-
<!-- Blocks above are filled in automatically, do not touch -->
4-
## Diagnostic description
3+
<!-- Блоки выше заполняются автоматически, не трогать -->
4+
## Description
5+
56
The configurations must be designed to work in conditions where the time zone on the server computer does not match the real time zone of the infobase users. For example, employees of a company from Vladivostok work with a server located in Moscow, and all operations in the system must be performed in local time (Vladivostok).
67

78
Such a work scenario is often in demand in client-server infobases and in applied solutions in the service model (SaaS).

docs/en/diagnostics/TransferringParametersBetweenClientAndServer.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# Transferring parameters between client and server (TransferringParametersBetweenClientAndServer)
1+
# Transferring parameters between the client and the server (TransferringParametersBetweenClientAndServer)
22

3-
<!-- Blocks above are included automatically, do not touch -->
4-
## Diagnostic description
5-
<!-- Diagnostic description is filled in manually. It is necessary to describe the meaning an understandable language -->
3+
<!-- Блоки выше заполняются автоматически, не трогать -->
4+
## Description
65

76
When transferring control from the client to the server (and vice versa), copies of the parameters are always transferred.
87

docs/en/diagnostics/UsingFindElementByString.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Using FindByName, FindByCode and FindByNumber (UsingFindElementByString)
1+
# Using FindByName, FindByCode and FindByNumber (UsingFindElementByString)
22

33
<!-- Блоки выше заполняются автоматически, не трогать -->
44
## Description

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/DenyIncompleteValuesDiagnostic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
tags = {
4343
DiagnosticTag.BADPRACTICE
4444
},
45-
scope = DiagnosticScope.BSL
45+
scope = DiagnosticScope.BSL,
46+
canLocateOnProject = true
4647
)
4748
public class DenyIncompleteValuesDiagnostic extends AbstractMetadataDiagnostic {
4849

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/ForbiddenMetadataNameDiagnostic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
ModuleType.ValueManagerModule,
5353
ModuleType.SessionModule
5454
},
55-
scope = DiagnosticScope.BSL
55+
scope = DiagnosticScope.BSL,
56+
canLocateOnProject = true
5657
)
5758
@RequiredArgsConstructor
5859
public class ForbiddenMetadataNameDiagnostic extends AbstractMetadataDiagnostic {

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/MetadataObjectNameLengthDiagnostic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
scope = DiagnosticScope.BSL,
4343
tags = {
4444
DiagnosticTag.STANDARD
45-
}
45+
},
46+
canLocateOnProject = true
4647
)
4748
public class MetadataObjectNameLengthDiagnostic extends AbstractMetadataDiagnostic {
4849

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/SameMetadataObjectAndChildNamesDiagnostic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
ModuleType.ObjectModule,
5555
ModuleType.SessionModule
5656
},
57-
scope = DiagnosticScope.BSL
58-
57+
scope = DiagnosticScope.BSL,
58+
canLocateOnProject = true
5959
)
6060
public class SameMetadataObjectAndChildNamesDiagnostic extends AbstractMetadataDiagnostic {
6161

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/ScheduledJobHandlerDiagnostic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
tags = {
4949
DiagnosticTag.ERROR
5050
},
51-
scope = DiagnosticScope.BSL
51+
scope = DiagnosticScope.BSL,
52+
canLocateOnProject = true
5253
)
5354
public class ScheduledJobHandlerDiagnostic extends AbstractMetadataDiagnostic {
5455

src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/metadata/DiagnosticInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ public Optional<DiagnosticParameterInfo> getParameter(String parameterName) {
194194
return diagnosticParameters.stream().filter(param -> param.getName().equals(parameterName)).findAny();
195195
}
196196

197+
public boolean canLocateOnProject() {
198+
return diagnosticMetadata.canLocateOnProject();
199+
}
200+
197201
public Map<String, Object> getDefaultConfiguration() {
198202
return diagnosticParameters.stream()
199203
.collect(Collectors.toMap(DiagnosticParameterInfo::getName, DiagnosticParameterInfo::getDefaultValue));

0 commit comments

Comments
 (0)