Skip to content

Commit cb02664

Browse files
authored
Merge pull request #1429 from smallstep/herman/fix-some-linter-issues
Fix linter issues by updating linters and ignoring some issues
2 parents dbff97a + cdb6e01 commit cb02664

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

cmd/step/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func newApp(stdout, stderr io.Writer) *cli.App {
139139
return plugin.Run(ctx, file)
140140
}
141141
if u := plugin.GetURL(name); u != "" {
142-
//nolint:stylecheck // this is a top level error - capitalization is ok
142+
//nolint:staticcheck // this is a top level error - capitalization is ok
143143
return fmt.Errorf("The plugin %q was not found on this system.\nDownload it from %s", name, u)
144144
}
145145
return cli.ShowCommandHelp(ctx, name)

command/ca/provisioner/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func addAction(ctx *cli.Context) (err error) {
385385
Ssh: &linkedca.SSHClaims{
386386
UserDurations: &linkedca.Durations{},
387387
HostDurations: &linkedca.Durations{},
388-
Enabled: !(ctx.IsSet("ssh") && !ctx.Bool("ssh")),
388+
Enabled: !(ctx.IsSet("ssh") && !ctx.Bool("ssh")), //nolint:staticcheck // TODO(hs): fix this
389389
},
390390
DisableRenewal: ctx.Bool("disable-renewal"),
391391
AllowRenewalAfterExpiry: ctx.Bool("allow-renewal-after-expiry"),

command/context/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func removeAction(ctx *cli.Context) error {
8181
}
8282
}
8383

84-
if !ctx.Bool("force") && !(saveAuthority && saveProfile) {
84+
if !ctx.Bool("force") && !(saveAuthority && saveProfile) { //nolint:staticcheck // TODO(hs): fix this
8585
ui.Printf("The following directories will be removed:\n")
8686
ui.Println()
8787
if !saveAuthority {

integration/command.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//nolint:unused // will be fixed with new integration tests
12
package integration
23

34
import (

pkg/bcrypt_pbkdf/bcrypt_pbkdf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Package bcrypt_pbkdf implements password-based key derivation function based
66
// on bcrypt compatible with bcrypt_pbkdf(3) from OpenBSD.
7-
package bcrypt_pbkdf //nolint:revive,stylecheck // keep compatible with existing importers
7+
package bcrypt_pbkdf //nolint:revive,staticcheck // keep compatible with existing importers
88

99
import (
1010
"crypto/sha512"

pkg/bcrypt_pbkdf/bcrypt_pbkdf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
package bcrypt_pbkdf //nolint:stylecheck // keep compatible with existing importers
5+
package bcrypt_pbkdf //nolint:staticcheck // keep compatible with existing importers
66

77
import (
88
"bytes"

0 commit comments

Comments
 (0)