github.com/grailbio/base@v0.0.11/.golangci.yml (about)

     1  run:
     2    concurrency: 4
     3    timeout: 1m
     4  
     5    # exit code when at least one issue was found
     6    issues-exit-code: 1
     7  
     8    # include test files
     9    tests: true
    10  
    11    build-tags:
    12  
    13    # which dirs to skip: issues from them won't be reported;
    14    skip-dirs:
    15  
    16    # enables skipping of default directories:
    17    #   vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
    18    skip-dirs-use-default: true
    19  
    20    # which files to skip: they will be analyzed, but issues from them won't be
    21    # reported.
    22    skip-files:
    23  
    24    # disallow multiple parallel golangci-lint instances
    25    allow-parallel-runners: false
    26  
    27  output:
    28    # colored-line-number|line-number|json|tab|checkstyle|code-climate
    29    format: colored-line-number
    30  
    31    # print lines of code with issue
    32    print-issued-lines: true
    33  
    34    # print linter name in the end of issue text
    35    print-linter-name: true
    36  
    37    # make issues output unique by line
    38    uniq-by-line: true
    39  
    40  linters-settings:
    41    errcheck:
    42      # do not report about not checking errors in type assertions: `a :=
    43      # b.(MyStruct)`
    44      check-type-assertions: false
    45  
    46      # do not report about assignment of errors to blank identifier: `num, _ :=
    47      # strconv.Atoi(numStr)`
    48      check-blank: false
    49  
    50      # path to a file containing a list of functions to exclude from checking
    51      # see https://github.com/kisielk/errcheck#excluding-functions for details
    52      exclude: .errcheck-excludes
    53  
    54    govet:
    55      # report about shadowed variables
    56      check-shadowing: true
    57  
    58      # settings per analyzer
    59      settings:
    60        # run `go tool vet help` to see all analyzers
    61        printf:
    62          # run `go tool vet help printf` to see available settings for `printf`
    63          # analyzer
    64          funcs:
    65            - (github.com/grailbio/base/log).Fatal
    66            - (github.com/grailbio/base/log).Output
    67            - (github.com/grailbio/base/log).Outputf
    68            - (github.com/grailbio/base/log).Panic
    69            - (github.com/grailbio/base/log).Panicf
    70            - (github.com/grailbio/base/log).Print
    71            - (github.com/grailbio/base/log).Printf
    72  
    73    unused:
    74      # do not report unused exported identifiers
    75      check-exported: false
    76    
    77    misspell:
    78      locale: US
    79  
    80  linters:
    81    disable-all: true
    82    fast: false
    83    enable:
    84      - deadcode
    85      - goimports
    86      - gosimple
    87      - govet
    88      - errcheck
    89      - ineffassign
    90      - misspell
    91      - staticcheck
    92      - structcheck
    93      - typecheck
    94      - unused
    95      - varcheck