Source
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
# configuration options for golangci-lint analyzer
run
# default concurrency is a available CPU number
concurrency4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout 1m
# exit code when at least one issue was found, default is 1
issues-exit-code1
# include test files or not, default is true
teststrue
# 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).
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-dirs
# - src/external_libs
# - autogenerated_by_my_lib
build-tags
golint_check
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-defaulttrue
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runnersfalse
# output configuration options
output
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format colored-line-number
# print lines of code with issue, default is true
print-issued-linestrue
# print linter name in the end of issue text, default is true
print-linter-nametrue
# make issues output unique by line, default is true
uniq-by-linetrue
# add a prefix to the output file references; default is no prefix
path-prefix""
# all available settings of specific linters
linters-settings
dupl
# tokens count to trigger issue, 150 by default
threshold1000
errcheck
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertionsfalse
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;