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

add goimports to the linter #1005

Merged
merged 1 commit into from
Sep 24, 2024
Merged

add goimports to the linter #1005

merged 1 commit into from
Sep 24, 2024

Conversation

jmhodges
Copy link
Contributor

@jmhodges jmhodges commented Sep 23, 2024

I noticed my editor was making import ordering changes in recent code
(like in GH-1000).

To avoid that kind of churn, this patch adds the fairly standard goimports tool to golangci-lint.

I then ran golangci-lint run --fix.

The comment changes are changes to godoc where the "#" format for
section headings was added in go 1.19 (see
https://tip.golang.org/doc/comment) and were created when running
--fix.

@jmhodges jmhodges force-pushed the goimports-in-ci branch 2 times, most recently from 109c119 to 18f42b6 Compare September 23, 2024 17:15
@jmhodges jmhodges marked this pull request as ready for review September 23, 2024 17:32
@jmhodges jmhodges requested review from a team as code owners September 23, 2024 17:32
@jmhodges jmhodges requested review from oskirby and removed request for a team September 23, 2024 17:32
I noticed my editor was making import ordering changes in recent code
(like in GH-1000).

To avoid that kind of churn, this patch adds the fairly standard `goimports`  tool to golangci-lint.

I then ran `golangci-lint run --fix`.

The comment changes are changes to godoc where the "#" format for
section headings was added in go 1.19 (see
<https://tip.golang.org/doc/comment>) and were created when running
`--fix`.
@jmhodges jmhodges merged commit 10dc3b8 into main Sep 24, 2024
14 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.

2 participants