Documentation
¶
Overview ¶
Package application coordinates input selection, analysis and runtime ownership. It has no terminal, command parser, output destination or exit-code policy.
Index ¶
Constants ¶
const ( // LogLevelNone does not output any log output. LogLevelNone LogLevel = 0 // LogLevelVerbose shows verbose log output. This is equivalent to specifying -verbose option // to actionlint command. LogLevelVerbose = 1 // LogLevelDebug shows all log output including debug information. LogLevelDebug = 2 )
Variables ¶
This section is empty.
Functions ¶
func LegacyAnalysisError ¶
LegacyAnalysisError preserves the root-command single-file and batch error messages.
func LoadActionCatalog ¶
LoadActionCatalog installs the validated browser catalogue before analysis begins. Callers must complete bootstrap before starting concurrent sessions.
Types ¶
type Input ¶
type Input struct {
Kind InputKind
Paths []string
Directory string
Reader io.Reader
Name string
NormalizePath bool
AllowEmptyRepository bool
// contains filtered or unexported fields
}
Input describes where sources come from. AllowEmptyRepository implements the pre-commit convention; it still validates and records selected configuration.
type InputKind ¶
type InputKind uint8
InputKind distinguishes explicit empty file sets from repository discovery.
type Options ¶
type Options struct {
Runners runner.Options
Tools []tools.Registration
Resolver resolver.Resolver
WorkingDir, ConfigFile string
ConfigOverlays []repoconfig.Overlay
SkipProjectConfig bool
Analyzers []analyzer.Registration
ReadFile func(string) ([]byte, error)
OnConfigLoaded func(repoconfig.Report)
OnFilesSelected func([]string)
LoadScriptEngine func(context.Context, string) (analyzer.ScriptBackend, error)
Presets repoconfig.Presets
IgnorePatterns []string
LogWriter io.Writer
Verbose, Debug, LogSelection bool
LegacyErrors bool
// AllowConfigProcesses authorizes repository-selected executable invocations.
AllowConfigProcesses bool
}
Options selects configuration and analysis backends for one application session.
func ConfigureToolIntegrations ¶
ConfigureToolIntegrations replaces registered tools using declared contracts. occupiedTools identifies already-selected script-engine providers. Integrated analyzers are removed from standalone execution, making repeated calls safe.
type Result ¶
Result is independent of the engine's traversal and mutable session state. Rendering and application-specific exit policies consume the same findings.
type ToolRequirements ¶
type ToolRequirements = workspace.ExternalToolRequirements
func RequiredTools ¶
RequiredTools resolves configuration without parsing sources or loading runtimes.