You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: return errors from registry constructors and introduce SemVersion pflag type
Registry constructors (check.NewRegistry, dependencies.NewRegistry,
action.NewRegistry) now return (*Registry, error) instead of panicking
via MustRegister, propagating registration errors to callers.
Replace the TargetVersion string + parsedTargetVersion *semver.Version
pair in the lint Command with a single version.SemVersion type that
implements pflag.Value, validating at flag-parse time.
Co-authored-by: Cursor <cursoragent@cursor.com>
// Registration is done explicitly in pkg/lint/command.go via check.NewRegistry(...)
858
+
//e.g. codeflare.NewRemovalCheck() is passed to check.NewRegistry()
857
859
```
858
860
859
861
**Note:** For complex checks that don't fit the builder pattern, you can still write checks without builders using `c.NewResult()` and manually fetching resources via `client.GetDataScienceCluster(ctx, target.Client)`.
0 commit comments