Skip to content

Conversation

@cbandy
Copy link
Member

@cbandy cbandy commented Nov 5, 2024

This is part of the bugs preset of golangci-lint. I want to enable this entire preset eventually.

The check-error-free-encoding setting is recommended upstream and simplifies code where json.Marshal is known to succeed.

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • Testing enhancement
  • Other

This is part of the "bugs" preset of golangci-lint.
The "check-error-free-encoding" setting is recommended upstream.
These are ignored by golangci-lint by default.
@cbandy
Copy link
Member Author

cbandy commented Nov 5, 2024

Some recent results compared to the ones in this PR.

@cbandy cbandy merged commit e2fa7f2 into CrunchyData:main Nov 6, 2024
16 checks passed
@cbandy cbandy deleted the errchkjson branch November 6, 2024 17:52
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