Skip to content

Commit

Permalink
Minor fixes for grammar etc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Aug 5, 2021
1 parent d5e6969 commit 862fdc8
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# options for analysis running
run:
# default concurrency is a available CPU number
# default concurrency is an available CPU number
concurrency: 4

# timeout for analysis, e.g. 30s, 5m, default is 1m
Expand All @@ -22,7 +22,7 @@ run:
# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
# of this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-dirs:
Expand Down Expand Up @@ -192,14 +192,11 @@ linters-settings:
# See the License for the specific language governing permissions and
# limitations under the License.
template-path:
# also as alternative of directive 'template' you may put the path to file with the template source
# also, as alternative of directive 'template' you may put the path to file with the template source
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/org/project
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
gomnd:
settings:
mnd:
Expand Down Expand Up @@ -239,9 +236,6 @@ linters-settings:
line-length: 120
# tab width in spaces. Default to 1.
tab-width: 1
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
Expand All @@ -251,7 +245,7 @@ linters-settings:
- bsv
- bitcoin
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
# 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
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
Expand Down Expand Up @@ -296,7 +290,7 @@ linters-settings:
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
wsl:
# If true append is only allowed to be cuddled if appending value is
# matching variables, fields or types on line above. Default is true.
# matching variables, fields or types on the line above. Default is true.
strict-append: true
# Allow calls and assignments to be cuddled as long as the lines have any
# matching variables, fields or types. Default is true.
Expand All @@ -314,7 +308,7 @@ linters-settings:
# Allow leading comments to be separated with empty liens
allow-separated-leading-comment: false
gofumpt:
# Choose whether or not to use the extra rules that are disabled
# Choose whether to use the extra rules that are disabled
# by default
extra-rules: false

Expand All @@ -336,10 +330,9 @@ linters:
- govet
- gosec
- bodyclose
- golint
- revive
- unconvert
- dupl
- maligned
- misspell
- dogsled
- prealloc
Expand All @@ -349,7 +342,6 @@ linters:
- nolintlint
- gci
- goconst
- lll
disable:
- gocritic # use this for very opinionated linting
- gochecknoglobals
Expand All @@ -369,11 +361,11 @@ linters:

issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# But independently of this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
- Using the variable on range scope .* in function literal
- abcdef

# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
Expand All @@ -384,8 +376,6 @@ issues:
- errcheck
- dupl
- gosec
- maligned
- lll

# Exclude known linters from partially hard-vendored code,
# which is impossible to exclude via "nolint" comments.
Expand All @@ -409,20 +399,16 @@ issues:
- lll
source: "^//go:generate "

# Independently from option `exclude` we use default exclude patterns,
# Independently of option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false

# The default value is false. If set to true exclude and exclude-rules
# regular expressions become case sensitive.
# regular expressions become case-sensitive.
exclude-case-sensitive: false

# The list of ids of default excludes to include or disable. By default it's empty.
include:
- EXC0002 # disable excluding of issues about comments from golint

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

Expand Down Expand Up @@ -455,7 +441,7 @@ severity:
default-severity: error

# The default value is false.
# If set to true severity-rules regular expressions become case sensitive.
# If set to true severity-rules regular expressions become case-sensitive.
case-sensitive: false

# Default value is empty list.
Expand Down

0 comments on commit 862fdc8

Please sign in to comment.