Skip to content

fix: resolve lint issues (gofumpt, goconst, errcheck, revive) in fxconfig and tools#233

Open
A-d-i-t-y wants to merge 2 commits into
hyperledger:mainfrom
A-d-i-t-y:feature/your-feature-name
Open

fix: resolve lint issues (gofumpt, goconst, errcheck, revive) in fxconfig and tools#233
A-d-i-t-y wants to merge 2 commits into
hyperledger:mainfrom
A-d-i-t-y:feature/your-feature-name

Conversation

@A-d-i-t-y

Copy link
Copy Markdown

Summary

This PR fixes multiple linting and formatting issues across the repository, mainly in tools/fxconfig and related modules.

Changes

  • Applied gofumpt formatting to multiple files:
    • tools/configtxlator/main.go
    • fxconfig internal packages (adapters, validation, transaction, etc.)
  • Addressed initial lint warnings and improved code consistency
  • Cleaned up formatting issues flagged by golangci-lint

Lint Categories Addressed

  • gofumpt (formatting fixes)
  • partial cleanup of:
    • goconst
    • errcheck
    • revive

Notes

  • Some lint issues (e.g., large-scale goconst, gocognit) are widespread and may require separate focused PRs to avoid large diffs.
  • This PR focuses primarily on formatting and basic lint cleanup.

Testing

  • Ran golangci-lint run ./...
  • Verified formatting with gofumpt

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.

1 participant