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

Golint vet errcheck on ProtonMail fork #32

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

zugzwang
Copy link
Contributor

@zugzwang zugzwang commented Aug 29, 2019

This branch contains a better linted crypto package with golint, vet, errcheck, deadcode, etc.

  • Export functions, variables, methods, properties with initialisms are not corrected in order to preserve the API.
  • Add or correct comments globally.
  • Fix some shadowed declarations, missing or ghost error checks.

@zugzwang zugzwang mentioned this pull request Aug 29, 2019
Halfway through

Halfway through

Finished first pass

Solving tests.

Relaxing a bit on useless comments, but frowning.

Fix comment

Linted openpgp/packet, at least some of it

Reverting ID -> Id

Reverting Fingerprint -> FingerPrint

Solving tests

Relaxing on some useless comment and reverting Fingerprint -> FingerPrint

Missing parenthesis

Corrected exported object comments globally
@zugzwang zugzwang force-pushed the golint-vet-errcheck-protonmail-fork branch from 66d0d73 to 12366c5 Compare August 30, 2019 10:27
openpgp/clearsign/clearsign.go Outdated Show resolved Hide resolved
openpgp/end_to_end_test.go Outdated Show resolved Hide resolved
openpgp/packet/signature.go Outdated Show resolved Hide resolved
openpgp/internal/algorithm/cipher.go Outdated Show resolved Hide resolved
openpgp/packet/signature.go Outdated Show resolved Hide resolved
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