Skip to content

Commit

Permalink
Fix function docstring warning position (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmos authored Jul 17, 2019
1 parent 0e96289 commit 4553d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion warn/warn_docstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ func functionDocstringWarning(f *build.File) []*LinterFinding {
}

message := fmt.Sprintf("The function %q has no docstring.", def.Name)
findings = append(findings, makeLinterFinding(def, message))
finding := makeLinterFinding(def, message)
finding.End = def.ColonPos
findings = append(findings, finding)
}
return findings
}
Expand Down

0 comments on commit 4553d0b

Please sign in to comment.