package
0.0.0-20240603110249-137b06fea15e
Repository: https://github.com/khulnasoft-lab/goanalyzer.git
Documentation: pkg.go.dev

# Functions

GoFiles returns a slice of Go filenames in a given directory.
GoTool runs a given go command (for example gofmt, go tool vet) on a directory.
GradeFromPercentage gets the Grade for a percentage.
RenameFiles renames the provided filenames to have a ".grc.bk" extension, so they will not be considered in future checks.
Run executes all checks on the given directory.

# Constants

The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.
The Grade constants below indicate the current available grades.

# Structs

ChecksResult represents the combined result of multiple checks.
ErrCheck is the check for the errcheck command.
Error contains the line number and the reason for an error output from a command.
FileSummary contains the filename, location of the file on GitHub, and all of the errors related to the file.
GoCyclo is the check for the go cyclo command.
GoFmt is the check for the go fmt command.
GoLint is the check for the go lint command.
GoVet is the check for the go vet command.
IneffAssign is the check for the ineffassign command.
License is the check for the existence of a license file.
Misspell is the check for the misspell command.
Score represents the result of a single check.
Staticcheck is the check for the staticcheck command.

# Interfaces

Check describes what methods various checks (gofmt, go lint, etc.) should implement.

# Type aliases

ByWeight implements sorting for checks by weight descending.
Grade represents a grade returned by the server, which is normally somewhere between A+ (highest) and F (lowest).