talios / googleformatter-maven-plugin

Plugin for the Apache Maven build system to reformat source files.
Apache License 2.0
49 stars 10 forks source link

Need to know what is the offending file for sorting imports #27

Open gustavonmartins opened 3 years ago

gustavonmartins commented 3 years ago

I have asked this plugin to reorganize my imports with the following setting:

<plugin>
                <groupId>com.theoryinpractise</groupId>
                <artifactId>googleformatter-maven-plugin</artifactId>
                <version>1.7.3</version>
                <executions>
                    <execution>
                        <id>reformat-sources</id>
                        <configuration>
                            <includeStale>false</includeStale>
                            <style>GOOGLE</style>
                            <formatMain>true</formatMain>
                            <formatTest>true</formatTest>
                            <filterModified>false</filterModified>
                            <skip>false</skip>
                            <fixImports>true</fixImports>
                        </configuration>
                        <goals>
                            <goal>format</goal>
                        </goals>
                        <phase>process-sources</phase>
                    </execution>
                </executions>
 </plugin>

However, during the scan, I get the following error:

error: Imports not contiguous (perhaps a comment separates them?)

I am trying to find the file which is generating this conflict, but I have 1100 source files and am having a hard time finding it, because the plugin doesnt tell me which specific file is causing that.

Is it possible for you to list the offending files? That would be great!

Thank you!