Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit e4b8897

Browse files
authored
Add fix option (#5)
* Use multichecker instead of unitchecker for -fix option * Add how to run fix options in readme Updates: #3 Fixes: #4 Signed-off-by: Shayegan Hooshyari <[email protected]>
1 parent c22527c commit e4b8897

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ $ go build -o contour-lint .
88
$ go vet -vetttool $(which contour-lint) ./...
99
```
1010

11+
To run linter and apply suggested fixes:
12+
```bash
13+
contour-lint ./...
14+
```
15+
1116
## linters
1217

1318
### importalias

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ package main
1616
import (
1717
"github.com/projectcontour/lint/pkg/analysis/importalias"
1818
"github.com/projectcontour/lint/pkg/analysis/messagefmt"
19-
"golang.org/x/tools/go/analysis/unitchecker"
19+
"golang.org/x/tools/go/analysis/multichecker"
2020
)
2121

2222
func main() {
23-
unitchecker.Main(
23+
multichecker.Main(
2424
messagefmt.Analyzer,
2525
importalias.Analyzer,
2626
)

0 commit comments

Comments
 (0)