feat: add preset configuration system - #259
Conversation
Presets let users write `preset: CustomResource` in their config to get a curated set of linters without manual enable/disable. Each preset is a named list of linter names; user enable/disable always overrides. Two built-in presets: - BuiltIn: the 21 current default linters (no behavior change) - CustomResource: 24 linters tuned for CRD types (adds maxlength, minlength, statussubresource, statusoptional; removes nonpointerstructs) Fork maintainers register custom presets by calling presets.DefaultRegistry().Register() in init() and blank-importing their package — same pattern as custom linters.
|
Welcome @qJkee! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: qJkee The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
Presets let users write
preset: CustomResourcein their config to get a curated set of linters without manual enable/disable. Each preset is a named list of linter names; user enable/disable always overrides.Two built-in presets:
Fork maintainers register custom presets by calling presets.DefaultRegistry().Register() in init() and blank-importing their package — same pattern as custom linters.
Fixes #255