goreportcard

module
v0.0.0-...-f4031c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2021 License: Apache-2.0

README

Go Report Card

旧版存在的问题:

  • 旧版不支持golangci-lint
  • gometalinter 已经弃用了
  • 不支持私库

预期维护的功能:

  • 增加更多linter(golangci-lint 支持 40+ linter)
  • 支持私库
  • 生成可视化报告
  • 分支可选
  • 直接通过链接获取测试报告 (如 xxx.com/report?repo=git.medlinker.com/service/common)
  • 静态代码检查评分
  • 缓存repo的评估报告

打包

-v /path/to/go/pkg:/go/pkg

使用(Docker)

docker run 
    -v /path/to/fakehome:/root \
    -v /path/to/go/pkg:/go/pkg \
    -p 8000:8000 \ 
    --env GOPRIVATE=git.medlinker.com \ 
    --env GOPROXY=https://goproxy.io,direct \ 
    -d \
    goreportcard:v1.3.0

fakehome 中会存放 .ssh;goreportcard 的配置文件;拉取下来的源代码

感谢

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL