Skip to content

Consolidate .editorconfig files into one at the repository root - #8457

Merged
timtebeek merged 1 commit into
mainfrom
tim/add-editorconfig
Aug 11, 2026
Merged

Consolidate .editorconfig files into one at the repository root#8457
timtebeek merged 1 commit into
mainfrom
tim/add-editorconfig

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Replaces 22 identical per-directory .editorconfig files with a single one at the repository root, matching what rewrite-static-analysis does. Every one of those files declared root = true, so nothing above them could ever apply, and modules such as rewrite-scala had no coverage at all; the root file now covers all src/test and src/integTest Java sources uniformly.

Unlike rewrite-static-analysis, trailing whitespace is not trimmed under test sources, resources and the JS/Python fixture trees — this repository is the parser and formatter, so trailing whitespace is often the thing under test (AutoFormatTest.java alone has 257 lines ending in whitespace, and goldens such as META-INF/rewrite/recipes.csv and the gradle-wrapper checksums carry it deliberately). rewrite-java-tck keeps its existing file in place, since it ships its tests from src/main; it only drops root = true so the root settings reach it.

Every rule was verified with the editorconfig core CLI against representative files in each category.

Replaces 22 identical per-directory .editorconfig files with a single root
file. Each of those declared `root = true`, so nothing above them could ever
apply, and modules such as rewrite-scala had no coverage at all.

Trailing whitespace is not trimmed under test source sets, resources and the
JS/Python fixture trees, since this repository's fixtures and golden files
carry it deliberately.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Aug 11, 2026
@timtebeek
timtebeek merged commit 1cb8e2e into main Aug 11, 2026
1 check passed
@timtebeek
timtebeek deleted the tim/add-editorconfig branch August 11, 2026 18:24
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant