ctxlint

package module
v0.0.0-...-07bae23 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

ctxlint Build Status Coverage Status

Lint for Go programs to check that context is propagated properly.

Status

Pre-alpha

Compatibility

Tests are using new Go 1.7 Subtests. Main code should compile on lower targets, but TravisCI is only configured to test 1.7 and tip.

Licence

Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter struct{}

A Linter handles walking the AST looking for context violations

func (Linter) LintFiles

func (l Linter) LintFiles(files map[string][]byte) ([]Problem, error)

LintFiles runs through a map of files (represented as byte slices) and checks for context violations

type Problem

type Problem struct {
	Position   token.Position
	Text       string
	SourceLine string
}

A Problem represents a violation in source code

Directories

Path Synopsis
ctxlint lints Go source files looking for context propagation Most of this code is adapted directly from https://github.com/golang/lint/blob/master/golint/golint.go Which is released under a BSD licence: https://developers.google.com/open-source/licenses/bsd
ctxlint lints Go source files looking for context propagation Most of this code is adapted directly from https://github.com/golang/lint/blob/master/golint/golint.go Which is released under a BSD licence: https://developers.google.com/open-source/licenses/bsd

Jump to

Keyboard shortcuts

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