linter

package
v0.0.0-...-58bcca3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package linter checks Dogma applications for common problems.

Index

Constants

View Source
const (
	// PackageLoadMode is the packages.LoadMode required by the linter.
	PackageLoadMode = packages.NeedName |
		packages.NeedFiles |
		packages.NeedCompiledGoFiles |
		packages.NeedSyntax |
		packages.NeedTypes |
		packages.NeedTypesInfo |
		packages.NeedTypesSizes |
		packages.NeedImports |
		packages.NeedDeps

	// SSABuilderMode is the ssa.BuilderMode required by the linter.
	SSABuilderMode = ssa.SanityCheckFunctions | ssa.GlobalDebug
)

Variables

This section is empty.

Functions

func Lint

func Lint(pkgs ...*packages.Package) []diagnostic.Diagnostic

Lint runs the linter against the given packages.

Types

This section is empty.

Directories

Path Synopsis
Package diagnostic represents diagnostic information about a Dogma application's source code.
Package diagnostic represents diagnostic information about a Dogma application's source code.
internal
rules/identity
Package identity checks that all applications and handlers have a valid identity.
Package identity checks that all applications and handlers have a valid identity.
rules/internal/ruletest
Package ruletest provides utilities for testing linter rules.
Package ruletest provides utilities for testing linter rules.

Jump to

Keyboard shortcuts

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