Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + func FormatDiagnostics(diags []Diagnostic) string + type AlwaysTrueRule struct + func (r *AlwaysTrueRule) Check(info *FileInfo) []Diagnostic + func (r *AlwaysTrueRule) Name() string + type CallGraph struct + Edges []CallGraphEdge + Nodes []CallGraphNode + type CallGraphEdge struct + From string + Line int + Script string + To string + Type string + type CallGraphNode struct + Name string + Type string + type CyclomaticComplexityRule struct + MaxComplexity int + func (r *CyclomaticComplexityRule) Check(info *FileInfo) []Diagnostic + func (r *CyclomaticComplexityRule) Name() string + type DeadCodeRule struct + func (r *DeadCodeRule) Check(info *FileInfo) []Diagnostic + func (r *DeadCodeRule) Name() string + type Diagnostic struct + Line int + Message string + Rule string + Script string + Severity Severity + func (d Diagnostic) String() string + type DuplicateAnimationRule struct + func (r *DuplicateAnimationRule) Check(info *FileInfo) []Diagnostic + func (r *DuplicateAnimationRule) Name() string + type DuplicateIfRule struct + func (r *DuplicateIfRule) Check(info *FileInfo) []Diagnostic + func (r *DuplicateIfRule) Name() string + type EmptyFunctionRule struct + func (r *EmptyFunctionRule) Check(info *FileInfo) []Diagnostic + func (r *EmptyFunctionRule) Name() string + type FileInfo struct + AlwaysTrueLines []decompiledHit + COB *scripting.COB + DeadCodeLines []decompiledHit + DecompiledLines []string + DuplicateAnimLines []decompiledHit + DuplicateIfLines []decompiledHit + EmptyFuncLines []decompiledHit + Graph CallGraph + IsDecompiled bool + PieceDeclLine int + RawSignalLines []decompiledHit + ScriptNames map[string]bool + ScriptParamCount map[string]int + ScriptStartLines map[string]int + Scripts []ScriptInfo + SleepOnlyGuards []decompiledHit + SpeedZeroLines []decompiledHit + StaticDeclLine int + UnnamedGlobals bool + type InvalidCallRule struct + func (r *InvalidCallRule) Check(info *FileInfo) []Diagnostic + func (r *InvalidCallRule) Name() string + type Linter struct + func New() *Linter + func (l *Linter) GetCallGraph(cob *scripting.COB) *CallGraph + func (l *Linter) GetCallGraphFromSource(cob *scripting.COB, sourceText string) *CallGraph + func (l *Linter) Lint(cob *scripting.COB) []Diagnostic + func (l *Linter) LintSource(cob *scripting.COB, sourceText string) []Diagnostic + type LongFunctionRule struct + MaxLines int + func (r *LongFunctionRule) Check(info *FileInfo) []Diagnostic + func (r *LongFunctionRule) Name() string + type RawSignalRule struct + func (r *RawSignalRule) Check(info *FileInfo) []Diagnostic + func (r *RawSignalRule) Name() string + type RecursiveCallRule struct + func (r *RecursiveCallRule) Check(info *FileInfo) []Diagnostic + func (r *RecursiveCallRule) Name() string + type Rule interface + Check func(info *FileInfo) []Diagnostic + Name func() string + type ScriptInfo struct + CalledScripts []scriptCall + CyclomaticComplexity int + Index int + Instructions []scripting.Instruction + LineCount int + LocalCount int + Name string + UsedLocals map[int]bool + UsedPieces map[int]bool + UsedStatics map[int]bool + type Severity int + const Error + const Info + const Warning + func (s Severity) String() string + type SignalNeverSignalledRule struct + func (r *SignalNeverSignalledRule) Check(info *FileInfo) []Diagnostic + func (r *SignalNeverSignalledRule) Name() string + type SleepOnlyGuardRule struct + func (r *SleepOnlyGuardRule) Check(info *FileInfo) []Diagnostic + func (r *SleepOnlyGuardRule) Name() string + type SpeedZeroRule struct + func (r *SpeedZeroRule) Check(info *FileInfo) []Diagnostic + func (r *SpeedZeroRule) Name() string + type UnnamedGlobalRule struct + func (r *UnnamedGlobalRule) Check(info *FileInfo) []Diagnostic + func (r *UnnamedGlobalRule) Name() string + type UnusedLocalRule struct + func (r *UnusedLocalRule) Check(info *FileInfo) []Diagnostic + func (r *UnusedLocalRule) Name() string + type UnusedPieceRule struct + func (r *UnusedPieceRule) Check(info *FileInfo) []Diagnostic + func (r *UnusedPieceRule) Name() string + type UnusedStaticRule struct + func (r *UnusedStaticRule) Check(info *FileInfo) []Diagnostic + func (r *UnusedStaticRule) Name() string