golinters

package module
v0.0.0-...-e81158a Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 13 Imported by: 0

README

golinters

golinters generates HTML reports about Go linters. It fetches the linters' source and does static analysis. It also queries the GitHub API to figure out the maintainers.

$ go get github.com/thomasheller/golinters/cmd/golinters
$ golinters
[...]

If a popular linter is missing, please file an issue!

Example output

HTML screenshot

Download corresponding HTML file

Options

By default, golinters will create a temporary file and open the report in the standard browser.

You can specify -write somefile.html though, if you want golinters to just write to a specific file and not open any browser.

Because golinters uses the GitHub API to figure out the maintainers' names, you might want to supply a GitHub username and API token via -ghuser and -ghtoken so that you don't run into rate limit problems.

If you want to start over, you can use -remove to delete the linters' source in your GOPATH. Be careful, as this deletes entire repositories, even if the linter is just one part of it.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(ghUser *string, ghToken *string, out *string)

func RemoveAllRepos

func RemoveAllRepos()

RemoveAllRepos deletes the entire source code repository in GOPATH/src for all known linters. Be careful.

Types

type TemplateData

type TemplateData struct {
	Timestamp string
	Results   []result
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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