lint

package
v0.0.0-...-264a602 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter struct {
	// contains filtered or unexported fields
}

A Linter lints Go source code.

func NewLinter

func NewLinter(file *descriptor.FileDescriptorProto) *Linter

func (*Linter) Lint

func (l *Linter) Lint() []Problem

type Problem

type Problem struct {
	Position   string  // position in source file
	Text       string  // the prose that describes the problem
	Link       string  // (optional) the link to the style guide for the problem
	Confidence float64 // a value in (0,1] estimating the confidence in this problem's correctness
	LineText   string  // the source line
	Category   string  // a short name for the general category of the problem
}

Problem represents a problem in some source code.

Jump to

Keyboard shortcuts

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