-
Notifications
You must be signed in to change notification settings - Fork 351
Expand file tree
/
Copy path.godoclint.yaml
More file actions
123 lines (105 loc) · 3.82 KB
/
.godoclint.yaml
File metadata and controls
123 lines (105 loc) · 3.82 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
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
# Configuration file version.
version: "1.0"
# List of regexp patterns matching files the linter should include. When
# omitted/null, the linter includes all Go files. If assigned then only the
# files that their relative path (with respect to the config file path) matches
# any of the patterns will be processed.
#
# Note: The patterns must assume a Unix-like path (i.e., separated with forward
# slashes, `/`), even on Windows. This is to ensure a consistent behavior across
# different platforms.
#
# Example:
# include:
# - ^pkg/
# - _foo.go$
include: null
# List of regexp patterns matching files the linter should skip. When
# omitted/null, the linter excludes no Go files. If assigned then only the
# files that their relative path (with respect to the config file path) does not
# match any of the patterns will be processed.
#
# Note: The patterns must assume a Unix-like path (i.e., separated with forward
# slashes, `/`), even on Windows. This is to ensure a consistent behavior across
# different platforms.
#
# Example:
# exclude:
# - ^internal/
# - _autogenerated.go$
exclude:
- ^private/gen
# Default set of rules to enable. Possible values are:
# - `basic`: enables basic rules which are: `pkg-doc`, `single-pkg-doc`, `start-with-name` and `deprecated`.
# - `all`: all rules are enabled by default; the `disable` key can be used to disable specific rules.
# - `none`: no rule is enabled by default; the `enable` key can be used to enable specific rules.
default: none
# List of rules to enable *in addition to* the default set.
#
# See the linter docs for more on supported rules.
#
# Example:
# - pkg-doc
# - single-pkg-doc
# - require-pkg-doc
# - specific-file-pkg-doc
# - start-with-name
# - require-doc
# - deprecated
# - max-len
# - no-unused-link
enable:
- pkg-doc
- single-pkg-doc
#- require-pkg-doc
- specific-file-pkg-doc
- start-with-name
- require-doc
- deprecated
#- max-len
- no-unused-link
# List of rules to disable.
#
# Example:
# disable:
# - pkg-doc
# - single-pkg-doc
disable: null
# A map for setting individual rule options.
#
# All sub-keys are optional.
options:
# Maximum line length for godocs, not including the `// `, or `/*` or `*/`
# tokens.
max-len/length: 120
# Include test files when applying the `max-len` rule.
max-len/include-tests: false
# Include test files when applying the `pkg-doc` rule.
pkg-doc/include-tests: false
# Include test files when applying the `single-pkg-doc` rule.
single-pkg-doc/include-tests: false
# Include test files when applying the `require-pkg-doc` rule.
require-pkg-doc/include-tests: false
# Include test files when applying the `specific-file-pkg-doc` rule.
specific-file-pkg-doc/include-tests: false
# The file pattern to indicate which file should contain the package-level godoc when
# applying the `specific-file-pkg-doc` rule.
#
# Valid values are:
#
# - "doc": The godoc should be in a file named doc.go
# - "package-name": The godoc should be in a file named after the package. For example, if a package
# is named "foobar", the godoc should be in a file named "foobar.go".
specific-file-pkg-doc/file-pattern: "package-name"
# Include test files when applying the `require-doc` rule.
require-doc/include-tests: false
# Ignore exported (public) symbols when applying the `require-doc` rule.
require-doc/ignore-exported: false
# Ignore unexported (private) symbols when applying the `require-doc` rule.
require-doc/ignore-unexported: true
# Include test files when applying the `start-with-name` rule.
start-with-name/include-tests: false
# Include unexported (private) symbols when applying the `start-with-name` rule.
start-with-name/include-unexported: false
# Include test files when applying the `no-unused-link` rule.
no-unused-link/include-tests: false