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

[Spotless] Adds new line at end of java files #1896

Merged

Conversation

MitchellGale
Copy link
Contributor

Description

Adds new line at end of files missing it. Uncommented spotless line for verification.

Note: line endings updated from /r/n to /n in common/src/main/java/org/opensearch/sql/common/grok/Converter.java

Related to:
#1888

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

MitchellGale and others added 12 commits July 19, 2023 23:32
Signed-off-by: Mitchell Gale <[email protected]>

Remove commented out spotless changes.

Signed-off-by: Mitchell Gale <[email protected]>

Adding Spotless to DEVELOPER_GUIDE.rst

Signed-off-by: Mitchell Gale <[email protected]>

Added Google Java format to spotless.

Signed-off-by: Mitchell Gale <[email protected]>

Update DEVELOPER_GUIDE.rst

Co-authored-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
[Spotless] Adds new line at end of java files
@MitchellGale MitchellGale requested a review from GumpacG as a code owner July 24, 2023 06:07
Yury-Fridlyand
Yury-Fridlyand previously approved these changes Jul 24, 2023
GumpacG
GumpacG previously approved these changes Jul 24, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #1896 (1b81183) into main (430d7a9) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #1896   +/-   ##
=========================================
  Coverage     97.42%   97.42%           
  Complexity     4647     4647           
=========================================
  Files           408      408           
  Lines         11526    11526           
  Branches        839      839           
=========================================
  Hits          11229    11229           
  Misses          290      290           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...ression/operator/arthmetic/ArithmeticFunction.java 100.00% <ø> (ø)
...g/opensearch/sql/expression/text/TextFunction.java 100.00% <ø> (ø)
...earch/sql/datasources/encryptor/EncryptorImpl.java 100.00% <ø> (ø)
...model/transport/CreateDataSourceActionRequest.java 27.27% <ø> (ø)
...odel/transport/CreateDataSourceActionResponse.java 0.00% <ø> (ø)
...model/transport/DeleteDataSourceActionRequest.java 18.75% <ø> (ø)
...odel/transport/DeleteDataSourceActionResponse.java 0.00% <ø> (ø)
...es/model/transport/GetDataSourceActionRequest.java 27.27% <ø> (ø)
...s/model/transport/GetDataSourceActionResponse.java 0.00% <ø> (ø)
...model/transport/UpdateDataSourceActionRequest.java 27.27% <ø> (ø)
... and 13 more

@GumpacG
Copy link
Collaborator

GumpacG commented Jul 27, 2023

Could you resolve conflicts?

@MitchellGale
Copy link
Contributor Author

Could you resolve conflicts?

Resolved.

@MitchellGale MitchellGale mentioned this pull request Aug 2, 2023
6 tasks
@acarbonetto acarbonetto merged commit d2de909 into opensearch-project:main Aug 3, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 3, 2023
* Adding spotless plugin to project build.gradle.

Signed-off-by: Mitchell Gale <[email protected]>

Remove commented out spotless changes.

Signed-off-by: Mitchell Gale <[email protected]>

Adding Spotless to DEVELOPER_GUIDE.rst

Signed-off-by: Mitchell Gale <[email protected]>

Added Google Java format to spotless.

Signed-off-by: Mitchell Gale <[email protected]>

Update DEVELOPER_GUIDE.rst

Co-authored-by: Yury-Fridlyand <[email protected]>

* Added apply false for spotless

Signed-off-by: Mitchell Gale <[email protected]>

* Adding ratchetFrom to build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* Adding license header to build.gradle for spotless.

Signed-off-by: Mitchell Gale <[email protected]>

* Uncommenting all changes to build.gradle for spotless.

Signed-off-by: Mitchell Gale <[email protected]>

* Commented out spotless checks.

Signed-off-by: Mitchell Gale <[email protected]>

* Add specific version for java format spotless (1.17.0)

Signed-off-by: Mitchell Gale <[email protected]>

* Add spotless end with new line check.

Signed-off-by: Mitchell Gale <[email protected]>

* Add new line at end of files missing lines.

Signed-off-by: Mitchell Gale <[email protected]>

* Removed include path

Signed-off-by: Mitchell Gale <[email protected]>

* Correcting ending new line for QueryExemplars.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
(cherry picked from commit d2de909)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@acarbonetto acarbonetto deleted the integ/sl_endWithNewLine branch August 3, 2023 00:20
MitchellGale added a commit to Bit-Quill/opensearch-project-sql that referenced this pull request Aug 3, 2023
* Adding spotless plugin to project build.gradle.

Signed-off-by: Mitchell Gale <[email protected]>

Remove commented out spotless changes.

Signed-off-by: Mitchell Gale <[email protected]>

Adding Spotless to DEVELOPER_GUIDE.rst

Signed-off-by: Mitchell Gale <[email protected]>

Added Google Java format to spotless.

Signed-off-by: Mitchell Gale <[email protected]>

Update DEVELOPER_GUIDE.rst

Co-authored-by: Yury-Fridlyand <[email protected]>

* Added apply false for spotless

Signed-off-by: Mitchell Gale <[email protected]>

* Adding ratchetFrom to build.gradle

Signed-off-by: Mitchell Gale <[email protected]>

* Adding license header to build.gradle for spotless.

Signed-off-by: Mitchell Gale <[email protected]>

* Uncommenting all changes to build.gradle for spotless.

Signed-off-by: Mitchell Gale <[email protected]>

* Commented out spotless checks.

Signed-off-by: Mitchell Gale <[email protected]>

* Add specific version for java format spotless (1.17.0)

Signed-off-by: Mitchell Gale <[email protected]>

* Add spotless end with new line check.

Signed-off-by: Mitchell Gale <[email protected]>

* Add new line at end of files missing lines.

Signed-off-by: Mitchell Gale <[email protected]>

* Removed include path

Signed-off-by: Mitchell Gale <[email protected]>

* Correcting ending new line for QueryExemplars.

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
acarbonetto pushed a commit that referenced this pull request Aug 4, 2023
* Adding spotless plugin to project build.gradle.



Remove commented out spotless changes.



Adding Spotless to DEVELOPER_GUIDE.rst



Added Google Java format to spotless.



Update DEVELOPER_GUIDE.rst



* Added apply false for spotless



* Adding ratchetFrom to build.gradle



* Adding license header to build.gradle for spotless.



* Uncommenting all changes to build.gradle for spotless.



* Commented out spotless checks.



* Add specific version for java format spotless (1.17.0)



* Add spotless end with new line check.



* Add new line at end of files missing lines.



* Removed include path



* Correcting ending new line for QueryExemplars.



---------




(cherry picked from commit d2de909)

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yury-Fridlyand <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants