tlslint

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "tls",
	Doc:  "Checks common TLS configuration mistakes.",
	URL:  "https://github.com/Azure/go-tls-lint",
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
	ResultType: reflect.TypeOf([]*Issue(nil)),
}

Functions

This section is empty.

Types

type Issue

type Issue struct {
	// Severity - the severity of the issue.
	Severity IssueSeverity
	// Message - the message to display to the user.
	Message string
	// Node - the node that triggered the issue.
	Node ast.Node
}

Issue is a linting issue.

func (*Issue) String

func (i *Issue) String() string

type IssueSeverity

type IssueSeverity string

IssueSeverity is the severity of an issue.

const (
	// IssueSeverityError is an error issue, which cannot be ignored by code comment.
	IssueSeverityError IssueSeverity = "ERROR"
	// IssueSeverityWarning is a warning issue, which can be ignored by code comment.
	IssueSeverityWarning IssueSeverity = "WARNING"
)

Jump to

Keyboard shortcuts

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