Skip to content

ci(fmt): add imports-formatter check ci - #880

Merged
AlexStocks merged 4 commits into
apache:mainfrom
marsevilspirit:ci/imports-formatter
Aug 3, 2025
Merged

ci(fmt): add imports-formatter check ci#880
AlexStocks merged 4 commits into
apache:mainfrom
marsevilspirit:ci/imports-formatter

Conversation

@marsevilspirit

Copy link
Copy Markdown
Member

Add imports-formatter check ci.

@marsevilspirit
marsevilspirit marked this pull request as draft August 2, 2025 12:07
@marsevilspirit
marsevilspirit marked this pull request as ready for review August 2, 2025 12:13
@AlexStocks
AlexStocks requested a review from Copilot August 3, 2025 03:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds imports-formatter check to the CI pipeline by reorganizing import statements across Go files to follow a standardized grouping convention.

  • Restructures all Go import statements into three distinct groups separated by blank lines
  • Groups standard library imports, third-party imports, and local project imports according to Go best practices
  • Maintains existing functionality while improving code consistency and readability

greet "github.com/apache/dubbo-go-samples/java_interop/non-protobuf-triple/proto"
)

// java_math "github.com/dubbogo/gost/math/big"

Copilot AI Aug 3, 2025

Copy link

Choose a reason for hiding this comment

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

Commented-out import should be removed rather than kept as a comment. If it's needed for future use, consider using a proper TODO comment or removing it entirely.

Suggested change
// java_math "github.com/dubbogo/gost/math/big"

Copilot uses AI. Check for mistakes.
@AlexStocks
AlexStocks merged commit 8c2aef2 into apache:main Aug 3, 2025
2 checks passed
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