Fixes #2938 : detect indented wildcard and module imports by mirkoalicastro · Pull Request #2939 · diffplug/spotless (original) (raw)
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)