.golangci.yml raw

   1  run:
   2    # do not run on test files yet
   3    tests: false
   4  
   5  # all available settings of specific linters
   6  linters-settings:
   7    errcheck:
   8      # report about not checking of errors in type assetions: `a := b.(MyStruct)`;
   9      # default is false: such cases aren't reported by default.
  10      check-type-assertions: false
  11  
  12      # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
  13      # default is false: such cases aren't reported by default.
  14      check-blank: false
  15  
  16    lll:
  17      line-length: 100
  18      tab-width: 4
  19  
  20    prealloc:
  21      simple: false
  22      range-loops: false
  23      for-loops: false
  24  
  25    whitespace:
  26      multi-if: false   # Enforces newlines (or comments) after every multi-line if statement
  27      multi-func: false # Enforces newlines (or comments) after every multi-line function signature
  28  
  29  linters:
  30    enable:
  31      - megacheck
  32      - govet
  33    disable:
  34      - maligned
  35      - prealloc
  36    disable-all: false
  37    presets:
  38      - bugs
  39      - unused
  40    fast: false
  41