Skip to content

Commit c66e568

Browse files
committed
comment out no lint linter
1 parent b47904d commit c66e568

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.golangci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,19 @@ linters:
217217
- chan
218218
nlreturn:
219219
block-size: 2
220+
# nolintlint:
221+
# # Disable to ensure that all nolint directives actually have an effect.
222+
# # Default: false
223+
# allow-unused: true
224+
# # Exclude following linters from requiring an explanation.
225+
# # Default: []
226+
# allow-no-explanation: [ ]
227+
# # Enable to require an explanation of nonzero length after each nolint directive.
228+
# # Default: false
229+
# require-explanation: true
230+
# # Enable to require nolint directives to mention the specific linter being suppressed.
231+
# # Default: false
232+
# require-specific: true
220233
prealloc:
221234
simple: true
222235
range-loops: true

test/helpers/os_utils_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ func TestRemoveASCIIControlSignals(t *testing.T) {
2424
expected: "Hello, World!",
2525
},
2626
{
27-
name: "With control characters",
27+
name: "With control characters",
2828
input: "Hello , World!", expected: "Hello, World!",
2929
},
3030
{
31-
name: "Only control characters",
31+
name: "Only control characters",
3232
input: " ", expected: "",
3333
},
3434
{
@@ -42,7 +42,7 @@ func TestRemoveASCIIControlSignals(t *testing.T) {
4242
expected: "",
4343
},
4444
{
45-
name: "Agent version example",
45+
name: "Agent version example",
4646
input: " nginx-agent version v3.0.0-4a64a94", expected: "nginx-agent version v3.0.0-4a64a94",
4747
},
4848
{

0 commit comments

Comments
 (0)