Skip to content

Conversation

@MitchellGale
Copy link
Contributor

Description

Backports several spotless PRs to 2.x

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 2 commits August 22, 2023 09:33
…earch-project#1939)

* Spotless apply for datasources.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* ignore checkstyle for datasources

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
…ect#1940)

* Spotless apply for common directory.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Igoring checkstyle for common

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Spotless apply on string utils,

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Typo fix

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@MitchellGale MitchellGale force-pushed the Spotless_Backport_6_pt2 branch from 4db7c7e to 9ddd896 Compare August 22, 2023 16:34
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
@MitchellGale MitchellGale changed the title [Backport 2.x] [Spotless] Backport of #6, #7, #12 spotless PR [Backport 2.x] [Spotless] Backport of #6, #7 spotless PR Aug 22, 2023
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Merging #2012 (9ff3476) into 2.x (a85a142) will increase coverage by 0.00%.
The diff coverage is 70.68%.

@@            Coverage Diff            @@
##                2.x    #2012   +/-   ##
=========================================
  Coverage     97.51%   97.51%           
  Complexity     4658     4658           
=========================================
  Files           408      408           
  Lines         11931    11934    +3     
  Branches        831      830    -1     
=========================================
+ Hits          11634    11638    +4     
+ Misses          290      289    -1     
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.51% <70.68%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
...opensearch/sql/expression/ReferenceExpression.java 100.00% <ø> (ø)
...ources/exceptions/DataSourceNotFoundException.java 100.00% <ø> (ø)
...earch/sql/datasources/exceptions/ErrorMessage.java 0.00% <ø> (ø)
...model/transport/CreateDataSourceActionRequest.java 30.00% <0.00%> (+2.72%) ⬆️
...odel/transport/CreateDataSourceActionResponse.java 0.00% <ø> (ø)
...model/transport/DeleteDataSourceActionRequest.java 21.42% <0.00%> (+2.67%) ⬆️
...odel/transport/DeleteDataSourceActionResponse.java 0.00% <ø> (ø)
...es/model/transport/GetDataSourceActionRequest.java 30.00% <0.00%> (+2.72%) ⬆️
...s/model/transport/GetDataSourceActionResponse.java 0.00% <ø> (ø)
...model/transport/UpdateDataSourceActionRequest.java 30.00% <0.00%> (+2.72%) ⬆️
... and 14 more

Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Comment on lines 15 to 27
* Unquote any string with mark specified.
* @param text string
* @param mark quotation mark
* @return An unquoted string whose outer pair of (single/double/back-tick) quotes have been
* removed
*/
public static String unquote(String text, String mark) {
if (isQuoted(text, mark)) {
return text.substring(mark.length(), text.length() - mark.length());
}
return text;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert backporting breaking changes from #1206

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
acarbonetto
acarbonetto previously approved these changes Aug 22, 2023
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
MitchellGale and others added 2 commits August 22, 2023 13:42
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
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.

3 participants