template

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuleSomething = api.Rule{
	Name:    "Project should do Something",
	Slug:    "category/do-something",
	Details: "TODO: fill this in with details about what the rule checks, what the reasoning behind it is, where people can get more information on how to implement what this rule checks.",
	Weight:  1,
}

Functions

func NewLinter

func NewLinter() api.Linter

Returns an api.Linter or an api.ConfigurableLinter if also implementing api.Configurable

Types

type Linter

type Linter struct{}

Your linter object. Give this a nice name.

func (*Linter) LintProject

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

func (*Linter) Name

func (l *Linter) Name() string

func (*Linter) Rules

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

Jump to

Keyboard shortcuts

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