File tree 10 files changed +13
-6
lines changed
10 files changed +13
-6
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ language : go
3
+ go :
4
+ - 1.9.x
5
+ - 1.10.x
6
+ script : make test
Original file line number Diff line number Diff line change 1
1
test :
2
+ go install ./cmd/...
2
3
golangci-lint run
3
4
go test -v -race ./...
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package main
3
3
import (
4
4
"log"
5
5
6
- "github.com/golangci/golangci-lint/internal /commands"
6
+ "github.com/golangci/golangci-lint/pkg /commands"
7
7
"github.com/sirupsen/logrus"
8
8
)
9
9
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ package testdata
2
2
3
3
var y int
4
4
5
- var unused int // ERROR "`unused` is unused"
5
+ var unused int // nolint:megacheck // ERROR "`unused` is unused"
6
6
7
7
func f (x int ) {
8
8
}
9
9
10
- func g (x int ) { // ERROR "`g` is unused"
10
+ func g (x int ) { // nolint:megacheck // ERROR "`g` is unused"
11
11
}
12
12
13
13
func H (x int ) {
Original file line number Diff line number Diff line change 1
1
package testdata
2
2
3
- type t struct { // ERROR "`t` is unused"
4
- unusedField int // ERROR "`unusedField` is unused"
3
+ type t struct { // nolint:megacheck // ERROR "`t` is unused"
4
+ unusedField int // nolint:megacheck // ERROR "`unusedField` is unused"
5
5
}
Original file line number Diff line number Diff line change 1
1
package testdata
2
2
3
- var v string // ERROR "`v` is unused"
3
+ var v string // nolint:megacheck // ERROR "`v` is unused"
You can’t perform that action at this time.
0 commit comments