File: .golangci.yml

package info (click to toggle)
mtail 3.0.0~rc24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,944 kB
  • sloc: yacc: 530; makefile: 181; sh: 141; lisp: 77; awk: 17
file content (46 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
service:
  prepare:
    - make install_deps

run:
  tests: true
  build-tags:
    - integration

linters-settings:
  govet:
    check-shadowing: true

linters:
  enable-all: true
  disable:
    - maligned
    - megacheck
    - lll
    - gocyclo
    - unparam
    # Not sure what this is telling me yet.
    - scopelint
    # How dare you tell me not to use inits.
    - gochecknoinits
    # Flags are fine, as are test tables.
    - gochecknoglobals

issues:
  max-per-linter: 0
  max-same: 0
  exclude-use-default: true
  exclude:
  #   # Captured by errcheck.
  #   - '^(G104|G204):'
  #   # Very commonly not checked.
  #   - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
  #   #- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
     # If you liked it you shoulda put a gofix on it.
     - 'composite literal uses unkeyed fields'
     # I like shadowing err
     - 'declaration of "err" shadows declaration'
  #   #- 'bad syntax for struct tag key'
  #   #- 'bad syntax for struct tag pair'
     # goyacc generated error in three locations
     - 'this value of `mtailDollar.* is never used'