diff options
| author | Shulhan <ms@kilabit.info> | 2025-02-18 21:09:43 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-02-18 21:09:43 +0700 |
| commit | b966bc52b9ecc62be830c14882ea93085c08556d (patch) | |
| tree | 3dc355867f596d09fe332b598805c37606decc8e | |
| parent | 34a421761567ad0e711673c6e4ef63d9c1840d5a (diff) | |
| download | asciidoctor-go-b966bc52b9ecc62be830c14882ea93085c08556d.tar.xz | |
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.
| -rw-r--r-- | inline_parser.go | 10 | ||||
| -rw-r--r-- | parser.go | 5 | ||||
| -rw-r--r-- | table_parser.go | 5 |
3 files changed, 0 insertions, 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 @@ -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) |
