Skip to content

Commit

Permalink
.travis.yml and don't use internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
golangcidev committed May 13, 2018
1 parent 0e107e1 commit 5c2e6e9
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sudo: false
language: go
go:
- 1.9.x
- 1.10.x
script: make test
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test:
go install ./cmd/...
golangci-lint run
go test -v -race ./...
2 changes: 1 addition & 1 deletion cmd/golangci-lint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/golangci/golangci-lint/internal/commands"
"github.com/golangci/golangci-lint/pkg/commands"
"github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/testdata/with_issues/deadcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package testdata

var y int

var unused int // ERROR "`unused` is unused"
var unused int // nolint:megacheck // ERROR "`unused` is unused"

func f(x int) {
}

func g(x int) { // ERROR "`g` is unused"
func g(x int) { // nolint:megacheck // ERROR "`g` is unused"
}

func H(x int) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/testdata/with_issues/structcheck.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package testdata

type t struct { // ERROR "`t` is unused"
unusedField int // ERROR "`unusedField` is unused"
type t struct { // nolint:megacheck // ERROR "`t` is unused"
unusedField int // nolint:megacheck // ERROR "`unusedField` is unused"
}
2 changes: 1 addition & 1 deletion pkg/testdata/with_issues/varcheck.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package testdata

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

0 comments on commit 5c2e6e9

Please sign in to comment.