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(fmt/linters): Add gofumpt formatter and linter #3331

Merged
merged 4 commits into from
Apr 29, 2024

Conversation

walldiss
Copy link
Member

This PR enables stricter formatting by integrating gofumpt, which imposes more rules than the default gofmt, allowing for improved code formatting. The results, visible in this PR, include minor yet significant cleanups such as the removal of extra new lines and the consistent declaration of variables and constants.Integrating gofumpt will be a valuable addition to our code formatting automation, ensuring higher code quality and consistency.Additionally, the PR updates the Makefile and linter rules to include this enhanced formatting and applies it to the codebase.

@walldiss walldiss self-assigned this Apr 22, 2024
@walldiss walldiss changed the title chore(fmt/linters): Add gofumpt formatter and formatter chore(fmt/linters): Add gofumpt formatter and linter Apr 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 65.21739% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 44.74%. Comparing base (2469e7a) to head (4852e30).
Report is 35 commits behind head on main.

Files Patch % Lines
nodebuilder/state/module.go 0.00% 2 Missing ⚠️
api/docgen/openrpc.go 0.00% 1 Missing ⚠️
cmd/auth.go 0.00% 1 Missing ⚠️
core/listener.go 0.00% 1 Missing ⚠️
das/options.go 0.00% 1 Missing ⚠️
libs/keystore/fs_keystore.go 66.66% 0 Missing and 1 partial ⚠️
nodebuilder/store.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3331      +/-   ##
==========================================
- Coverage   44.83%   44.74%   -0.10%     
==========================================
  Files         265      273       +8     
  Lines       14620    15203     +583     
==========================================
+ Hits         6555     6802     +247     
- Misses       7313     7621     +308     
- Partials      752      780      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Wondertan
Wondertan previously approved these changes Apr 26, 2024
@Wondertan
Copy link
Member

Actually there is a conflict

@walldiss walldiss merged commit e53e612 into celestiaorg:main Apr 29, 2024
27 checks passed
walldiss added a commit to walldiss/celestia-node that referenced this pull request May 7, 2024
This PR enables stricter formatting by integrating `gofumpt`, which
imposes more rules than the default gofmt, allowing for improved code
formatting. The results, visible in this PR, include minor yet
significant cleanups such as the removal of extra new lines and the
consistent declaration of variables and constants.Integrating `gofumpt`
will be a valuable addition to our code formatting automation, ensuring
higher code quality and consistency.Additionally, the PR updates the
Makefile and linter rules to include this enhanced formatting and
applies it to the codebase.

(cherry picked from commit e53e612)
walldiss added a commit to walldiss/celestia-node that referenced this pull request May 7, 2024
This PR enables stricter formatting by integrating `gofumpt`, which
imposes more rules than the default gofmt, allowing for improved code
formatting. The results, visible in this PR, include minor yet
significant cleanups such as the removal of extra new lines and the
consistent declaration of variables and constants.Integrating `gofumpt`
will be a valuable addition to our code formatting automation, ensuring
higher code quality and consistency.Additionally, the PR updates the
Makefile and linter rules to include this enhanced formatting and
applies it to the codebase.

(cherry picked from commit e53e612)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants