googleformatter-maven-plugin icon indicating copy to clipboard operation
googleformatter-maven-plugin copied to clipboard

format all files instead of just changed files

Open smsatmane opened this issue 4 years ago • 1 comments

Below configuration does not format all files. I want to format all files first time. <plugin> <groupId>com.theoryinpractise</groupId> <artifactId>googleformatter-maven-plugin</artifactId> <executions> <execution> <id>reformat-sources</id> <configuration> <includeStale>true</includeStale> <style>GOOGLE</style> <formatMain>true</formatMain> <formatTest>true</formatTest> <filterModified>true</filterModified> <skip>false</skip> <fixImports>false</fixImports> <maxLineLength>100</maxLineLength> </configuration> <goals> <goal>format</goal> </goals> <phase>process-sources</phase> </execution> </executions> </plugin>

smsatmane avatar Mar 12 '21 10:03 smsatmane

Long belated reply - only just saw these open issues (even if over a year late).

You should be able to do that by changing <filterModified>true</filterModified> to <filterModified>false</filterModified> - so that the plugin doesn't filter the changes down to the set of changed files.

talios avatar Sep 10 '22 05:09 talios