Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A report card for your Go application

License

NotificationsYou must be signed in to change notification settings

gojp/goreportcard

Repository files navigation

Go Report CardLicense

Go Report Card

A web application that generates a report on the quality of an open source Go project. It uses several measures, includinggofmt,go vet,go lint andgocyclo. To get a report on your own project, trygoreportcard.com.

Sponsors

Support us over onPatreon!

Installation

git clone https://github.com/gojp/goreportcard.gitcd goreportcardmake install

Now run:

GRC_DATABASE_PATH=./db make start

and you should see

Running on :8000...

Navigate tolocalhost:8000 and you should see the Go Report Card front page.

Command Line Interface

There is also a CLI available for grading applications on your local machine.

Example usage:

git clone https://github.com/gojp/goreportcard.gitcd goreportcardmake installgo install ./cmd/goreportcard-cligoreportcard-cli
Grade .......... A+  99.9%Files ................ 362Issues ................. 2gofmt ............... 100%go_vet ............... 99%gocyclo .............. 99%golint .............. 100%ineffassign ......... 100%license ............. 100%misspell ............ 100%

Verbose output:

goreportcard-cli -v
Grade .......... A+  99.9%Files ................ 362Issues ................. 2gofmt ............... 100%go_vet ............... 99%go_vet  vendor/github.com/prometheus/client_golang/prometheus/desc.go:25        error: cannot find package "github.com/prometheus/client_model/go" in any of: (vet)gocyclo .............. 99%gocyclo download/download.go:22        warning: cyclomatic complexity 17 of function download() is high (> 15) (gocyclo)golint .............. 100%ineffassign ......... 100%license ............. 100%misspell ............ 100%

Contributing

Go Report Card is an open source project run by volunteers, and contributions are welcome! Check out theIssues page to see if your idea has already been mentioned. Feel free to raise an issue or submit a pull request.

Academic Citation

If you use Go Report Card for academic purposes, please use the following citation:

@Misc{schaaf-smith-goreportcard,    author = {Schaaf, Herman and Smith, Shawn},    title  = {Go Report Card: A report card for your Go application},    year   = {2015--},    url    = {https://www.goreportcard.com/},    note   = {[Online; accessed <today>]}}

License

The code is licensed under the permissive Apache v2.0 license.Read this for a summary.


[8]ページ先頭

©2009-2025 Movatter.jp