diffplug / diffplug/spotless

Inception for Maven

Open
#2,510 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

Hello,

working on a multitude of Maven projects in a larger, dated codebase. We would like to streamline the formatting with Spotless, but there are embedded SQL strings in the Java code that should be left untouched without having to write the `// spotless:off/on` comments everywhere.

The Gradle plugin has an "Inception" feature: https://github.com/diffplug/spotless/tree/main/plugin-gradle#inception-languages-within-languages-within, which allows special treatment of hunks of code captured by a specified regular expression.

Is this planned to be added to the Maven plugin as well? If so, is there an estimated time of arrival?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.