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

all: formatting code with golangci-lint #321

Merged
merged 3 commits into from
Mar 4, 2022

Conversation

armfazh
Copy link
Contributor

@armfazh armfazh commented Mar 3, 2022

enables two linters that automatically format code using

$ make lint-fix

Changes:

  • dbca74c Linking crypto hashes everywhere is needed.
  • 3109fbe Moving file for tests to testdata folder.
  • 3aa1ced Formatting code with linter.

@armfazh armfazh added the cosmetic readability an cleanliness of code label Mar 3, 2022
@armfazh armfazh requested a review from bwesterb March 3, 2022 23:32
@armfazh armfazh self-assigned this Mar 3, 2022
@armfazh armfazh force-pushed the formatCode branch 2 times, most recently from 8f6adda to 73cfba2 Compare March 4, 2022 00:10
Copy link
Contributor

@Lekensteyn Lekensteyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some open questions about the crypto/sha256 and crypto/sha512 imports where an import comment was dropped. Changes look reasonable in any case, but you might want to update the commit message with the kind of changes (moved json file to testdata directory, formatting changes using <whatever command you used>) such that it can be reproduced.

ecc/bls12381/g1.go Show resolved Hide resolved
blindsign/blindrsa/blindrsa_test.go Show resolved Hide resolved
Code formatted after resolving issues reported by
  $ make lint
some of them were automatically fixed by running.
  $ make lint-fix
@armfazh armfazh merged commit 65bed83 into cloudflare:master Mar 4, 2022
@armfazh armfazh deleted the formatCode branch March 4, 2022 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic readability an cleanliness of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants