Skip to content

fix: resolve init rollout regressions#220

Merged
zeitlinger merged 1 commit intomainfrom
codex/fix-init-rollout-regressions
Apr 24, 2026
Merged

fix: resolve init rollout regressions#220
zeitlinger merged 1 commit intomainfrom
codex/fix-init-rollout-regressions

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • write generated rumdl and yamllint configs under FLINT_CONFIG_DIR
  • stop regenerating lint:pre-commit and keep non-linter tools above # Linters
  • make yaml-lint own YAML overlap for editorconfig-checker, matching rumdl for Markdown
  • install git hooks correctly from linked worktrees and update docs/tests for the rollout fixes

Verification

  • cargo test
  • FLINT_CASES=yaml-lint cargo test cases -- --nocapture
  • cargo test readme_linter_table_in_sync -- --nocapture
  • mise run lint:fix

Context

This bundles the init and ownership regressions found while migrating consumer repositories after v0.20.4, so the next patch release can be used for the remaining rollout PRs.

@zeitlinger zeitlinger force-pushed the codex/fix-init-rollout-regressions branch from b37b9fe to af6d29a Compare April 23, 2026 18:33
@zeitlinger zeitlinger marked this pull request as ready for review April 23, 2026 18:47
Copilot AI review requested due to automatic review settings April 23, 2026 18:47
@zeitlinger zeitlinger requested a review from a team as a code owner April 23, 2026 18:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes flint init rollout regressions by relocating generated linter configs into FLINT_CONFIG_DIR, refining how [tools] entries are grouped around # Linters, and improving hook installation behavior for linked worktrees.

Changes:

  • Write generated .rumdl.toml and .yamllint.yml under the flint config dir (e.g. .github/config) and update tests/cases accordingly.
  • Stop generating the lint:pre-commit task and update docs/tests to match.
  • Rework [tools] normalization to keep non-linter tools above # Linters and treat YAML as owned by yaml-lint (aligning with Markdown ownership by rumdl).

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/cases/general/init-rust/test.toml Updates expected init output and generated config contents/paths.
tests/cases/general/init-idempotent/files/.yamllint.yml Removes legacy root-level yamllint config fixture.
tests/cases/general/init-idempotent/files/.github/config/.yamllint.yml Adds new config-dir yamllint fixture with updated rules.
tests/cases/general/init-idempotent/files/.github/config/.rumdl.toml Adds new config-dir rumdl fixture.
src/registry/mod.rs Replaces toolchain grouping with linter_keys() for [tools] header grouping.
src/init/scaffold.rs Removes lint:pre-commit generation; uses repo-aware hook path resolution.
src/init/mod.rs Routes config generation/exclusions through FLINT_CONFIG_DIR; adds a normalization test.
src/init/generation.rs Updates grouping logic to use linter_keys() and adjusts TOML key decoration handling.
src/init/config_files.rs Moves rumdl/yamllint generation into config dir; expands ec-checker excludes to include YAML.
src/hook.rs Computes hook destination via git rev-parse --git-common-dir; adds a linked-worktree test.
README.md Removes documented lint:pre-commit task.
MIGRATION.md Updates init behavior description and removes hook-task guidance.
.github/agents/knowledge/design.md Documents updated YAML ownership and generated yamllint behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/hook.rs Outdated
Comment thread src/registry/mod.rs
Comment thread src/init/generation.rs Outdated
Comment thread src/init/mod.rs Outdated
Signed-off-by: Gregor Zeitlinger <[email protected]>
@zeitlinger zeitlinger force-pushed the codex/fix-init-rollout-regressions branch from af6d29a to 7adbea7 Compare April 24, 2026 05:26
@zeitlinger zeitlinger merged commit 2695201 into main Apr 24, 2026
13 checks passed
@zeitlinger zeitlinger deleted the codex/fix-init-rollout-regressions branch April 24, 2026 08:29
zeitlinger added a commit that referenced this pull request Apr 27, 2026
### Added

- add flint setup preflight migrations
([#233](#233))
- support managed linter configs and aqua-backed tool keys
([#228](#228))
- switch xmloxide to github backend
([#229](#229))
- add taplo formatter check
([#224](#224))
- *(init)* configure line length during init
([#218](#218))

### Fixed

- support renovate v43.136.3
([#223](#223))
- switch yaml-lint to ryl
([#226](#226))
- *(ruff)* install via github releases
([#227](#227))
- resolve init rollout regressions
([#220](#220))

### Other

- reduce fake-bin fixture coverage
([#240](#240))
- *(deps)* update dependency npm:renovate to v43.141.1
([#221](#221))
- guard fixture case groups
([#238](#238))
- *(deps)* update dependency grafana/flint to v0.20.4
([#235](#235))
- *(deps)* lock file maintenance
([#237](#237))
- *(deps)* update dependency mise to v2026.4.19
([#236](#236))
- *(deps)* update rust crate json5 to v1
([#232](#232))
- *(deps)* update taiki-e/install-action digest to 787505c
([#219](#219))
- *(deps)* update dependency grafana/flint to v0.20.3
([#225](#225))

> [!IMPORTANT]
> Close and reopen this PR to trigger CI checks.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gregor Zeitlinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants