-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.godoc-lint.default.yaml
More file actions
119 lines (100 loc) · 3.66 KB
/
.godoc-lint.default.yaml
File metadata and controls
119 lines (100 loc) · 3.66 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
# This file serves as an example to explain various configuration parameters for
# Godoc-Lint.
#
# All keys are:
# - Optional, unless stated otherwise.
# - Assigned with their default value.
#
# 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: null
# 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: basic
# 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
# - start-with-name
# - require-doc
# - deprecated
# - require-stdlib-doclink
# - max-len
# - no-unused-link
enable: null
# 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: 77
# Include test files when applying the `max-len` rule.
max-len/include-tests: false
# List of regexp patterns matching lines to be excluded from `max-len` rule checks.
# The patterns should not include comment tokens like `// ` or `/*`.
#
# Example:
# max-len/ignore-patterns:
# - "^TODO:"
max-len/ignore-patterns: []
# 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 `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 `require-stdlib-doclink` rule.
require-stdlib-doclink/include-tests: false
# Include test files when applying the `no-unused-link` rule.
no-unused-link/include-tests: false