Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute command goreportcard-cli -v will output errors #872

Closed
windvalley opened this issue Jan 20, 2021 · 1 comment
Closed

execute command goreportcard-cli -v will output errors #872

windvalley opened this issue Jan 20, 2021 · 1 comment

Comments

@windvalley
Copy link
Contributor

Describe the bug
When I use goreportcard-cli -v command to check the code quality of my Go project, the following error will be output:

Grade: A+ (99.6%)
Files: 73
Issues: 1
gofmt: 100%
go_vet: 98%
	router/init.go
		Line 21: error: package project-foo/docs is not in GOROOT (/usr/local/Cellar/go/1.15/libexec/src/project-foo/docs) (vet)
gocyclo: 100%
golint: 100%
ineffassign: 100%
license: 100%
misspell: 100%

To Reproduce
Steps to reproduce the behavior:

  1. install goreportcard-cli
brew tap alecthomas/homebrew-tap
brew install gometalinter
go get github.com/gojp/goreportcard/cmd/goreportcard-cli
  1. swag init to generate dir docs/
  2. goreportcard-cli -v at Go project root dir
  3. See the errors above

Expected behavior

Grade: A+ (100.0%)
Files: 74
Issues: 0
gofmt: 100%
go_vet: 100%
gocyclo: 100%
golint: 100%
ineffassign: 100%
license: 100%
misspell: 100%

Your swag version
v1.7.0

Your go version
go version go1.15 darwin/amd64

@ubogdan
Copy link
Contributor

ubogdan commented Feb 16, 2021

Merged.

@ubogdan ubogdan closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants