-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 Java source files automatically #46745
Merged
pugnascotia
merged 22 commits into
elastic:master
from
pugnascotia:auto-format-java-source
Sep 26, 2019
Merged
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f6176bf
Format Java using google-java-format
pugnascotia e833d42
Add notes on handling file that do not format
pugnascotia 72274ca
Apply format plugin in the right place
pugnascotia a5eec34
Some big examples of reformatted code
pugnascotia 1194956
Switch to Spotless for code formatting
pugnascotia b5d2b34
Changes to make Spotless format consistently
pugnascotia d85a1d4
Only format projects on an accept list.
pugnascotia 5ef0dc4
Revert formatted outside of buildSrc
pugnascotia 06ab706
Format buildSrc directory
pugnascotia 5c1ee6a
Merge remote-tracking branch 'upstream/master' into auto-format-java-…
pugnascotia 6a32487
Reformat after merge
pugnascotia 4423991
Update checkstyle suppressions
pugnascotia 0c432a5
Add an option to enable paddedCell() from the gradle CLI
pugnascotia e1d27cd
Format java with with Eclipse JDT instead
pugnascotia b0d0d6d
Reformat buildSrc/
pugnascotia 7d69c76
More formatter settings tweaks
pugnascotia 8418c15
Revert formatted ahead of merge with master
pugnascotia 82c44b7
Merge remote-tracking branch 'upstream/master' into auto-format-java-…
pugnascotia 5b76280
Leave the formatting project list empty, so we can merge the Gradle c…
pugnascotia 2a2856b
Update CONTRIBUTING.md
pugnascotia 896cbe3
Update CONTRIBUTING.md
pugnascotia 7314c3a
Remove spotless command that the formatter already handles
pugnascotia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we link directly to the plugins ?
Alternatively @mark-vieira do you know a way to generate an IDEA configuration that would at least suggests users to install the plugin ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of any. I suspect something like installing a plugin is not something most folks want to happen when importing a project. There are likely security concerns there.