rules

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRules

func DefaultRules() *lint.RuleSet

DefaultRules returns the default set of all lint rules.

Types

type ActionWorkSignalWriteRule

type ActionWorkSignalWriteRule struct{}

ActionWorkSignalWriteRule detects reactive signal writes inside Action work functions. Action work executes off the session loop and must not write reactive state directly.

func (*ActionWorkSignalWriteRule) CISeverity

func (r *ActionWorkSignalWriteRule) CISeverity() lint.Severity

func (*ActionWorkSignalWriteRule) Check

func (r *ActionWorkSignalWriteRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ActionWorkSignalWriteRule) Code

func (*ActionWorkSignalWriteRule) DefaultSeverity

func (r *ActionWorkSignalWriteRule) DefaultSeverity() lint.Severity

func (*ActionWorkSignalWriteRule) Description

func (r *ActionWorkSignalWriteRule) Description() string

func (*ActionWorkSignalWriteRule) DocURL

func (r *ActionWorkSignalWriteRule) DocURL() string

type AppBlessedSurfaceImportRule added in v0.1.0

type AppBlessedSurfaceImportRule struct{}

AppBlessedSurfaceImportRule warns app packages that bypass the blessed root surface.

func (*AppBlessedSurfaceImportRule) CISeverity added in v0.1.0

func (r *AppBlessedSurfaceImportRule) CISeverity() lint.Severity

func (*AppBlessedSurfaceImportRule) Check added in v0.1.0

func (*AppBlessedSurfaceImportRule) Code added in v0.1.0

func (*AppBlessedSurfaceImportRule) DefaultSeverity added in v0.1.0

func (r *AppBlessedSurfaceImportRule) DefaultSeverity() lint.Severity

func (*AppBlessedSurfaceImportRule) Description added in v0.1.0

func (r *AppBlessedSurfaceImportRule) Description() string

func (*AppBlessedSurfaceImportRule) DocURL added in v0.1.0

func (r *AppBlessedSurfaceImportRule) DocURL() string

type AppCanonicalVangoImportRule

type AppCanonicalVangoImportRule struct{}

AppCanonicalVangoImportRule warns app packages that import the internal core path.

func (*AppCanonicalVangoImportRule) CISeverity

func (r *AppCanonicalVangoImportRule) CISeverity() lint.Severity

func (*AppCanonicalVangoImportRule) Check

func (*AppCanonicalVangoImportRule) Code

func (*AppCanonicalVangoImportRule) DefaultSeverity

func (r *AppCanonicalVangoImportRule) DefaultSeverity() lint.Severity

func (*AppCanonicalVangoImportRule) Description

func (r *AppCanonicalVangoImportRule) Description() string

func (*AppCanonicalVangoImportRule) DocURL

func (r *AppCanonicalVangoImportRule) DocURL() string

type ArrayKeyedRequiredRule

type ArrayKeyedRequiredRule struct{}

ArrayKeyedRequiredRule enforces ArrayKeyed for dynamic list operations where per-item identity must be stable (e.g., item.Remove handlers).

func (*ArrayKeyedRequiredRule) CISeverity

func (r *ArrayKeyedRequiredRule) CISeverity() lint.Severity

func (*ArrayKeyedRequiredRule) Check

func (r *ArrayKeyedRequiredRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ArrayKeyedRequiredRule) Code

func (r *ArrayKeyedRequiredRule) Code() string

func (*ArrayKeyedRequiredRule) DefaultSeverity

func (r *ArrayKeyedRequiredRule) DefaultSeverity() lint.Severity

func (*ArrayKeyedRequiredRule) Description

func (r *ArrayKeyedRequiredRule) Description() string

func (*ArrayKeyedRequiredRule) DocURL

func (r *ArrayKeyedRequiredRule) DocURL() string

type BadSignatureRule

type BadSignatureRule struct{}

BadSignatureRule detects invalid Setup component signatures.

func (*BadSignatureRule) CISeverity

func (r *BadSignatureRule) CISeverity() lint.Severity

func (*BadSignatureRule) Check

func (r *BadSignatureRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*BadSignatureRule) Code

func (r *BadSignatureRule) Code() string

func (*BadSignatureRule) DefaultSeverity

