Skip to content

Conversation

@NikSquared
Copy link
Collaborator

This commit adds an explicit golangci-lint configuration that simply matches the default linters previously in use, and then fixes all current linter findings.

Aside from tweaking error message strings, this commit introduces one externally visible behavior change: PEM data generated from PKCS#12 files now correctly identifies private key blocks as RSA PRIVATE KEY or EC PRIVATE KEY, whereas previously it generated invalid PRIVATE KEY blocks with non-PKCS#8 data.

This commit lays the groundwork for more aggressive linting in the future, and identifies some additional issues via TODOs.

This commit adds an explicit `golangci-lint` configuration that
simply matches the default linters previously in use, and then
fixes all current linter findings.

Aside from tweaking error message strings, this commit introduces
one externally visible behavior change: PEM data generated from
PKCS#12 files now correctly identifies private key blocks as
`RSA PRIVATE KEY` or `EC PRIVATE KEY`, whereas previously it
generated invalid `PRIVATE KEY` blocks with non-PKCS#8 data.

This commit lays the groundwork for more aggressive linting in the
future, and identifies some additional issues via TODOs.
@NikSquared NikSquared requested a review from a team as a code owner July 24, 2025 17:05
@NikSquared NikSquared merged commit 01e67d4 into master Jul 25, 2025
4 checks passed
@NikSquared NikSquared deleted the nunger.fix-current-linter-errors branch July 25, 2025 15:03
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