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

Upgrade formatter-maven-plugin to 2.17.1 #3512

Merged
merged 1 commit into from Feb 2, 2022

Conversation

jamesnetherton
Copy link
Contributor

No description provided.

@@ -97,6 +97,7 @@
<version>${formatter-maven-plugin.version}</version>
<configuration>
<configFile>${maven.multiModuleProjectDirectory}/tooling/eclipse-formatter-config.xml</configFile>
<lineEnding>KEEP</lineEnding>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the meaning of this change? Would the plugin keep Windows EOLs if end users enter them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would the plugin keep Windows EOLs if end users enter them?

Yes. On previous versions of the plugin, it blindly reformats everything with the users platform line ending. Resulting in the entire git source tree being modified.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh really? Keep is certainly better than user's platform. Is there no way to force Unix EOLs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no way to force Unix EOLs?

Yes, I guess it'd make more sense to use <lineEnding>LF</lindending>.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest commit forces Unix EOLs.

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

Successfully merging this pull request may close these issues.

None yet

3 participants