-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
55 lines (50 loc) · 1.88 KB
/
.golangci.yml
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
# golangci-lint configuration options
linters:
enable-all: true
disable:
- tagliatelle # Digiposte API is not consistent, it use snake_case and camelCase
linters-settings:
# Gci controls Go package import order and makes it always deterministic.
gci:
# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
# The default order of sections is `standard > default > custom > blank > dot > alias`,
# If `custom-order` is `true`, it follows the order of `sections` option.
# Default: ["standard", "default"]
sections:
- standard # Standard section: captures all standard packages.
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/holyhope/digiposte-go-sdk) # Custom section: groups all imports with the specified Prefix.
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
depguard:
# Default: Only allow $gostd in all files.
rules:
login:
files:
- "login/**.go"
list-mode: lax
allow:
- $gostd
- github.com/chromedp
- github.com/holyhope
- github.com/Davincible/chromedp-undetected
- github.com/go-oauth2/oauth2/v4
- github.com/pquerna/otp
- github.com/go-rod/rod/lib/launcher
# Name of a rule.
tests:
files:
- "$test"
list-mode: lax
allow:
- $gostd
- github.com/holyhope
- github.com/onsi/ginkgo
- github.com/onsi/gomega
- github.com/go-rod/rod/lib/launcher
issues:
exclude-rules:
- path: _example_test\.go
linters:
- nosnakecase