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

Enable gofumpt and goimports in golangci-lint #1999

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

denik
Copy link
Contributor

@denik denik commented Dec 12, 2024

Changes

Enable gofumpt and goimports in golangci-lint and apply autofix.

This makes 'make fmt' redundant, will be cleaned up in follow up diff.

Tests

Existing tests.

@denik denik temporarily deployed to test-trigger-is December 12, 2024 08:56 — with GitHub Actions Inactive
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 1999
  • Commit SHA: 9e750b3200b9454208afb440ec6e872ef5450882

Checks will be approved automatically on success.

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/12292985384

@denik denik changed the title Enable gofumpt and goimports Enable gofumpt and goimports in golangci-lint Dec 12, 2024
Copy link
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

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

Can you also include updated VS Code settings to format with gofumpt?

module-path: github.com/databricks/cli
extra-rules: true
#goimports:
# local-prefixes: github.com/databricks/cli
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this superfluous?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a suggestion for a followup. If I do this here, it touches every file. We can decide if we want it and apply in follow-up PR.

@denik
Copy link
Contributor Author

denik commented Dec 12, 2024

Can you also include updated VS Code settings to format with gofumpt?

Will send follow up PR for this.

@denik denik enabled auto-merge December 12, 2024 09:07
@denik denik disabled auto-merge December 12, 2024 09:28
@denik denik merged commit 2e018cf into main Dec 12, 2024
10 checks passed
@denik denik deleted the denis.bilenko/gofumpt branch December 12, 2024 09:28
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