Apache License 2.0

项目介绍

qax-os/goreporter 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 Apache License 2.0 许可证,目前获得 3.1k 个 Star、256 次 Fork。

仓库全名
qax-os/goreporter
开源许可证
Apache License 2.0
Star 数
3.1k
Fork 数
256
未关闭 Issue
29

README 摘要

A Golang tool that does static analysis, unit testing, code review and generate code quality report. This is a tool that concurrently runs a whole bunch of those linters and normalizes their output to a report: Supported linters Supported template Todo List Installing Requirements Run it Quickstart Example Report-example Credits Supported linters gofmt - Checks if the code is properly formatted and could not be…

完整内容见 GitHub 原始 README 或本页 。

常见问题

goreporter 用什么语言开发?

主要使用 Go 编写,采用 Apache License 2.0 许可证,目前有 3.1k 个 Star。

goreporter 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 goreporter 的源码?

可以直接克隆仓库:git clone https://github.com/qax-os/goreporter.git,默认分支为 master;安装与运行步骤见仓库 README。

goreporter 最近还在维护吗?

仓库最近一次更新为 2018年10月28日,当前有 29 个未关闭 Issue;Star 数为 3.1k,可作为社区活跃度的参考。

语言占比

Dockerfile
Emacs Lisp
Go
HTML
Makefile
Shell
Vim Script

Release

README

goreporter

goreporter Version Status

Current Release Build Status GoDoc License

A Golang tool that does static analysis, unit testing, code review and generate code quality report. This is a tool that concurrently runs a whole bunch of those linters and normalizes their output to a report:

Supported linters

  • gofmt - Checks if the code is properly formatted and could not be further simplified.
  • govet - Reports variables that may have been unintentionally shadowed.
  • golint - Golint is a linter for Go source code.
  • unittest - Golang unit test status.
  • deadcode - Finds unused code.
  • gocyclo - Computes the cyclomatic complexity of functions.
  • varcheck - Find unused global variables and constants.
  • structcheck - Find unused struct fields.
  • aligncheck - Warn about un-optimally aligned structures.
  • errcheck - Check that error return values are used.
  • copycode(dupl) - Reports potentially duplicated code.
  • gosimple - Report simplifications in code.
  • staticcheck - Statically detect bugs, both obvious and subtle ones.
  • godepgraph - Godepgraph is a program for generating a dependency graph of Go packages.
  • misspell - Correct commonly misspelled English words… quickly.
  • countcode - Count lines and files of project.
  • interfacer - Suggest narrower interfaces that can be used.
  • depth - Count the maxdepth of go functions.
  • flen - Flen provides stats on functions/methods lengths in a Golang package.

Template

  • html template file which can be loaded via -t <file>.

Todo List

  • This version will re-design the template.
  • Add interfacer and safesql and gofmt(-s),govet linter.

Installing

Requirements

Quickstart

Install goreporter (see above).

go get -u github.com/360EntSecGroup-Skylar/goreporter

Run it:

NOTE

You have to confirm that your project is operational. In particular, the problem with vendor, when the package is not found in the default path, goreporter will look again from the possible vendor path.

goreporter -p [projectRelativePath] -r [reportPath] -e [exceptPackagesName] -f [json/html/text]  {-t templatePathIfHtml}
  • -version Version of GoReporter.
  • -p Must be a valid Golang project path.
  • -r Save the path to the report.
  • -e Exceptional packages (multiple separated by commas, for example: “linters/aligncheck,linters/cyclo” ).
  • -f report format json, html OR text.
  • -t Template path,if not specified, the default template will be used.

By default, the default template is used to generate reports in html format.

Example

goreporter-display

you can see result detail:online-example-report

Credits

Logo is designed by Ri Xu

评论

暂无评论