feat: add lint groups for standard convention bundles (#69)#71
Open
olavostauros wants to merge 1 commit into
Open
feat: add lint groups for standard convention bundles (#69)#71olavostauros wants to merge 1 commit into
olavostauros wants to merge 1 commit into
Conversation
Adds first-class lint groups/presets so repos can opt into convention bundles with a single @maintained-tool reference instead of enumerating every lint rule individually. Includes: - lib/lint-groups.sh — built-in group registry, expansion, and discoverability functions - lib/codebase-config.sh — source lint-groups.sh, expand @group references in codebase_configured_lint_rules(), support lint_exclude - .mise/tasks/lint/_default — show expanded group count in preamble; updated error hint to mention groups - .mise/tasks/lint/groups — new lint:groups discoverability task - test/lint/lint-groups/ — 17 BATS tests Closes KnickKnackLabs#69
olavostauros
force-pushed
the
feat/lint-groups
branch
from
June 25, 2026 16:31
f55d012 to
497b31d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class lint groups / presets so repos can opt into convention bundles with a single reference instead of enumerating every rule.
Fixes #69.
Syntax
Use
@group-namein the existing[_.codebase].lintarray:Exclude a rule from a group:
Add extra rules beyond the group:
Built-in groups
@maintained-toolFiles changed
lib/lint-groups.shlib/codebase-config.shcodebase_configured_lint_rules(), supportlint_exclude.mise/tasks/lint/_default.mise/tasks/lint/groupslint:groupsdiscoverability tasktest/lint/lint-groups/lint-groups.batsValidation
mise run test— 235/235 tests pass (17 new + 218 existing, zero regressions)mise run lint:groups— discoverability task worksmise run lint:groups --all— shows expanded rules per groupbash -non all modified files — cleangit diff --check— no whitespace errorsSelf-hosting
The codebase repo does not use
[_.codebase].lint, so self-hosting is trivially clean. A downstream test with a synthetic repo using@maintained-toolpasses all 9 rules.