Documentation
¶
Index ¶
- Variables
- func Doctor(ctx context.Context, output io.Writer, provider, tokenEnv string) error
- func ExitCode(err error) int
- func ExitMessage(code int) string
- func ExitMessageFor(err error) string
- func NewRoot(lint LintFunc, version string) *cobra.Command
- type LintFunc
- type LookupEnv
- type Options
- type RawOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEnvFileLimit = errors.New("env file limit exceeded")
View Source
var ErrInvalidEnvFile = errors.New("invalid env file")
View Source
var ErrInvalidOptions = errors.New("invalid lint options")
Functions ¶
func Doctor ¶
Doctor checks local Git and credential presence. It never makes HTTP calls or prints token values, source, endpoint URLs, or repository content.
func ExitMessage ¶
func ExitMessageFor ¶ added in v0.4.0
ExitMessageFor renders a sanitized user-facing error message.
Types ¶
type LookupEnv ¶
func LayeredLookup ¶ added in v0.3.0
LayeredLookup gives an existing process setting precedence over file data.
type Options ¶
type Options struct {
Base, Head, Provider, Model, Rules, Out string
BaseURL, APIPath, AuthTokenEnv string
Credential string
CredentialResolved bool
Format report.Format
FailOn report.Threshold
Gate bool
RuleThreshold float64
RuleSeverity rules.Severity
RuleThresholdSet, RuleSeveritySet bool
Include, Exclude []string
Limits app.Limits
Metrics bool
Uncommitted bool
}
type RawOptions ¶
type RawOptions struct {
Base, Head, Provider, Model, Rules, Format, Out, FailOn, BlockOn string
Timeout, MaxConcurrency, BaseURL, APIPath, AuthTokenEnv string
RuleThreshold, RuleSeverity string
Include, Exclude []string
Metrics bool
Uncommitted bool
Changed map[string]bool
}
RawOptions contains only process-owned flag values. Changed distinguishes an explicit empty flag from an absent flag when environment values are present.
Click to show internal directories.
Click to hide internal directories.