Skip to content

fix: remove stale exclude_paths init placeholder#211

Merged
zeitlinger merged 3 commits intomainfrom
codex/remove-stale-exclude-paths
Apr 23, 2026
Merged

fix: remove stale exclude_paths init placeholder#211
zeitlinger merged 3 commits intomainfrom
codex/remove-stale-exclude-paths

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

What changed

Removed the commented exclude_paths setting from generated flint.toml output and updated the init unit test plus e2e snapshot.

Why

exclude_paths is not a supported runtime config key. The actual setting is [settings].exclude, so the generated placeholder was misleading.

Validation

  • cargo test init::tests::generate_flint_toml_writes_skeleton
  • FLINT_CASES=general/init-rust cargo test cases
  • mise run lint:fix
  • push hook reran mise run lint:fix successfully

Note: mise emitted a local fake-asdf permission warning during lint runs, but the task exited successfully.

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger force-pushed the codex/remove-stale-exclude-paths branch from fe182fb to 0de0b1b Compare April 23, 2026 10:14
Copy link
Copy Markdown
Member Author

Updated the branch to also remove the stale exclude_paths line from the hidden .github/config/flint.toml idempotent fixture. Verified with a hidden-aware search: rg -n --hidden --glob '!target/**' --glob '!.git/**' "exclude_paths|exclude-paths|excludePaths|exclude paths" . now returns no matches.

@zeitlinger zeitlinger marked this pull request as ready for review April 23, 2026 10:35
@zeitlinger zeitlinger requested a review from a team as a code owner April 23, 2026 10:35
Copilot AI review requested due to automatic review settings April 23, 2026 10:35
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 removes a stale, misleading exclude_paths placeholder from generated flint.toml output and updates the associated unit/e2e snapshots to reflect the supported config key ([settings].exclude).

Changes:

  • Removed # exclude_paths = [] from the generated flint.toml skeleton.
  • Updated the init unit test assertion to stop expecting exclude_paths.
  • Updated e2e/init snapshots to match the new flint.toml content.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/init/generation.rs Stops emitting the unsupported exclude_paths placeholder in generated config.
src/init/mod.rs Updates init unit test to no longer assert the removed placeholder.
tests/cases/general/init-rust/test.toml Updates init snapshot expectation for generated .github/config/flint.toml.
tests/cases/general/init-idempotent/files/.github/config/flint.toml Updates idempotency fixture to match the new generated skeleton.

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

Comment thread src/init/generation.rs Outdated
@zeitlinger zeitlinger merged commit faf1db1 into main Apr 23, 2026
13 checks passed
@zeitlinger zeitlinger deleted the codex/remove-stale-exclude-paths branch April 23, 2026 13:11
@github-actions github-actions Bot mentioned this pull request Apr 23, 2026
zeitlinger pushed a commit that referenced this pull request Apr 23, 2026
### Added

- group linter renovate updates
([#209](#209))

### Fixed

- expand baseline guards for config and flint changes
([#215](#215))
- remove stale exclude_paths init placeholder
([#211](#211))
- baseline lint coverage changes
([#214](#214))
- align biome init and formatter ownership
([#205](#205))

### Other

- *(deps)* update dependency npm:renovate to v43.133.0
([#216](#216))
- *(deps)* update dependency npm:renovate to v43.132.2
([#212](#212))
- *(deps)* update taiki-e/install-action digest to 5f57d6c
([#204](#204))
- clarify that flint init works with existing mise.toml
([#208](#208))
- guard against overlapping fixer ownership
([#206](#206))

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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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