func (r *BadSignatureRule) DefaultSeverity() lint.Severity

func (*BadSignatureRule) Description

func (r *BadSignatureRule) Description() string

func (*BadSignatureRule) DocURL

func (r *BadSignatureRule) DocURL() string

type ComponentsRoutesImportRule

type ComponentsRoutesImportRule struct{}

ComponentsRoutesImportRule prevents app/components -> app/routes edges.

func (*ComponentsRoutesImportRule) CISeverity

func (r *ComponentsRoutesImportRule) CISeverity() lint.Severity

func (*ComponentsRoutesImportRule) Check

func (*ComponentsRoutesImportRule) Code

func (*ComponentsRoutesImportRule) DefaultSeverity

func (r *ComponentsRoutesImportRule) DefaultSeverity() lint.Severity

func (*ComponentsRoutesImportRule) Description

func (r *ComponentsRoutesImportRule) Description() string

func (*ComponentsRoutesImportRule) DocURL

func (r *ComponentsRoutesImportRule) DocURL() string

type ConditionalAllocRule

type ConditionalAllocRule struct{}

ConditionalAllocRule detects allocation inside conditionals.

func (*ConditionalAllocRule) CISeverity

func (r *ConditionalAllocRule) CISeverity() lint.Severity

func (*ConditionalAllocRule) Check

func (r *ConditionalAllocRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ConditionalAllocRule) Code

func (r *ConditionalAllocRule) Code() string

func (*ConditionalAllocRule) DefaultSeverity

func (r *ConditionalAllocRule) DefaultSeverity() lint.Severity

func (*ConditionalAllocRule) Description

func (r *ConditionalAllocRule) Description() string

func (*ConditionalAllocRule) DocURL

func (r *ConditionalAllocRule) DocURL() string

type EagerConditionalRule added in v0.2.0

type EagerConditionalRule struct{}

EagerConditionalRule detects unsafe expressions inside eager conditional render helpers.

func (*EagerConditionalRule) CISeverity added in v0.2.0

func (r *EagerConditionalRule) CISeverity() lint.Severity

func (*EagerConditionalRule) Check added in v0.2.0

func (r *EagerConditionalRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*EagerConditionalRule) Code added in v0.2.0

func (r *EagerConditionalRule) Code() string

func (*EagerConditionalRule) DefaultSeverity added in v0.2.0

func (r *EagerConditionalRule) DefaultSeverity() lint.Severity

func (*EagerConditionalRule) Description added in v0.2.0

func (r *EagerConditionalRule) Description() string

func (*EagerConditionalRule) DocURL added in v0.2.0

func (r *EagerConditionalRule) DocURL() string

type EventBlockingIORule

type EventBlockingIORule struct{}

EventBlockingIORule detects blocking I/O in event handlers.

func (*EventBlockingIORule) CISeverity

func (r *EventBlockingIORule) CISeverity() lint.Severity

func (*EventBlockingIORule) Check

func (r *EventBlockingIORule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*EventBlockingIORule) Code

func (r *EventBlockingIORule) Code() string

func (*EventBlockingIORule) DefaultSeverity

func (r *EventBlockingIORule) DefaultSeverity() lint.Severity

func (*EventBlockingIORule) Description

func (r *EventBlockingIORule) Description() string

func (*EventBlockingIORule) DocURL

func (r *EventBlockingIORule) DocURL() string

type EventGoroutineRule

type EventGoroutineRule struct{}

EventGoroutineRule detects goroutine spawning in event handlers.

func (*EventGoroutineRule) CISeverity

func (r *EventGoroutineRule) CISeverity() lint.Severity

func (*EventGoroutineRule) Check

func (r *EventGoroutineRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*EventGoroutineRule) Code

func (r *EventGoroutineRule) Code() string

func (*EventGoroutineRule) DefaultSeverity

func (r *EventGoroutineRule) DefaultSeverity() lint.Severity

func (*EventGoroutineRule) Description

func (r *EventGoroutineRule) Description() string

func (*EventGoroutineRule) DocURL

func (r *EventGoroutineRule) DocURL() string

type FormHTTPFallbackAttrsRule

type FormHTTPFallbackAttrsRule struct{}

FormHTTPFallbackAttrsRule enforces method/action attributes on forms to keep HTTP fallback behavior explicit and deterministic.

func (*FormHTTPFallbackAttrsRule) CISeverity

func (r *FormHTTPFallbackAttrsRule) CISeverity() lint.Severity

func (*FormHTTPFallbackAttrsRule) Check

func (r *FormHTTPFallbackAttrsRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*FormHTTPFallbackAttrsRule) Code

func (*FormHTTPFallbackAttrsRule) DefaultSeverity

func (r *FormHTTPFallbackAttrsRule) DefaultSeverity() lint.Severity

func (*FormHTTPFallbackAttrsRule) Description

func (r *FormHTTPFallbackAttrsRule) Description() string

func (*FormHTTPFallbackAttrsRule) DocURL

func (r *FormHTTPFallbackAttrsRule) DocURL() string

type InPlaceSignalMutationRule

type InPlaceSignalMutationRule struct{}

InPlaceSignalMutationRule detects definite in-place mutation patterns where a slice/map signal value is mutated and then written back with Set/Update.

func (*InPlaceSignalMutationRule) CISeverity

func (r *InPlaceSignalMutationRule) CISeverity() lint.Severity

func (*InPlaceSignalMutationRule) Check

func (r *InPlaceSignalMutationRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*InPlaceSignalMutationRule) Code

func (*InPlaceSignalMutationRule) DefaultSeverity

func (r *InPlaceSignalMutationRule) DefaultSeverity() lint.Severity

func (*InPlaceSignalMutationRule) Description

func (r *InPlaceSignalMutationRule) Description() string

func (*InPlaceSignalMutationRule) DocURL

func (r *InPlaceSignalMutationRule) DocURL() string

type InitDependsOnPropsRule

type InitDependsOnPropsRule struct{}

InitDependsOnPropsRule detects initializers that depend on props.

func (*InitDependsOnPropsRule) CISeverity

func (r *InitDependsOnPropsRule) CISeverity() lint.Severity

func (*InitDependsOnPropsRule) Check

func (r *InitDependsOnPropsRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*InitDependsOnPropsRule) Code

func (r *InitDependsOnPropsRule) Code() string

func (*InitDependsOnPropsRule) DefaultSeverity

func (r *InitDependsOnPropsRule) DefaultSeverity() lint.Severity

func (*InitDependsOnPropsRule) Description

func (r *InitDependsOnPropsRule) Description() string

func (*InitDependsOnPropsRule) DocURL

func (r *InitDependsOnPropsRule) DocURL() string

type InternalAppImportRule

type InternalAppImportRule struct{}

