lintgo

package
v0.0.0-...-719653f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package lintgo provides very basic Go linting utilities. This package isn't intended to be demonstrative, not comprehensive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(
	fn func(ps *ParseState, fi superlint.FileInfo, reporter superlint.ReportFunc) error,
) superlint.SingleValidator

Validate traverses each files AST in depth-first order.

Types

type ParseState

type ParseState struct {
	Fset *token.FileSet
	File *ast.File
}

Jump to

Keyboard shortcuts

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