aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yml
blob: 3fcf71e8f98905a93562a0c0db7aa9d14cfa82a4 (plain)
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
47
48
49
50
51
52
53
54
55
56
---
output:
  sort-results: true
 
run:
  go: "1.23"
 
linters-settings:
  goimports:
    local-prefixes: www.thenautilus.net/cgit
 
  gci:
    sections:
      - standard
      - default
      - prefix(www.thenautilus.net/cgit)
 
  misspell:
    locale: "UK"
 
  varnamelen:
    ignore-names:
      - ok
      - w
      - r
 
  wsl:
    # sometimes I really have to start a block with a comment! 
    allow-separated-leading-comment: true
 
 
linters:
  disable:
    - ireturn # we should return concrete types, not interfaces, but I 
              # can't quite figure out how to do it... 
    - exhaustruct
    - forbidigo
    - depguard
    - mnd
    - nonamedreturns
  presets:
    - style
    - bugs
    - error
    - format
    - import
    - module
    - performance
    - unused
 
 
issues:
  exclude:
    - 'package should be `\w+_test`'
    - 'package comment should not have leading space'