Skip to content

Commit 076ef9c

Browse files
author
golangci
authored
Merge pull request #3 from golangci/feature/travis
.travis.yml and don't use internal package
2 parents 0e107e1 + 5c2e6e9 commit 076ef9c

File tree

10 files changed

+13
-6
lines changed

10 files changed

+13
-6
lines changed

Diff for: .travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sudo: false
2+
language: go
3+
go:
4+
- 1.9.x
5+
- 1.10.x
6+
script: make test

Diff for: Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
test:
2+
go install ./cmd/...
23
golangci-lint run
34
go test -v -race ./...

Diff for: cmd/golangci-lint/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"log"
55

6-
"github.com/golangci/golangci-lint/internal/commands"
6+
"github.com/golangci/golangci-lint/pkg/commands"
77
"github.com/sirupsen/logrus"
88
)
99

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: pkg/testdata/with_issues/deadcode.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ package testdata
22

33
var y int
44

5-
var unused int // ERROR "`unused` is unused"
5+
var unused int // nolint:megacheck // ERROR "`unused` is unused"
66

77
func f(x int) {
88
}
99

10-
func g(x int) { // ERROR "`g` is unused"
10+
func g(x int) { // nolint:megacheck // ERROR "`g` is unused"
1111
}
1212

1313
func H(x int) {

Diff for: pkg/testdata/with_issues/structcheck.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package testdata
22

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"
55
}

Diff for: pkg/testdata/with_issues/varcheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package testdata
22

3-
var v string // ERROR "`v` is unused"
3+
var v string // nolint:megacheck // ERROR "`v` is unused"

0 commit comments

Comments
 (0)