github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/.golangci.yml (about)

     1  run:
     2    # timeout for analysis, e.g. 30s, 5m, default is 1m
     3    deadline: 10m
     4  
     5    tests: false
     6  
     7    # which dirs to skip: they won't be analyzed;
     8    # can use regexp here: generated.*, regexp is applied on full path;
     9    # default value is empty list, but next dirs are always skipped independently
    10    # from this option's value:
    11    #   	vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
    12    skip-dirs:
    13      - ui
    14  
    15    # which files to skip: they will be analyzed, but issues from them
    16    # won't be reported. Default value is empty list, but there is
    17    # no need to include all autogenerated files, we confidently recognize
    18    # autogenerated files. If it's not please let us know.
    19    skip-files:
    20      - ".*\\.generated\\.go$"
    21      - ".*bindata_assetfs\\.go$"
    22  
    23  # output configuration options
    24  output:
    25    # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
    26    format: colored-line-number
    27  
    28    # print lines of code with issue, default is true
    29    print-issued-lines: true
    30  
    31    # print linter name in the end of issue text, default is true
    32    print-linter-name: true
    33  
    34  # all available settings of specific linters
    35  linters-settings:
    36    errcheck:
    37      # report about not checking of errors in type assetions: `a := b.(MyStruct)`;
    38      # default is false: such cases aren't reported by default.
    39      check-type-assertions: false
    40  
    41      # [deprecated] comma-separated list of pairs of the form pkg:regex
    42      # the regex is used to ignore names within pkg. (default "fmt:.*").
    43      # see https://github.com/kisielk/errcheck#the-deprecated-method for details
    44      ignore: fmt:.*,io/ioutil:^Read.*
    45  
    46      # path to a file containing a list of functions to exclude from checking
    47      # see https://github.com/kisielk/errcheck#excluding-functions for details
    48      # exclude: /path/to/file.txt
    49    govet:
    50      # report about shadowed variables
    51      check-shadowing: false
    52    gofmt:
    53      # simplify code: gofmt with `-s` option, true by default
    54      simplify: true
    55    depguard:
    56      # disallow packages from being used
    57      list-type: blacklist
    58      packages:
    59        - github.com/hashicorp/consul/command/flags
    60  
    61  issues:
    62    exclude:
    63    - ifElseChain
    64    - singleCaseSwitch
    65    - assignOp
    66    - unlambda
    67  
    68  linters:
    69    disable-all: true
    70    enable:
    71      - goimports
    72      - gocritic
    73      - misspell
    74      - govet
    75      - deadcode
    76      - varcheck
    77      - ineffassign
    78      - structcheck
    79      - unconvert
    80      - gofmt
    81      - gosimple
    82      - depguard
    83      # Stretch Goal
    84      #- maligned
    85    fast: false
    86