Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class propeties formatter one line #2263

Open
xinyu162 opened this issue Sep 17, 2024 · 1 comment
Open

class propeties formatter one line #2263

xinyu162 opened this issue Sep 17, 2024 · 1 comment

Comments

@xinyu162
Copy link

I use IDEA :

one class properties doc not one line :
like this :
image

use spotless conf :

       <plugin>
            <groupId>com.diffplug.spotless</groupId>
            <artifactId>spotless-maven-plugin</artifactId>
            <version>2.30.0</version>
            <configuration>
                <java>
                    <googleJavaFormat>
                        <version>1.7</version>
                        <style>AOSP</style>
                    </googleJavaFormat>     
                    <removeUnusedImports/>
                    <formatAnnotations/>
                    <importOrder>
                        <order>,javax,java,\#</order>
                    </importOrder>

                    <!--<indent>-->
                    <!--    <tabs>true</tabs>-->
                    <!--    <spacesPerTab>2</spacesPerTab>-->
                    <!--</indent>-->
                    <!--<trimTrailingWhitespace/>-->
                    <endWithNewline/>
                </java>
            </configuration>
            <executions>
                <execution>
                    <id>spotless-check</id>
                    <phase>validate</phase>
                    <goals>
                        <goal>apply</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

spotless apply formatter get

image

but I want , not formatter one line doc common ,

wath can I do ?

@xinyu162
Copy link
Author

I use jdk 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant