lint

package module
v0.0.0-...-adc824a Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: BSD-3-Clause Imports: 3 Imported by: 126

README

lint

GoDoc Build Status

Work in progress. Its API might change before the 1.0 release.

This package intends to define simple interfaces that Go code checkers can implement. This would simplify calling them from Go code, as well as running multiple linters while sharing initial loading work.

metalint
go get -u mvdan.cc/lint/cmd/metalint

The start of a linter that runs many linters leveraging the common interface. Not stable yet.

Linters included:

Documentation

Overview

Package lint defines common interfaces for Go code checkers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Program(*loader.Program)
	Check() ([]Issue, error)
}

A Checker points out issues in a program.

type Issue

type Issue interface {
	Pos() token.Pos
	Message() string
}

Issue represents an issue somewhere in a source code file.

type WithSSA

type WithSSA interface {
	ProgramSSA(*ssa.Program)
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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