GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixes #2938 : detect indented wildcard and module imports by mirkoalicastro · Pull Request #2939 · diffplug/spotless

Conversation

@mirkoalicastro

@mirkoalicastro mirkoalicastro commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Both ForbidWildcardImportsStep and ForbidModuleImportsStep anchored their regex with ^import, so leading whitespace (valid Java) escaped the lint.

Fixes #2938

(I had to re-trigger the CI pipeline with an empty commit since I got a Failed to provision P2 dependencies issue)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mirkoalicastro
mirkoalicastro force-pushed the fix/forbid-imports-leading-whitespace branch 2 times, most recently from c55e60f to c466ede Compare May 20, 2026 16:18
@mirkoalicastro

mirkoalicastro commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

@nedtwigg getting some "Failed to provision P2 dependencies" more and more often 😔

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Pankraz76
Pankraz76 approved these changes May 23, 2026
View reviewed changes
Comment thread testlib/src/test/java/com/diffplug/spotless/java/ForbidModuleImportsStepTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread testlib/src/test/java/com/diffplug/spotless/java/ForbidModuleImportsStepTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

mirkoalicastro added 3 commits May 23, 2026 22:58
@mirkoalicastro
Fixes diffplug#2938 : detect indented wildcard and module imports
228d42f
@mirkoalicastro
Update changelog
0e5bcac
@mirkoalicastro
ci retrigger
3954f6a
@mirkoalicastro
mirkoalicastro force-pushed the fix/forbid-imports-leading-whitespace branch from c466ede to 3954f6a Compare May 23, 2026 20:59
@nedtwigg
nedtwigg merged commit 66dae19 into diffplug:main May 26, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@Pankraz76 Pankraz76 Pankraz76 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ForbidWildcardImports misses indented import statements

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mirkoalicastro @Pankraz76 @nedtwigg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.