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

Run Spotless and exclude CheckStyle for server module #1380

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Oct 18, 2021

Signed-off-by: Owais Kazi owaiskazi19@gmail.com

Description

Applied Spotless to server module and excluded it from CheckStyle.

Issues Resolved

Part of #1362 and #974

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc 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.

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
@owaiskazi19 owaiskazi19 changed the title Run spotless and exclude CheckStyle on server module Run spotless and exclude CheckStyle for server module Oct 18, 2021
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 245e436

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 245e436

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 245e436

<!-- Intentionally doesn't have a package declaration to test logging
configuration of classes that aren't in packages. -->
<suppress files="test[/\\]framework[/\\]src[/\\]test[/\\]java[/\\]Dummy.java" checks="PackageDeclaration" />

<!-- Intentionally has long example curl commands to coincide with sibling Painless tests. -->
<suppress files="modules[/\\]lang-painless[/\\]src[/\\]test[/\\]java[/\\]org[/\\]opensearch[/\\]painless[/\\]ContextExampleTests.java" checks="LineLength" />

<!-- Exclude server to run checkstyle -->
<suppress files="server" checks="." />
Copy link
Member Author

Choose a reason for hiding this comment

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

Excluded server module to run CheckStyle

@@ -121,7 +121,6 @@ def projectPathsToExclude = [
':plugins:transport-nio',
':qa:die-with-dignity',
':rest-api-spec',
':server',
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed server module from excluded path to run Spotless

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. this definitely looks better. Tagging this comment for reviewer context.

@owaiskazi19 owaiskazi19 changed the title Run spotless and exclude CheckStyle for server module Run Spotless and exclude CheckStyle for server module Oct 18, 2021
@owaiskazi19
Copy link
Member Author

Can we start gradle check for this PR?

@tlfeng
Copy link
Collaborator

tlfeng commented Oct 18, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 245e436
Log 719

Reports 719

@dblock dblock merged commit 996d33a into opensearch-project:main Oct 19, 2021
@dblock dblock added the pending backport Identifies an issue or PR that still needs to be backported label Oct 19, 2021
@dblock
Copy link
Member

dblock commented Oct 19, 2021

We should backport this to 1.x or we risk having endless conflicts every time we backport anything after this change to 1.x.

owaiskazi19 added a commit to owaiskazi19/OpenSearch that referenced this pull request Oct 19, 2021
nknize pushed a commit that referenced this pull request Oct 20, 2021
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
@owaiskazi19 owaiskazi19 removed the pending backport Identifies an issue or PR that still needs to be backported label Nov 1, 2021
@owaiskazi19 owaiskazi19 added the v1.2.0 Issues related to version 1.2.0 label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.2.0 Issues related to version 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants