Class AbstractDiagnosticReporter
java.lang.Object
com.github._1c_syntax.bsl.languageserver.reporters.AbstractDiagnosticReporter
- All Implemented Interfaces:
DiagnosticReporter
- Direct Known Subclasses:
CodeQualityReporter, GenericIssueReporter, SarifReporter
Базовый класс для reporters, которым нужен доступ к per-workspace данным.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DiagnosticInfosРеестр метаинформации о диагностиках.protected final ServerContextProviderПровайдер per-workspaceServerContext. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDiagnosticReporter(ServerContextProvider serverContextProvider, DiagnosticInfos diagnosticInfos) Creates a newAbstractDiagnosticReporterinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String, DiagnosticInfo> Получить соответствие «код диагностики →DiagnosticInfo».protected ServerContextgetServerContext(AnalysisInfo analysisInfo) ПолучитьServerContextдля workspace изAnalysisInfo.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DiagnosticReporter
key, report
-
Field Details
-
serverContextProvider
Провайдер per-workspaceServerContext. -
diagnosticInfos
Реестр метаинформации о диагностиках.
-
-
Constructor Details
-
AbstractDiagnosticReporter
@ConstructorProperties({"serverContextProvider","diagnosticInfos"}) public AbstractDiagnosticReporter(ServerContextProvider serverContextProvider, DiagnosticInfos diagnosticInfos) Creates a newAbstractDiagnosticReporterinstance.- Parameters:
serverContextProvider- Провайдер per-workspaceServerContext.diagnosticInfos- Реестр метаинформации о диагностиках.
-
-
Method Details
-
getServerContext
ПолучитьServerContextдля workspace изAnalysisInfo.- Parameters:
analysisInfo- информация об анализе, содержащая каталог исходников workspace- Returns:
- контекст workspace, соответствующий каталогу исходников
-
getDiagnosticInfosByCode
Получить соответствие «код диагностики →DiagnosticInfo».- Returns:
- карта метаинформации о диагностиках по их кодам
-