Skip to content

Commit a6b9d82

Browse files
committed
review: rephrase
1 parent 415a738 commit a6b9d82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/golinters/lll/lll.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func getLLLIssuesForFile(filename string, maxLineLen int, tabSpaces string) ([]r
121121
Filename: filename,
122122
Line: lineNumber,
123123
},
124-
Text: fmt.Sprintf("line is %d characters, max %d", lineLen, maxLineLen),
124+
Text: fmt.Sprintf("The line is %d characters long, which exceeds the maximum of %d characters.", lineLen, maxLineLen),
125125
FromLinter: linterName,
126126
})
127127
}

test/run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestLineDirective(t *testing.T) {
218218
},
219219
configPath: "testdata/linedirective/lll.yml",
220220
targetPath: "linedirective",
221-
expected: "line is 57 characters, max 50 (lll)",
221+
expected: "The line is 57 characters long, which exceeds the maximum of 50 characters. (lll)",
222222
},
223223
{
224224
desc: "misspell",

0 commit comments

Comments
 (0)