Skip to content

Commit

Permalink
Minor adjustments to linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Oct 3, 2020
1 parent 65cd03b commit 2d1c4c2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
29 changes: 26 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ linters-settings:
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
locale: US
ignore-words:
- someword
- bsv
- bitcoin
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30
Expand Down Expand Up @@ -303,7 +304,7 @@ linters-settings:
# Allow multiline assignments to be cuddled. Default is true.
allow-multiline-assign: true
# Allow declarations (var) to be cuddled.
allow-cuddle-declarations: false
allow-cuddle-declarations: true
# Allow trailing comments in ending of blocks
allow-trailing-comment: false
# Force newlines in end of case at this limit (0 = never).
Expand Down Expand Up @@ -333,9 +334,31 @@ linters:
enable:
- megacheck
- govet
disable:
- gosec
- bodyclose
- golint
- unconvert
- dupl
- maligned
- misspell
- dogsled
- prealloc
- exportloopref
- exhaustive
- sqlclosecheck
- nolintlint
- gci
- goconst
disable:
- gocritic # use this for very opinionated linting
- gochecknoglobals
- whitespace
- wsl
- goerr113
- godot
- testpackage
- nestif
- nlreturn
disable-all: false
presets:
- bugs
Expand Down
3 changes: 1 addition & 2 deletions address.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package bitcoin

import (
"bytes"
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"

"crypto/sha256"

"github.com/bitcoinsv/bsvd/bsvec"
"github.com/bitcoinsv/bsvd/chaincfg"
"github.com/bitcoinsv/bsvd/txscript"
Expand Down

0 comments on commit 2d1c4c2

Please sign in to comment.