Skip to content

Commit

Permalink
ci: run goimports on our code and ensure it remains well formatted (#628
Browse files Browse the repository at this point in the history
)
  • Loading branch information
myitcv committed Dec 17, 2019
1 parent 98f3216 commit 6240503
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _scripts/dockerRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ go run honnef.co/go/tools/cmd/staticcheck $(go list ./... | grep -v 'govim/inter
if [ "${CI:-}" == "true" && "${TRAVIS_EVENT_TYPE:-}" != "cron" ]
then
go mod tidy
diff <(echo -n) <(gofmt -d $(git ls-files '**/*.go' '*.go' | grep -v cmd/govim/internal/golang_org_x_tools))
diff <(echo -n) <(go run golang.org/x/tools/cmd/goimports -d $(git ls-files '**/*.go' '*.go' | grep -v golang_org_x_tools))
test -z "$(git status --porcelain)" || (git status; git diff; false)
fi
2 changes: 1 addition & 1 deletion cmd/govim/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"sync"
"testing"

"github.com/creack/pty"
"github.com/govim/govim/cmd/govim/config"
"github.com/govim/govim/testdriver"
"github.com/govim/govim/testsetup"
"github.com/creack/pty"
"github.com/rogpeppe/go-internal/goproxytest"
"github.com/rogpeppe/go-internal/testscript"
)
Expand Down
2 changes: 1 addition & 1 deletion testdriver/testdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"github.com/acarl005/stripansi"

"github.com/creack/pty"
"github.com/govim/govim"
"github.com/govim/govim/testsetup"
"github.com/creack/pty"
"github.com/rogpeppe/go-internal/semver"
"github.com/rogpeppe/go-internal/testscript"
"gopkg.in/retry.v1"
Expand Down

0 comments on commit 6240503

Please sign in to comment.