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. |
Click to show internal directories.
Click to hide internal directories.