chore: add lint ruler, exclude unused variable

pull/159/head
ᴍᴏᴏɴD4ʀᴋ 2 years ago
parent 14fd71005a
commit 2a0ed1ebbf
  1. 6
      .golangci.yml
  2. 1
      internal/browser/browser.go
  3. 1
      internal/decrypter/decrypter.go

@ -59,5 +59,11 @@ issues:
- G404 - G404
- G502 - G502
- G505 - G505
exclude-rules:
- path: internal/browser/browser\.go
linters:
- 'deadcode'
- 'varcheck'
- 'unused'
max-issues-per-linter: 0 max-issues-per-linter: 0
max-same-issues: 0 max-same-issues: 0

@ -114,7 +114,6 @@ func ListBrowser() []string {
// home dir path for all platforms // home dir path for all platforms
var homeDir, _ = os.UserHomeDir() var homeDir, _ = os.UserHomeDir()
//nolint:unused
const ( const (
chromeName = "Chrome" chromeName = "Chrome"
chromeBetaName = "Chrome Beta" chromeBetaName = "Chrome Beta"

@ -185,6 +185,7 @@ func (l loginPBE) Decrypt(globalSalt, masterPwd []byte) (key []byte, err error)
func (l loginPBE) iv() []byte { func (l loginPBE) iv() []byte {
return l.Data.IV return l.Data.IV
} }
func (l loginPBE) encrypted() []byte { func (l loginPBE) encrypted() []byte {
return l.Encrypted return l.Encrypted
} }

Loading…
Cancel
Save