-
Notifications
You must be signed in to change notification settings - Fork 9
/
.golangci.yml
132 lines (119 loc) · 2.79 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# yaml-language-server: $schema=https://json.schemastore.org/golangci-lint.json
# Visit https://golangci-lint.run/ for usage documentation and information on other useful linters
---
run:
allow-parallel-runners: true
allow-serial-runners: true
timeout: 10m
output:
sort-results: true
sort-order:
- linter
- severity
- file # filepath, line, and column
show-stats: true
# formats:
# - format: checkstyle
# path: golangci-report.xml
# - format: colored-line-number
issues:
max-issues-per-linter: 0
max-same-issues: 0
fix: true
exclude-rules:
- path: '(.+)_test\.go'
text: "unchecked-type-assertion"
- path: '(.+)_test\.go'
linters:
- dupl
- gochecknoglobals
- nonamedreturns
- forcetypeassert
- path: "internal/testhelp/fakes"
linters:
- dupl
- path: "internal/testhelp"
linters:
- gochecknoglobals
- godox
- path: "internal/services"
linters:
- dupl
- path: "internal/pkg/fabricitem"
linters:
- dupl
- path: "internal/framework/customtypes"
linters:
- dupl
linters:
enable-all: true
disable:
- depguard
- exhaustruct
- lll
- paralleltest
- ireturn
- wrapcheck
- funlen
- gomoddirectives
- err113
- mnd
- goheader
- cyclop
- exportloopref
linters-settings:
exhaustive:
# Presence of "default" case in switch statements satisfies exhaustiveness,
# even if all enum members are not listed.
# Default: false
default-signifies-exhaustive: true
# goheader:
# values:
# const:
# COMPANY: Microsoft Corporation
# LICENSE: MPL-2.0
# template: |-
# Copyright (c) {{ COMPANY }}.
# Licensed under the {{ LICENSE }} license.
# SPDX-License-Identifier: {{ LICENSE }}
godot:
capital: true
revive:
ignore-generated-header: true
enable-all-rules: true
rules:
- name: line-length-limit
disabled: true
- name: cognitive-complexity
disabled: true
- name: add-constant
disabled: true
- name: bare-return
disabled: true
- name: function-length
disabled: true
- name: unused-receiver
disabled: true
- name: cyclomatic
disabled: true
- name: if-return
disabled: true
- name: max-public-structs
disabled: true
nestif:
min-complexity: 10
varnamelen:
min-name-length: 1
wsl:
allow-cuddle-declarations: true
allow-trailing-comment: true
gofumpt:
module-path: github.com/microsoft/terraform-provider-fabric
extra-rules: true
goimports:
local-prefixes: github.com/microsoft/terraform-provider-fabric
gci:
sections:
- standard
- default
- localmodule