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

format all files instead of just changed files #25

Open
smsatmane opened this issue Mar 12, 2021 · 1 comment
Open

format all files instead of just changed files #25

smsatmane opened this issue Mar 12, 2021 · 1 comment

Comments

@smsatmane
Copy link

smsatmane commented Mar 12, 2021

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>

@talios
Copy link
Owner

talios commented Sep 10, 2022

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.

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

2 participants