From 5e903a3a630683f98643de7b0cede1631f3c3ca0 Mon Sep 17 00:00:00 2001 From: Shuhei Kitagawa Date: Sun, 15 Dec 2024 19:01:03 +0100 Subject: [PATCH 1/2] Fix code format --- lexer/lexer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer/lexer_test.go b/lexer/lexer_test.go index 8e94c2f..05a45ab 100644 --- a/lexer/lexer_test.go +++ b/lexer/lexer_test.go @@ -2528,7 +2528,7 @@ s: >-3 CharacterType: token.CharacterTypeIndicator, Indicator: token.BlockScalarIndicator, Value: "|", - Origin: "\n| ", //nolint:gci,gofmt + Origin: "\n| ", //nolint:gci,gofmt }, { Type: token.CommentType, From 6b013508559c1102fd2a02c73f1cb81e3ce79541 Mon Sep 17 00:00:00 2001 From: Shuhei Kitagawa Date: Wed, 18 Dec 2024 09:19:57 +0100 Subject: [PATCH 2/2] Remove unnecessary nolint --- lexer/lexer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lexer/lexer_test.go b/lexer/lexer_test.go index 05a45ab..c36434c 100644 --- a/lexer/lexer_test.go +++ b/lexer/lexer_test.go @@ -178,7 +178,7 @@ func TestTokenize(t *testing.T) { CharacterType: token.CharacterTypeMiscellaneous, Indicator: token.NotIndicator, Value: "a", - //nolint: gci + // nolint: gci Origin: " a", }, }, @@ -2528,7 +2528,7 @@ s: >-3 CharacterType: token.CharacterTypeIndicator, Indicator: token.BlockScalarIndicator, Value: "|", - Origin: "\n| ", //nolint:gci,gofmt + Origin: "\n| ", }, { Type: token.CommentType, @@ -3222,7 +3222,7 @@ a: |invalid`, }, { name: "use tab character as indent", - //nolint: gci + // nolint: gci src: " a: b", }, {