cloudflare/pint

Public

mirrored fromhttps://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
9602189111351a019cc234018d27f62eb4bdc5a8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.golangci.yml

81lines · modecode

1version: "2"
2run:
3 tests: true
4linters:
5 enable:
6 - copyloopvar
7 - errname
8 - errorlint
9 - exhaustive
10 - exhaustruct
11 - exptostd
12 - gocritic
13 - godot
14 - importas
15 - iotamixing
16 - misspell
17 - modernize
18 - nakedret
19 - nilnesserr
20 - perfsprint
21 - prealloc
22 - predeclared
23 - promlinter
24 - revive
25 - testifylint
26 - unconvert
27 - usetesting
28 settings:
29 exhaustruct:
30 exclude:
31 - net/http\..+
32 - crypto/tls\..+
33 - encoding/xml\..+
34 - .+/checks\.badMatcher
35 - .+/checks\..+Settings
36 - .+/config\.Match
37 - .+/discovery\.Entry
38 - .+/parser\.Rule
39 - .+/parser\.ParseError
40 - .+/parser\.VectorSelector
41 - .+/promapi\.MetricTimeRange
42 - github.com/prometheus/.+\..+
43 - github.com/urfave/cli/.+
44 - gitlab.com/gitlab-org/api/.+
45 - github.com/google/go-github/.+
46 - github.com/hashicorp/hcl/.+
47 govet:
48 enable-all: true
49 exclusions:
50 generated: lax
51 presets:
52 - comments
53 - std-error-handling
54 rules:
55 - linters:
56 - exhaustruct
57 path: ^.*_test\.go$
58 - linters:
59 - revive
60 path: ^internal/parser/utils/
61 text: "var-naming: avoid meaningless package names"
62 - linters:
63 - revive
64 path: ^internal/log/
65 text: "var-naming: avoid package names that conflict with Go standard library package names"
66 - linters:
67 - revive
68 path: ^internal/parser/
69 text: "var-naming: avoid package names that conflict with Go standard library package names"
70issues:
71 max-same-issues: 0
72formatters:
73 enable:
74 - gofumpt
75 - goimports
76 settings:
77 gofumpt:
78 extra-rules: true
79 goimports:
80 local-prefixes:
81 - github.com/cloudflare/pint