Class TSLintReporter
java.lang.Object
com.github._1c_syntax.bsl.languageserver.reporters.TSLintReporter
- All Implemented Interfaces:
DiagnosticReporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidПрервать отчёт: освободить ресурсы и не оставлять недописанный файл.voidЗаписать результат одного файла.voidbeginReport(ReportContext context, Path outputDir) Начать отчёт: открыть файл, записать заголовок.voidЗавершить отчёт: дописать концовку и зафиксировать файл.key()Получить ключ (идентификатор) репортера.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DiagnosticReporter
isMetricCalculationRequired
-
Constructor Details
-
TSLintReporter
public TSLintReporter()
-
-
Method Details
-
key
Description copied from interface:DiagnosticReporterПолучить ключ (идентификатор) репортера.- Specified by:
keyin interfaceDiagnosticReporter- Returns:
- Уникальный ключ репортера
-
beginReport
Description copied from interface:DiagnosticReporterНачать отчёт: открыть файл, записать заголовок.- Specified by:
beginReportin interfaceDiagnosticReporter- Parameters:
context- сведения об анализеoutputDir- каталог для сохранения отчёта
-
accept
Description copied from interface:DiagnosticReporterЗаписать результат одного файла.- Specified by:
acceptin interfaceDiagnosticReporter- Parameters:
fileInfo- результаты анализа файла; после возврата из метода не сохраняется
-
endReport
public void endReport()Description copied from interface:DiagnosticReporterЗавершить отчёт: дописать концовку и зафиксировать файл.- Specified by:
endReportin interfaceDiagnosticReporter
-
abortReport
public void abortReport()Description copied from interface:DiagnosticReporterПрервать отчёт: освободить ресурсы и не оставлять недописанный файл.Вызывается на пути обработки ошибки, поэтому исключений не бросает. Реализация по умолчанию ничего не делает — она подходит репортёрам, которым нечего откатывать.
- Specified by:
abortReportin interfaceDiagnosticReporter
-