Repository navigation
Expand file tree
/
Copy path.golangci.yml
More file actions
51 lines (48 loc) · 1.81 KB
/
Copy path.golangci.yml
File metadata and controls
51 lines (48 loc) · 1.81 KB
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
run:
skip-files: [ ]
timeout: 5m
concurrency: 4
linters:
disable-all: true
enable:
- govet
- errcheck
- ineffassign
- gofumpt
- gosimple
- unused
- staticcheck
- gci
- goheader
linters-settings:
goheader:
# Enforces the per-file SPDX + copyright header on every source file
# (OpenSSF Gold: license_per_file + copyright_per_file). Year-less by design
# so it is set-once and never needs an annual bump. Generated mocks are
# excluded below (issues.exclude-rules) — they carry the generator header.
template: |-
SPDX-License-Identifier: MIT
Copyright (c) Simple Container
gci:
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com) # Custom section: groups all imports with the specified Prefix.
- prefix(github.com/aws) # Custom section: groups all imports with the specified Prefix.
- prefix(github.com/pulumi) # Custom section: groups all imports with the specified Prefix.
- prefix(github.com/simple-container-com) # Custom section: groups all imports with the specified Prefix.
# - blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
# - dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
skip-generated: false
custom-order: true
revive:
rules:
- name: var-naming # usually this is not critical
disabled: true
issues:
exclude-rules:
# Auto-generated mocks carry the mockery "Code generated" header and are
# regenerated by `go generate`; they get no SPDX/copyright header.
- path: mocks/
linters:
- goheader