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

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages