docs: Improve goimports description (#2109)
This commit is contained in:
parent
a6fcf6f001
commit
36aa12425c
@ -24,7 +24,7 @@ func NewGoimports() *goanalysis.Linter {
|
|||||||
}
|
}
|
||||||
return goanalysis.NewLinter(
|
return goanalysis.NewLinter(
|
||||||
goimportsName,
|
goimportsName,
|
||||||
"Goimports does everything that gofmt does. Additionally it checks unused imports",
|
"In addition to fixing imports, goimports also formats your code in the same style as gofmt.",
|
||||||
[]*analysis.Analyzer{analyzer},
|
[]*analysis.Analyzer{analyzer},
|
||||||
nil,
|
nil,
|
||||||
).WithContextSetter(func(lintCtx *linter.Context) {
|
).WithContextSetter(func(lintCtx *linter.Context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user