Skip to content

Commit 0afde46

Browse files
committed
.travis.yml and don't use internal package
1 parent 0e107e1 commit 0afde46

File tree

8 files changed

+10
-3
lines changed

8 files changed

+10
-3
lines changed

.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

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 ./...

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.

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) {

0 commit comments

Comments
 (0)