From 29ac7625c1e54db5b1daf44c3d139e1869092593 Mon Sep 17 00:00:00 2001 From: Artur Ayukhanov Date: Thu, 30 Nov 2023 08:29:56 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=82=D0=BE=D1=87=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bsl/languageserver/diagnostics/BadWordsDiagnostic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java index 68e3059be85..62c14d0e3cf 100644 --- a/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java +++ b/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/BadWordsDiagnostic.java @@ -88,7 +88,7 @@ private void checkAllLines(String[] moduleLines) { private void checkLinesWithoutComments(String[] moduleLines) { final var nclocData = documentContext.getMetrics().getNclocData(); for (int i : nclocData) { - final var moduleNumber = i - 1; // т.к. в токенах нумерация строк с 1, а в moduleLines с 0 + final var moduleNumber = i - 1; // т.к. в токенах и метриках нумерация строк с 1, а в moduleLines с 0 checkLine(moduleLines, moduleNumber); } }