InternalAppImportRule prevents internal/* -> app/* coupling.

func (*InternalAppImportRule) CISeverity

func (r *InternalAppImportRule) CISeverity() lint.Severity

func (*InternalAppImportRule) Check

func (r *InternalAppImportRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*InternalAppImportRule) Code

func (r *InternalAppImportRule) Code() string

func (*InternalAppImportRule) DefaultSeverity

func (r *InternalAppImportRule) DefaultSeverity() lint.Severity

func (*InternalAppImportRule) Description

func (r *InternalAppImportRule) Description() string

func (*InternalAppImportRule) DocURL

func (r *InternalAppImportRule) DocURL() string

type InvalidChildrenFieldRule

type InvalidChildrenFieldRule struct{}

InvalidChildrenFieldRule detects non-Slot fields that represent children in props. Per DEVELOPER_GUIDE.md §8.1, Setup component children MUST be represented as vango.Slot fields in the props struct.

func (*InvalidChildrenFieldRule) CISeverity

func (r *InvalidChildrenFieldRule) CISeverity() lint.Severity

func (*InvalidChildrenFieldRule) Check

func (r *InvalidChildrenFieldRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*InvalidChildrenFieldRule) Code

func (r *InvalidChildrenFieldRule) Code() string

func (*InvalidChildrenFieldRule) DefaultSeverity

func (r *InvalidChildrenFieldRule) DefaultSeverity() lint.Severity

func (*InvalidChildrenFieldRule) Description

func (r *InvalidChildrenFieldRule) Description() string

func (*InvalidChildrenFieldRule) DocURL

func (r *InvalidChildrenFieldRule) DocURL() string

type LoopAllocRule

type LoopAllocRule struct{}

LoopAllocRule detects allocation inside loops.

func (*LoopAllocRule) CISeverity

func (r *LoopAllocRule) CISeverity() lint.Severity

func (*LoopAllocRule) Check

func (r *LoopAllocRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*LoopAllocRule) Code

func (r *LoopAllocRule) Code() string

func (*LoopAllocRule) DefaultSeverity

func (r *LoopAllocRule) DefaultSeverity() lint.Severity

func (*LoopAllocRule) Description

func (r *LoopAllocRule) Description() string

func (*LoopAllocRule) DocURL

func (r *LoopAllocRule) DocURL() string

type MissingListKeyRule

type MissingListKeyRule struct{}

MissingListKeyRule detects dynamic lists without stable keys. It checks: 1. Native for...range statements that produce VNodes without Key() 2. Range/RangeMap/Repeat helper calls where the callback lacks Key() 3. Manual slice building via append of VNodes without keys 4. Key usage that is present but unstable (index-based or nondeterministic)

func (*MissingListKeyRule) CISeverity

func (r *MissingListKeyRule) CISeverity() lint.Severity

func (*MissingListKeyRule) Check

func (r *MissingListKeyRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*MissingListKeyRule) Code

func (r *MissingListKeyRule) Code() string

func (*MissingListKeyRule) DefaultSeverity

func (r *MissingListKeyRule) DefaultSeverity() lint.Severity

func (*MissingListKeyRule) Description

func (r *MissingListKeyRule) Description() string

func (*MissingListKeyRule) DocURL

func (r *MissingListKeyRule) DocURL() string

type MissingPropsArgRule

type MissingPropsArgRule struct{}

MissingPropsArgRule detects vango.Setup calls missing props argument.

func (*MissingPropsArgRule) CISeverity

func (r *MissingPropsArgRule) CISeverity() lint.Severity

func (*MissingPropsArgRule) Check

func (r *MissingPropsArgRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*MissingPropsArgRule) Code

func (r *MissingPropsArgRule) Code() string

func (*MissingPropsArgRule) DefaultSeverity

func (r *MissingPropsArgRule) DefaultSeverity() lint.Severity

func (*MissingPropsArgRule) Description

func (r *MissingPropsArgRule) Description() string

func (*MissingPropsArgRule) DocURL

func (r *MissingPropsArgRule) DocURL() string

type MultipleSetupCallsRule

type MultipleSetupCallsRule struct{}

MultipleSetupCallsRule detects multiple Setup calls in one function.

func (*MultipleSetupCallsRule) CISeverity

func (r *MultipleSetupCallsRule) CISeverity() lint.Severity

func (*MultipleSetupCallsRule) Check

func (r *MultipleSetupCallsRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*MultipleSetupCallsRule) Code

func (r *MultipleSetupCallsRule) Code() string

func (*MultipleSetupCallsRule) DefaultSeverity

func (r *MultipleSetupCallsRule) DefaultSeverity() lint.Severity

func (*MultipleSetupCallsRule) Description

func (r *MultipleSetupCallsRule) Description() string

func (*MultipleSetupCallsRule) DocURL

func (r *MultipleSetupCallsRule) DocURL() string

type NondeterministicInitRule

type NondeterministicInitRule struct{}

NondeterministicInitRule detects non-deterministic initializers.

func (*NondeterministicInitRule) CISeverity

func (r *NondeterministicInitRule) CISeverity() lint.Severity

func (*NondeterministicInitRule) Check

func (r *NondeterministicInitRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*NondeterministicInitRule) Code

func (r *NondeterministicInitRule) Code() string

func (*NondeterministicInitRule) DefaultSeverity

func (r *NondeterministicInitRule) DefaultSeverity() lint.Severity

func (*NondeterministicInitRule) Description

func (r *NondeterministicInitRule) Description() string

func (*NondeterministicInitRule) DocURL

func (r *NondeterministicInitRule) DocURL() string

type PropsNotPassedRule

type PropsNotPassedRule struct{}

PropsNotPassedRule detects when props parameter is not passed to Setup.

func (*PropsNotPassedRule) CISeverity

func (r *PropsNotPassedRule) CISeverity() lint.Severity

func (*PropsNotPassedRule) Check

func (r *PropsNotPassedRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*PropsNotPassedRule) Code

func (r *PropsNotPassedRule) Code() string

func (*PropsNotPassedRule) DefaultSeverity

func (r *PropsNotPassedRule) DefaultSeverity() lint.Severity

func (*PropsNotPassedRule) Description

func (r *PropsNotPassedRule) Description() string

func (*PropsNotPassedRule) DocURL

func (r *PropsNotPassedRule) DocURL() string

type RawStringKeyRule

type RawStringKeyRule struct{}

RawStringKeyRule detects usage of raw string session keys.

func (*RawStringKeyRule) CISeverity

func (r *RawStringKeyRule) CISeverity() lint.Severity

func (*RawStringKeyRule) Check

func (r *RawStringKeyRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RawStringKeyRule) Code

func (r *RawStringKeyRule) Code() string

func (*RawStringKeyRule) DefaultSeverity

func (r *RawStringKeyRule) DefaultSeverity() lint.Severity

func (*RawStringKeyRule) Description

func (r *RawStringKeyRule) Description() string

func (*RawStringKeyRule) DocURL

func (r *RawStringKeyRule) DocURL() string

type RenderAllocRule

type RenderAllocRule struct{}

RenderAllocRule detects allocation inside render closure.

func (*RenderAllocRule) CISeverity

func (r *RenderAllocRule) CISeverity() lint.Severity

func (*RenderAllocRule) Check

func (r *RenderAllocRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RenderAllocRule) Code

func (r *RenderAllocRule) Code() string

func (*RenderAllocRule) DefaultSeverity

func (r *RenderAllocRule) DefaultSeverity() lint.Severity

func (*RenderAllocRule) Description

func (r *RenderAllocRule) Description() string

func (*RenderAllocRule) DocURL

func (r *RenderAllocRule) DocURL() string

type RenderBlockingIORule

type RenderBlockingIORule struct{}

RenderBlockingIORule detects blocking I/O in render closures.

func (*RenderBlockingIORule) CISeverity

func (r *RenderBlockingIORule) CISeverity() lint.Severity

func (*RenderBlockingIORule) Check

func (r *RenderBlockingIORule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RenderBlockingIORule) Code

func (r *RenderBlockingIORule) Code() string

func (*RenderBlockingIORule) DefaultSeverity

func (r *RenderBlockingIORule) DefaultSeverity() lint.Severity

func (*RenderBlockingIORule) Description

func (r *RenderBlockingIORule) Description() string

func (*RenderBlockingIORule) DocURL

func (r *RenderBlockingIORule) DocURL() string

type RenderGoroutineRule

type RenderGoroutineRule struct{}

RenderGoroutineRule detects goroutine spawning in render.

func (*RenderGoroutineRule) CISeverity

func (r *RenderGoroutineRule) CISeverity() lint.Severity

func (*RenderGoroutineRule) Check

func (r *RenderGoroutineRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RenderGoroutineRule) Code

func (r *RenderGoroutineRule) Code() string

func (*RenderGoroutineRule) DefaultSeverity

func (r *RenderGoroutineRule) DefaultSeverity() lint.Severity

func (*RenderGoroutineRule) Description

func (r *RenderGoroutineRule) Description() string

func (*RenderGoroutineRule) DocURL

func (r *RenderGoroutineRule) DocURL() string

type RenderNondeterministicRule

type RenderNondeterministicRule struct{}

RenderNondeterministicRule detects nondeterminism in render closures.

func (*RenderNondeterministicRule) CISeverity

func (r *RenderNondeterministicRule) CISeverity() lint.Severity

func (*RenderNondeterministicRule) Check

func (*RenderNondeterministicRule) Code

func (*RenderNondeterministicRule) DefaultSeverity

func (r *RenderNondeterministicRule) DefaultSeverity() lint.Severity

func (*RenderNondeterministicRule) Description

func (r *RenderNondeterministicRule) Description() string

func (*RenderNondeterministicRule) DocURL

func (r *RenderNondeterministicRule) DocURL() string

type RepeatedPropsGetRule

type RepeatedPropsGetRule struct{}

RepeatedPropsGetRule detects multiple props.Get() calls in render.

func (*RepeatedPropsGetRule) CISeverity

func (r *RepeatedPropsGetRule) CISeverity() lint.Severity

func (*RepeatedPropsGetRule) Check

func (r *RepeatedPropsGetRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RepeatedPropsGetRule) Code

func (r *RepeatedPropsGetRule) Code() string

func (*RepeatedPropsGetRule) DefaultSeverity

func (r *RepeatedPropsGetRule) DefaultSeverity() lint.Severity

func (*RepeatedPropsGetRule) Description

func (r *RepeatedPropsGetRule) Description() string

func (*RepeatedPropsGetRule) DocURL

func (r *RepeatedPropsGetRule) DocURL() string

type ResourceLoaderSignalWriteRule

type ResourceLoaderSignalWriteRule struct{}

ResourceLoaderSignalWriteRule detects reactive signal writes inside Resource loader functions. Resource loaders execute off the session loop and must not write reactive state directly.

func (*ResourceLoaderSignalWriteRule) CISeverity

func (*ResourceLoaderSignalWriteRule) Check

func (*ResourceLoaderSignalWriteRule) Code

func (*ResourceLoaderSignalWriteRule) DefaultSeverity

func (r *ResourceLoaderSignalWriteRule) DefaultSeverity() lint.Severity

func (*ResourceLoaderSignalWriteRule) Description

func (r *ResourceLoaderSignalWriteRule) Description() string

func (*ResourceLoaderSignalWriteRule) DocURL

type RoutesInternalBypassRule

type RoutesInternalBypassRule struct{}

RoutesInternalBypassRule prevents app/routes from bypassing internal/services.

func (*RoutesInternalBypassRule) CISeverity

func (r *RoutesInternalBypassRule) CISeverity() lint.Severity

func (*RoutesInternalBypassRule) Check

func (r *RoutesInternalBypassRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*RoutesInternalBypassRule) Code

func (r *RoutesInternalBypassRule) Code() string

func (*RoutesInternalBypassRule) DefaultSeverity

func (r *RoutesInternalBypassRule) DefaultSeverity() lint.Severity

func (*RoutesInternalBypassRule) Description

func (r *RoutesInternalBypassRule) Description() string

func (*RoutesInternalBypassRule) DocURL

func (r *RoutesInternalBypassRule) DocURL() string

type ServicesVangoImportRule

type ServicesVangoImportRule struct{}

ServicesVangoImportRule prevents framework coupling in internal/services.

func (*ServicesVangoImportRule) CISeverity

func (r *ServicesVangoImportRule) CISeverity() lint.Severity

func (*ServicesVangoImportRule) Check

func (r *ServicesVangoImportRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ServicesVangoImportRule) Code

func (r *ServicesVangoImportRule) Code() string

func (*ServicesVangoImportRule) DefaultSeverity

func (r *ServicesVangoImportRule) DefaultSeverity() lint.Severity

func (*ServicesVangoImportRule) Description

func (r *ServicesVangoImportRule) Description() string

func (*ServicesVangoImportRule) DocURL

func (r *ServicesVangoImportRule) DocURL() string

type SetupBlockingIORule

type SetupBlockingIORule struct{}

SetupBlockingIORule detects blocking I/O in Setup callbacks.

func (*SetupBlockingIORule) CISeverity

func (r *SetupBlockingIORule) CISeverity() lint.Severity

func (*SetupBlockingIORule) Check

func (r *SetupBlockingIORule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*SetupBlockingIORule) Code

func (r *SetupBlockingIORule) Code() string

func (*SetupBlockingIORule) DefaultSeverity

func (r *SetupBlockingIORule) DefaultSeverity() lint.Severity

func (*SetupBlockingIORule) Description

func (r *SetupBlockingIORule) Description() string

func (*SetupBlockingIORule) DocURL

func (r *SetupBlockingIORule) DocURL() string

type SetupGoroutineRule

type SetupGoroutineRule struct{}

SetupGoroutineRule detects goroutine spawning in Setup callbacks.

func (*SetupGoroutineRule) CISeverity

func (r *SetupGoroutineRule) CISeverity() lint.Severity

func (*SetupGoroutineRule) Check

func (r *SetupGoroutineRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*SetupGoroutineRule) Code

func (r *SetupGoroutineRule) Code() string

func (*SetupGoroutineRule) DefaultSeverity

func (r *SetupGoroutineRule) DefaultSeverity() lint.Severity

func (*SetupGoroutineRule) Description

func (r *SetupGoroutineRule) Description() string

func (*SetupGoroutineRule) DocURL

func (r *SetupGoroutineRule) DocURL() string

type SingletonRiskRule

type SingletonRiskRule struct{}

SingletonRiskRule detects Shared/Global primitives in parameterized components.

func (*SingletonRiskRule) CISeverity

func (r *SingletonRiskRule) CISeverity() lint.Severity

func (*SingletonRiskRule) Check

func (r *SingletonRiskRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*SingletonRiskRule) Code

func (r *SingletonRiskRule) Code() string

func (*SingletonRiskRule) DefaultSeverity

func (r *SingletonRiskRule) DefaultSeverity() lint.Severity

func (*SingletonRiskRule) Description

func (r *SingletonRiskRule) Description() string

func (*SingletonRiskRule) DocURL

func (r *SingletonRiskRule) DocURL() string

type StoresRoutesImportRule

type StoresRoutesImportRule struct{}

StoresRoutesImportRule prevents app/stores -> app/routes edges.

func (*StoresRoutesImportRule) CISeverity

func (r *StoresRoutesImportRule) CISeverity() lint.Severity

func (*StoresRoutesImportRule) Check

func (r *StoresRoutesImportRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*StoresRoutesImportRule) Code

func (r *StoresRoutesImportRule) Code() string

func (*StoresRoutesImportRule) DefaultSeverity

func (r *StoresRoutesImportRule) DefaultSeverity() lint.Severity

func (*StoresRoutesImportRule) Description

func (r *StoresRoutesImportRule) Description() string

func (*StoresRoutesImportRule) DocURL

func (r *StoresRoutesImportRule) DocURL() string

type ThinPageHandlerRule

type ThinPageHandlerRule struct{}

ThinPageHandlerRule enforces the "thin page handler" contract for app/routes handlers.

func (*ThinPageHandlerRule) CISeverity

func (r *ThinPageHandlerRule) CISeverity() lint.Severity

func (*ThinPageHandlerRule) Check

func (r *ThinPageHandlerRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ThinPageHandlerRule) Code

func (r *ThinPageHandlerRule) Code() string

func (*ThinPageHandlerRule) DefaultSeverity

func (r *ThinPageHandlerRule) DefaultSeverity() lint.Severity

func (*ThinPageHandlerRule) Description

func (r *ThinPageHandlerRule) Description() string

func (*ThinPageHandlerRule) DocURL

func (r *ThinPageHandlerRule) DocURL() string

type ValidatorAsyncRule

type ValidatorAsyncRule struct{}

ValidatorAsyncRule discourages async validators so validation remains pure and I/O-backed checks move into Action handlers.

func (*ValidatorAsyncRule) CISeverity

func (r *ValidatorAsyncRule) CISeverity() lint.Severity

func (*ValidatorAsyncRule) Check

func (r *ValidatorAsyncRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*ValidatorAsyncRule) Code

func (r *ValidatorAsyncRule) Code() string

func (*ValidatorAsyncRule) DefaultSeverity

func (r *ValidatorAsyncRule) DefaultSeverity() lint.Severity

func (*ValidatorAsyncRule) Description

func (r *ValidatorAsyncRule) Description() string

func (*ValidatorAsyncRule) DocURL

func (r *ValidatorAsyncRule) DocURL() string

type VariadicParamsRule

type VariadicParamsRule struct{}

VariadicParamsRule detects variadic parameters in Setup components.

func (*VariadicParamsRule) CISeverity

func (r *VariadicParamsRule) CISeverity() lint.Severity

func (*VariadicParamsRule) Check

func (r *VariadicParamsRule) Check(node ast.Node, ctx *lint.AnalysisContext)

func (*VariadicParamsRule) Code

func (r *VariadicParamsRule) Code() string

func (*VariadicParamsRule) DefaultSeverity

func (r *VariadicParamsRule) DefaultSeverity() lint.Severity

func (*VariadicParamsRule) Description

func (r *VariadicParamsRule) Description() string

func (*VariadicParamsRule) DocURL

func (r *VariadicParamsRule) DocURL() string

Jump to

Keyboard shortcuts

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