Skip to content

Commit 2a0ed1e

Browse files
committed
chore: add lint ruler, exclude unused variable
1 parent 14fd710 commit 2a0ed1e

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,11 @@ issues:
5959
- G404
6060
- G502
6161
- G505
62+
exclude-rules:
63+
- path: internal/browser/browser\.go
64+
linters:
65+
- 'deadcode'
66+
- 'varcheck'
67+
- 'unused'
6268
max-issues-per-linter: 0
6369
max-same-issues: 0

internal/browser/browser.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ func ListBrowser() []string {
114114
// home dir path for all platforms
115115
var homeDir, _ = os.UserHomeDir()
116116

117-
//nolint:unused
118117
const (
119118
chromeName = "Chrome"
120119
chromeBetaName = "Chrome Beta"

internal/decrypter/decrypter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ func (l loginPBE) Decrypt(globalSalt, masterPwd []byte) (key []byte, err error)
185185
func (l loginPBE) iv() []byte {
186186
return l.Data.IV
187187
}
188+
188189
func (l loginPBE) encrypted() []byte {
189190
return l.Encrypted
190191
}

0 commit comments

Comments
 (0)