Skip to content

Commit

Permalink
fix(Makefile): golint uses new repo url (swaggo#222)
Browse files Browse the repository at this point in the history
* fix(Makefile): golint uses new repo url

* remove go test race

* chore: fix goimports
  • Loading branch information
easonlin404 authored and pei0804 committed Oct 18, 2018
1 parent 7b8e2c6 commit 7d687ac
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ script:
- make lint
- make build
- make test
- go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lint:
deps:
$(GOGET) -v ./...
$(GOGET) github.com/stretchr/testify/assert
$(GOGET) github.com/golang/lint/golint
$(GOGET) golang.org/x/lint/golint
$(GOGET) golang.org/x/tools/cmd/goimports

view-covered:
Expand Down
4 changes: 1 addition & 3 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ package gen

import (
"encoding/json"

"github.com/pkg/errors"

"log"
"os"
"path"
"text/template"
"time"

"github.com/ghodss/yaml"
"github.com/pkg/errors"
"github.com/swaggo/swag"
)

Expand Down
3 changes: 1 addition & 2 deletions parser.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package swag

import (
"github.com/pkg/errors"

"fmt"
"go/ast"
goparser "go/parser"
Expand All @@ -19,6 +17,7 @@ import (

"github.com/go-openapi/jsonreference"
"github.com/go-openapi/spec"
"github.com/pkg/errors"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion testdata/simple2/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2018-09-27 22:29:37.085996 -0300 ADT m=+0.062541979
// 2018-10-16 15:53:28.105899217 +0800 CST m=+0.032368181

package docs

Expand Down
2 changes: 1 addition & 1 deletion testdata/simple3/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2018-09-27 22:29:37.09555 -0300 ADT m=+0.072096139
// 2018-10-16 15:53:28.111226425 +0800 CST m=+0.037695404

package docs

Expand Down

0 comments on commit 7d687ac

Please sign in to comment.