commands

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(dir string, excludes ...string) error

Check performs all the common checks

func CheckD

func CheckD(dir string, excludes ...string) error

CheckD performs all the common checks on directories Instead of packages, it operates on directories, thus it is compatible with gomodules outside GOPATH.

func Copyright(path string, excludes ...string) error

Copyright checks for copyright headers in files

func CopyrightD

func CopyrightD(path string, excludes ...string) error

CopyrightD checks for copyright headers in files

Instead of packages, it operates on directories, thus it is compatible with gomodules outside GOPATH.

Example:

commands.CopyrightD(".", "docs")

func GetImports

func GetImports() error

GetImports installs goimports binary.

func GetLint

func GetLint() error

GetLint installs golint binary.

func GoImports

func GoImports(pathToCheck string, excludes ...string) error

GoImports checks for issues with go imports.

func GoImportsD

func GoImportsD(dir string, excludes ...string) error

GoImportsD checks for issues with go imports.

Instead of packages, it operates on directories, thus it is compatible with gomodules outside GOPATH.

Example:

commands.GoImportsD(".", "docs")

func GoLint

func GoLint(pathToCheck string, excludes ...string) error

GoLint checks for linting errors in the solution

func GoLintD

func GoLintD(dir string, excludes ...string) error

GoLintD checks for linting errors in the solution

Instead of packages, it operates on directories, thus it is compatible with gomodules outside GOPATH.

Example:

commands.GoLintD(".", "docs")

func GoReport

func GoReport(repo string) error

GoReport updates the go report for the given repo

func GoVet

func GoVet(path string, additionalArgs ...string) error

GoVet checks that the source is compliant with go vet

func Test

func Test(path string) error

Test runs the tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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