Skip to content

Commit cd66edf

Browse files
guillaumerosepraveenkumar
authored andcommitted
Add errcheck, deadcode and misspell linters
1 parent bf143ef commit cd66edf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ run:
44

55
linters:
66
enable:
7+
- errcheck
78
- goimports
89
- gofmt
910
- gosec
1011
- gocritic
12+
- deadcode
13+
- misspell

cmd/crc-embedder/cmd/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func init() {
1515
var listCmd = &cobra.Command{
1616
Use: "list",
1717
Short: "List data files embedded in the crc binary",
18-
Long: `List all the data files wich were embedded in the crc binary`,
18+
Long: `List all the data files which were embedded in the crc binary`,
1919
Run: func(cmd *cobra.Command, args []string) {
2020
runList(args)
2121
},

pkg/os/windows/secpol/secpol_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func hasLogonUserRight(username string) bool {
6464
for _, sid := range getUsersWithLogonUserRights() {
6565
/* seservicelogonright could either contain the username or the SID
6666
* the SID has a * at the beginning which needs to be removed to match with user's sid
67-
* if its a username it doesn't have the '*' in the begining
67+
* if its a username it doesn't have the '*' in the beginning
6868
*/
6969
userSid, err := getSidOfCurrentUser()
7070
if err != nil || sid == "" {

0 commit comments

Comments
 (0)