We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad6186 commit e88f182Copy full SHA for e88f182
pkg/golinters/whitespace.go
@@ -49,8 +49,8 @@ func NewWhitespace(settings *config.WhitespaceSettings) *goanalysis.Linter {
49
switch issue.MessageType {
50
case whitespace.MessageTypeRemove:
51
report.LineRange = &result.Range{
52
- From: issue.LineNumber,
53
- To: issue.LineNumber,
+ From: issue.LineNumbers[0],
+ To: issue.LineNumbers[len(issue.LineNumbers)-1],
54
}
55
56
report.Replacement = &result.Replacement{
test/testdata/fix/out/whitespace.go
@@ -41,7 +41,6 @@ func oneLeadingNewlineWithCommentFunc() {
41
42
43
func twoLeadingNewlines() {
44
-
45
fmt.Println("Hello world")
46
47
0 commit comments