Skip to content

Enable stylecheck linter #44

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

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .etc/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ linters:
disable:
- ineffassign
- gocritic
- stylecheck
- errcheck
- scopelint
- gosec
Expand Down
2 changes: 1 addition & 1 deletion dh/sidh/sike.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (c *KEM) encrypt(ctext []byte, rng io.Reader, pub *PublicKey, ptext []byte)
var ptextLen = len(ptext)
// c1 must be security level + 64 bits (see [SIKE] 1.4 and 4.3.3)
if ptextLen != (pub.params.KemSize + 8) {
return errors.New("Unsupported message length")
return errors.New("unsupported message length")
}

skA := NewPrivateKey(pub.params.ID, KeyVariantSidhA)
Expand Down
2 changes: 1 addition & 1 deletion internal/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func CheckIsErr(t testing.TB, err error, msg string) { t.Helper(); checkErr(t, e

// CheckPanic returns true if call to function 'f' caused panic
func CheckPanic(f func()) error {
var hasPaniced = errors.New("No panic detected")
var hasPaniced = errors.New("no panic detected")
defer func() {
if r := recover(); r != nil {
hasPaniced = nil
Expand Down