From b966bc52b9ecc62be830c14882ea93085c08556d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 18 Feb 2025 21:09:43 +0700 Subject: all: remove the "nolint" tag The nolint tag is to ignore being linted by golangci-lint. Since we are not using golangci-lint anymore, we can remove it. --- inline_parser.go | 10 ---------- parser.go | 5 ----- table_parser.go | 5 ----- 3 files changed, 20 deletions(-) diff --git a/inline_parser.go b/inline_parser.go index 561cab7..84fae21 100644 --- a/inline_parser.go +++ b/inline_parser.go @@ -74,11 +74,6 @@ func (pi *inlineParser) do() { continue } - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if pi.c == '+' { if pi.isEscaped { pi.escape() @@ -257,11 +252,6 @@ func (pi *inlineParser) do() { continue } - // We use if-condition with "continue" to break and - // continue the for-loop, so it is not possible - // to use switch-case here. - // - //nolint:gocritic if pi.nextc == '<' { if pi.parseCrossRef() { continue diff --git a/parser.go b/parser.go index 979811e..6912890 100644 --- a/parser.go +++ b/parser.go @@ -328,11 +328,6 @@ func applySubstitutions(doc *Document, content []byte) []byte { for x < len(raw) { c = raw[x] - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if c == '{' { newRaw, ok = parseAttrRef(doc, raw, x) if ok { diff --git a/table_parser.go b/table_parser.go index 3a5f56e..4f9c7f8 100644 --- a/table_parser.go +++ b/table_parser.go @@ -79,11 +79,6 @@ func (pt *tableParser) toCells() { tokenTrim = strings.TrimSpace(token) l = len(tokenTrim) for { - // We use if-condition with "continue" to break and continue - // the for-loop, so it is not possible to use switch-case - // here. - // - //nolint:gocritic if c == '\n' { if l > 0 { cell.writeString(token) -- cgit v1.3