Versions in this module Expand all Collapse all v0 v0.19.2 May 1, 2026 v0.19.1 Apr 30, 2026 v0.19.0 Apr 24, 2026 Changes in this version + var ErrNoAutoFix = errors.New("no auto-fix available for this check") + type Check interface + Check func(ctx *CheckContext) ([]Finding, error) + Description func() string + Fix func(ctx *CheckContext, findings []Finding) error + Group func() Group + Name func() string + func AllChecks() []Check + type CheckContext struct + Config *config.Config + ConfigFile []byte + ConfigFilename string + LoadErr error + LoadResult *config.LoadResult + ProjectDir string + PythonFiles map[string]*ParsedFile + PythonPath string + func (cc *CheckContext) Close() + type CheckResult struct + Check Check + Err error + Findings []Finding + Fixed bool + type ConfigDeprecatedFieldsCheck struct + func (c *ConfigDeprecatedFieldsCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *ConfigDeprecatedFieldsCheck) Description() string + func (c *ConfigDeprecatedFieldsCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *ConfigDeprecatedFieldsCheck) Group() Group + func (c *ConfigDeprecatedFieldsCheck) Name() string + type ConfigParseCheck struct + func (c *ConfigParseCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *ConfigParseCheck) Description() string + func (c *ConfigParseCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *ConfigParseCheck) Group() Group + func (c *ConfigParseCheck) Name() string + type ConfigPredictRefCheck struct + func (c *ConfigPredictRefCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *ConfigPredictRefCheck) Description() string + func (c *ConfigPredictRefCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *ConfigPredictRefCheck) Group() Group + func (c *ConfigPredictRefCheck) Name() string + type ConfigSchemaCheck struct + func (c *ConfigSchemaCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *ConfigSchemaCheck) Description() string + func (c *ConfigSchemaCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *ConfigSchemaCheck) Group() Group + func (c *ConfigSchemaCheck) Name() string + type DeprecatedImportsCheck struct + func (c *DeprecatedImportsCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *DeprecatedImportsCheck) Description() string + func (c *DeprecatedImportsCheck) Fix(ctx *CheckContext, findings []Finding) error + func (c *DeprecatedImportsCheck) Group() Group + func (c *DeprecatedImportsCheck) Name() string + type DockerCheck struct + func (c *DockerCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *DockerCheck) Description() string + func (c *DockerCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *DockerCheck) Group() Group + func (c *DockerCheck) Name() string + type Finding struct + File string + Line int + Message string + Remediation string + Severity Severity + type Group string + const GroupConfig + const GroupEnvironment + const GroupPython + type MissingTypeAnnotationsCheck struct + func (c *MissingTypeAnnotationsCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *MissingTypeAnnotationsCheck) Description() string + func (c *MissingTypeAnnotationsCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *MissingTypeAnnotationsCheck) Group() Group + func (c *MissingTypeAnnotationsCheck) Name() string + type ParsedFile struct + Imports *schema.ImportContext + Path string + Source []byte + Tree *sitter.Tree + type PydanticBaseModelCheck struct + func (c *PydanticBaseModelCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *PydanticBaseModelCheck) Description() string + func (c *PydanticBaseModelCheck) Fix(ctx *CheckContext, findings []Finding) error + func (c *PydanticBaseModelCheck) Group() Group + func (c *PydanticBaseModelCheck) Name() string + type PythonVersionCheck struct + func (c *PythonVersionCheck) Check(ctx *CheckContext) ([]Finding, error) + func (c *PythonVersionCheck) Description() string + func (c *PythonVersionCheck) Fix(_ *CheckContext, _ []Finding) error + func (c *PythonVersionCheck) Group() Group + func (c *PythonVersionCheck) Name() string + type Result struct + Results []CheckResult + func Run(ctx context.Context, opts RunOptions, checks []Check) (*Result, error) + func (r *Result) HasErrors() bool + func (r *Result) HasFixableErrors() bool + type RunOptions struct + ConfigFilename string + Fix bool + ProjectDir string + type Severity int + const SeverityError + const SeverityInfo + const SeverityWarning + func (s Severity) String() string