black

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuleNoIssues = api.Rule{
	Slug: "code-quality/black/no-issues",
	Name: "Black reports no issues with this project",
	Details: fmt.Sprintf(`> [Black](https://github.com/psf/black) is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from %s nagging about formatting. You will save time and mental energy for more important matters.

This rule checks whether Black finds any files it would fix in your project.`, "`pycodestyle`"),
	Weight: 1,
}

Functions

func NewLinter

func NewLinter() api.Linter

Types

type BlackLinter

type BlackLinter struct{}

func (*BlackLinter) LintProject

func (l *BlackLinter) LintProject(project api.Project) (api.Report, error)

func (*BlackLinter) Name

func (l *BlackLinter) Name() string

func (*BlackLinter) Rules

func (l *BlackLinter) Rules() []*api.Rule

Jump to

Keyboard shortcuts

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