Inception for Maven
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system, tooling
Research direction
The issue links the Gradle plugin's Inception documentation; start there to understand the existing behavior, then inspect the Maven plugin's configuration and test entry points. Define how Maven users would identify embedded SQL regions without repeated spotless comments. Done means the Maven plugin supports equivalent configurable treatment and has coverage for Java code containing SQL strings.
Written by the indexing model from the issue text.
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
- Dominant language
- Java
- Stars
- 5.7k
- Forks
- 560
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 43
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/spotless
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
All issues in diffplug/spotless
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1152 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·