Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / doc / options.html
1 <!--(
2      "Title": "Options"
3 )-->
4
5 <h2 id="checks">checks</h2>
6
7 <p>
8   This option sets which <a href="/docs/checks">checks</a> should be enabled.
9   By default, most checks will be enabled, except for those that are too opinionated or that only apply to packages in certain domains.
10 </p>
11
12 <p>
13   All supported checks can be enabled with <code>"all"</code>.
14   Subsets of checks can be enabled via prefixes and the <code>*</code> glob; for example, <code>"S*"</code>, <code>"SA*"</code> and <code>"SA1*"</code> will
15   enable all checks in the S, SA and SA1 subgroups respectively.
16   Individual checks can be enabled by their full IDs.
17   To disable checks, prefix them with a minus sign. This works on all of the previously mentioned values.
18 </p>
19
20 <p>
21   Default value: <code>["all", "-<a href="/docs/checks#ST1003">ST1003</a>"]</code>
22 </p>
23
24 <h2 id="initialisms">initialisms</h2>
25
26 <p>
27   <a href="/docs/checks#ST1003">ST1003</a> checks, among other
28   things, for the correct capitalization of initialisms. The
29   set of known initialisms can be configured with this option.
30 </p>
31
32 <p>
33   Default value: <code>["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS"]</code>
34 </p>
35
36 <h2 id="dot_import_whitelist">dot_import_whitelist</h2>
37
38 <p>
39   By default, <a href="/docs/checks#ST1001">ST1001</a> forbids
40   all uses of dot imports in non-test packages. This
41   setting allows setting a whitelist of import paths that can
42   be dot-imported anywhere.
43 </p>
44
45 <p>
46   Default value: <code>[]</code>
47 </p>
48
49 <h2 id="http_status_code_whitelist">http_status_code_whitelist</h2>
50
51 <p>
52   <a href="/docs/checks#ST1013">ST1013</a> recommends using constants from the <code>net/http</code> package
53   instead of hard-coding numeric HTTP status codes. This
54   setting specifies a list of numeric status codes that this
55   check does not complain about.
56 </p>
57
58 <p>
59   Default value: <code>["200", "400", "404", "500"]</code>
60 </p>