cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version      string
	BuildTime    string
	BuildOSUname string
	BuildCommit  string
)

Build* are initialized during the build via -ldflags

View Source
var LinterReports []*linter.Report

LinterReports is a global map that stores all custom reports generated by NoVerify inside walkers.

Functions

func CacheClear added in v1.0.3

func CacheClear() (int, error)

func Check

func Check(ctx *cmd.AppContext, globalContext *walkers.GlobalContext) (status int, err error)

Check is the function that starts the analysis of the project.

func DefaultCacheDir

func DefaultCacheDir() string

DefaultCacheDir function returns the default, depending on the system, directory for storing the cache.

func HandleFunctions

func HandleFunctions(ctx *cmd.AppContext, funcs *symbols.Functions, palette *palette.Palette) []*pipes.ColorReport

HandleFunctions is a function that starts checking colors.

func HandleShowColorReports

func HandleShowColorReports(ctx *cmd.AppContext, reports []*pipes.ColorReport)

func HandleShowLinterReports

func HandleShowLinterReports(ctx *cmd.AppContext, reports []*linter.Report)

func Init

func Init() (status int, err error)

Init create template config for project.

func Main

func Main()

Main is the function that launches the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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