Skip to content

Commit

Permalink
doc: update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 29, 2021
1 parent 1f0072c commit 148caa2
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .golangci.example.yml
Expand Up @@ -358,6 +358,10 @@ linters-settings:
per_char_threshold: "3.0"
truncate: "32"

gosimple:
# Select the Go version to target
go: "1.13"

govet:
# report about shadowed variables
check-shadowing: true
Expand Down Expand Up @@ -488,6 +492,14 @@ linters-settings:
- name: indent-error-flow
severity: warning

staticcheck:
# Select the Go version to target
go: "1.13"

stylecheck:
# Select the Go version to target
go: "1.13"

tagliatelle:
# check the struck tag name case
case:
Expand Down Expand Up @@ -531,11 +543,8 @@ linters-settings:
check-exported: false

unused:
# treat code as a program (not a library) and report unused exported identifiers; default is false.
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: false
# Select the Go version to target
go: "1.13"

whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
Expand All @@ -556,8 +565,8 @@ linters-settings:
force-short-decl-cuddling: false
strict-append: true

# The custom section can be used to define linter plugins to be loaded at runtime. See README doc
# for more info.
# The custom section can be used to define linter plugins to be loaded at runtime.
# See README doc for more info.
custom:
# Each custom linter should have a unique name.
example:
Expand Down

0 comments on commit 148caa2

Please sign in to comment.