Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

jfeltesse/goreportcard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card - library style

The upstream project is a full fledged web app but I only need to run it locally, on a given package's source code.

This Quick n' Dirty™ variant keeps only the bare minimum code (no mongo caching, no http handlers etc.). Some changes were made accordingly, while trying to keep those minimal.

SETUP

To run properly several tools need to be installed, using the following commands:

go get -u github.com/fzipp/gocyclo

go get -u golang.org/x/tools/cmd/vet

go get -u github.com/golang/lint/golint

SAMPLE USAGE

package main

import (
  "fmt"
  "os"
  "github.com/robotvert/goreportcard"
)

func main() {
  resp, err := goreportcard.CheckPackage(os.Args[1])
  if err != nil {
    fmt.Println(err)
  }
  fmt.Println(resp.Grade)
}

About

Go Report Card as a package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%