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

chore: Fix makefile linting targets #2377

Merged
merged 2 commits into from
Apr 12, 2023
Merged

chore: Fix makefile linting targets #2377

merged 2 commits into from
Apr 12, 2023

Conversation

glnro
Copy link
Contributor

@glnro glnro commented Apr 6, 2023

Update Makefile linting targets to be consistent with the Cosmos SDK

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to update .golangci.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What updates would you want to make to .golangci.yml ? This PR is specific to updating the makefile linting targets, not changing anything about golangci configuration.

Makefile Show resolved Hide resolved
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
@$(golangci_lint_cmd) run --timeout=10m

lint-fix:
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the difference between make lint-fix and make format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make lint-fix is just running the golanci linter, while make format is running gofumpt on everything that's not excluded by -not -path, and then it runs golanci linter afterwards.

@mpoke mpoke merged commit 53397fa into main Apr 12, 2023
@mpoke mpoke deleted the glnro/fix-linting branch April 12, 2023 10:38
mergify bot pushed a commit that referenced this pull request Apr 12, 2023
mpoke pushed a commit that referenced this pull request Apr 12, 2023
(cherry picked from commit 53397fa)

Co-authored-by: lg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants