|
2 | 2 |
|
3 | 3 | List of all available rules. |
4 | 4 |
|
5 | | -- [Description of available rules](#description-of-available-rules) |
6 | | - - [add-constant](#add-constant) |
7 | | - - [argument-limit](#argument-limit) |
8 | | - - [atomic](#atomic) |
9 | | - - [banned-characters](#banned-characters) |
10 | | - - [bare-return](#bare-return) |
11 | | - - [blank-imports](#blank-imports) |
12 | | - - [bool-literal-in-expr](#bool-literal-in-expr) |
13 | | - - [call-to-gc](#call-to-gc) |
14 | | - - [cognitive-complexity](#cognitive-complexity) |
15 | | - - [comment-spacings](#comment-spacings) |
16 | | - - [comments-density](#comments-density) |
17 | | - - [confusing-naming](#confusing-naming) |
18 | | - - [confusing-results](#confusing-results) |
19 | | - - [constant-logical-expr](#constant-logical-expr) |
20 | | - - [context-as-argument](#context-as-argument) |
21 | | - - [context-keys-type](#context-keys-type) |
22 | | - - [cyclomatic](#cyclomatic) |
23 | | - - [datarace](#datarace) |
24 | | - - [deep-exit](#deep-exit) |
25 | | - - [defer](#defer) |
26 | | - - [dot-imports](#dot-imports) |
27 | | - - [duplicated-imports](#duplicated-imports) |
28 | | - - [early-return](#early-return) |
29 | | - - [empty-block](#empty-block) |
30 | | - - [empty-lines](#empty-lines) |
31 | | - - [enforce-map-style](#enforce-map-style) |
32 | | - - [enforce-repeated-arg-type-style](#enforce-repeated-arg-type-style) |
33 | | - - [enforce-slice-style](#enforce-slice-style) |
34 | | - - [enforce-switch-style](#enforce-switch-style) |
35 | | - - [error-naming](#error-naming) |
36 | | - - [error-return](#error-return) |
37 | | - - [error-strings](#error-strings) |
38 | | - - [errorf](#errorf) |
39 | | - - [exported](#exported) |
40 | | - - [file-header](#file-header) |
41 | | - - [file-length-limit](#file-length-limit) |
42 | | - - [filename-format](#filename-format) |
43 | | - - [flag-parameter](#flag-parameter) |
44 | | - - [function-length](#function-length) |
45 | | - - [function-result-limit](#function-result-limit) |
46 | | - - [get-return](#get-return) |
47 | | - - [identical-branches](#identical-branches) |
48 | | - - [identical-ifelseif-branches](#identical-ifelseif-branches) |
49 | | - - [identical-ifelseif-conditions](#identical-ifelseif-conditions) |
50 | | - - [identical-switch-branches](#identical-switch-branches) |
51 | | - - [identical-switch-conditions](#identical-switch-conditions) |
52 | | - - [if-return](#if-return) |
53 | | - - [import-alias-naming](#import-alias-naming) |
54 | | - - [import-shadowing](#import-shadowing) |
55 | | - - [imports-blocklist](#imports-blocklist) |
56 | | - - [increment-decrement](#increment-decrement) |
57 | | - - [indent-error-flow](#indent-error-flow) |
58 | | - - [line-length-limit](#line-length-limit) |
59 | | - - [max-control-nesting](#max-control-nesting) |
60 | | - - [max-public-structs](#max-public-structs) |
61 | | - - [modifies-parameter](#modifies-parameter) |
62 | | - - [modifies-value-receiver](#modifies-value-receiver) |
63 | | - - [nested-structs](#nested-structs) |
64 | | - - [optimize-operands-order](#optimize-operands-order) |
65 | | - - [package-comments](#package-comments) |
66 | | - - [package-directory-mismatch](#package-directory-mismatch) |
67 | | - - [range-val-address](#range-val-address) |
68 | | - - [range-val-in-closure](#range-val-in-closure) |
69 | | - - [range](#range) |
70 | | - - [receiver-naming](#receiver-naming) |
71 | | - - [redefines-builtin-id](#redefines-builtin-id) |
72 | | - - [redundant-build-tag](#redundant-build-tag) |
73 | | - - [redundant-import-alias](#redundant-import-alias) |
74 | | - - [redundant-test-main-exit](#redundant-test-main-exit) |
75 | | - - [string-format](#string-format) |
76 | | - - [string-of-int](#string-of-int) |
77 | | - - [struct-tag](#struct-tag) |
78 | | - - [superfluous-else](#superfluous-else) |
79 | | - - [time-date](#time-date) |
80 | | - - [time-equal](#time-equal) |
81 | | - - [time-naming](#time-naming) |
82 | | - - [unchecked-type-assertion](#unchecked-type-assertion) |
83 | | - - [unconditional-recursion](#unconditional-recursion) |
84 | | - - [unexported-naming](#unexported-naming) |
85 | | - - [unexported-return](#unexported-return) |
86 | | - - [unhandled-error](#unhandled-error) |
87 | | - - [unnecessary-format](#unnecessary-format) |
88 | | - - [unnecessary-stmt](#unnecessary-stmt) |
89 | | - - [unreachable-code](#unreachable-code) |
90 | | - - [unsecure-url-scheme](#unsecure-url-scheme) |
91 | | - - [unused-parameter](#unused-parameter) |
92 | | - - [unused-receiver](#unused-receiver) |
93 | | - - [use-any](#use-any) |
94 | | - - [use-errors-new](#use-errors-new) |
95 | | - - [use-fmt-print](#use-fmt-print) |
96 | | - - [use-waitgroup-go](#use-waitgroup-go) |
97 | | - - [useless-break](#useless-break) |
98 | | - - [useless-fallthrough](#useless-fallthrough) |
99 | | - - [var-declaration](#var-declaration) |
100 | | - - [var-naming](#var-naming) |
101 | | - - [waitgroup-by-value](#waitgroup-by-value) |
| 5 | +<!-- toc --> |
| 6 | + |
| 7 | +- [add-constant](#add-constant) |
| 8 | +- [argument-limit](#argument-limit) |
| 9 | +- [atomic](#atomic) |
| 10 | +- [banned-characters](#banned-characters) |
| 11 | +- [bare-return](#bare-return) |
| 12 | +- [blank-imports](#blank-imports) |
| 13 | +- [bool-literal-in-expr](#bool-literal-in-expr) |
| 14 | +- [call-to-gc](#call-to-gc) |
| 15 | +- [cognitive-complexity](#cognitive-complexity) |
| 16 | +- [comment-spacings](#comment-spacings) |
| 17 | +- [comments-density](#comments-density) |
| 18 | +- [confusing-naming](#confusing-naming) |
| 19 | +- [confusing-results](#confusing-results) |
| 20 | +- [constant-logical-expr](#constant-logical-expr) |
| 21 | +- [context-as-argument](#context-as-argument) |
| 22 | +- [context-keys-type](#context-keys-type) |
| 23 | +- [cyclomatic](#cyclomatic) |
| 24 | +- [datarace](#datarace) |
| 25 | +- [deep-exit](#deep-exit) |
| 26 | +- [defer](#defer) |
| 27 | +- [dot-imports](#dot-imports) |
| 28 | +- [duplicated-imports](#duplicated-imports) |
| 29 | +- [early-return](#early-return) |
| 30 | +- [empty-block](#empty-block) |
| 31 | +- [empty-lines](#empty-lines) |
| 32 | +- [enforce-map-style](#enforce-map-style) |
| 33 | +- [enforce-repeated-arg-type-style](#enforce-repeated-arg-type-style) |
| 34 | +- [enforce-slice-style](#enforce-slice-style) |
| 35 | +- [enforce-switch-style](#enforce-switch-style) |
| 36 | +- [error-naming](#error-naming) |
| 37 | +- [error-return](#error-return) |
| 38 | +- [error-strings](#error-strings) |
| 39 | +- [errorf](#errorf) |
| 40 | +- [exported](#exported) |
| 41 | +- [file-header](#file-header) |
| 42 | +- [file-length-limit](#file-length-limit) |
| 43 | +- [filename-format](#filename-format) |
| 44 | +- [flag-parameter](#flag-parameter) |
| 45 | +- [function-length](#function-length) |
| 46 | +- [function-result-limit](#function-result-limit) |
| 47 | +- [get-return](#get-return) |
| 48 | +- [identical-branches](#identical-branches) |
| 49 | +- [identical-ifelseif-branches](#identical-ifelseif-branches) |
| 50 | +- [identical-ifelseif-conditions](#identical-ifelseif-conditions) |
| 51 | +- [identical-switch-branches](#identical-switch-branches) |
| 52 | +- [identical-switch-conditions](#identical-switch-conditions) |
| 53 | +- [if-return](#if-return) |
| 54 | +- [import-alias-naming](#import-alias-naming) |
| 55 | +- [import-shadowing](#import-shadowing) |
| 56 | +- [imports-blocklist](#imports-blocklist) |
| 57 | +- [increment-decrement](#increment-decrement) |
| 58 | +- [indent-error-flow](#indent-error-flow) |
| 59 | +- [line-length-limit](#line-length-limit) |
| 60 | +- [max-control-nesting](#max-control-nesting) |
| 61 | +- [max-public-structs](#max-public-structs) |
| 62 | +- [modifies-parameter](#modifies-parameter) |
| 63 | +- [modifies-value-receiver](#modifies-value-receiver) |
| 64 | +- [nested-structs](#nested-structs) |
| 65 | +- [optimize-operands-order](#optimize-operands-order) |
| 66 | +- [package-comments](#package-comments) |
| 67 | +- [package-directory-mismatch](#package-directory-mismatch) |
| 68 | +- [range-val-address](#range-val-address) |
| 69 | +- [range-val-in-closure](#range-val-in-closure) |
| 70 | +- [range](#range) |
| 71 | +- [receiver-naming](#receiver-naming) |
| 72 | +- [redefines-builtin-id](#redefines-builtin-id) |
| 73 | +- [redundant-build-tag](#redundant-build-tag) |
| 74 | +- [redundant-import-alias](#redundant-import-alias) |
| 75 | +- [redundant-test-main-exit](#redundant-test-main-exit) |
| 76 | +- [string-format](#string-format) |
| 77 | +- [string-of-int](#string-of-int) |
| 78 | +- [struct-tag](#struct-tag) |
| 79 | +- [superfluous-else](#superfluous-else) |
| 80 | +- [time-date](#time-date) |
| 81 | +- [time-equal](#time-equal) |
| 82 | +- [time-naming](#time-naming) |
| 83 | +- [unchecked-type-assertion](#unchecked-type-assertion) |
| 84 | +- [unconditional-recursion](#unconditional-recursion) |
| 85 | +- [unexported-naming](#unexported-naming) |
| 86 | +- [unexported-return](#unexported-return) |
| 87 | +- [unhandled-error](#unhandled-error) |
| 88 | +- [unnecessary-format](#unnecessary-format) |
| 89 | +- [unnecessary-stmt](#unnecessary-stmt) |
| 90 | +- [unreachable-code](#unreachable-code) |
| 91 | +- [unsecure-url-scheme](#unsecure-url-scheme) |
| 92 | +- [unused-parameter](#unused-parameter) |
| 93 | +- [unused-receiver](#unused-receiver) |
| 94 | +- [use-any](#use-any) |
| 95 | +- [use-errors-new](#use-errors-new) |
| 96 | +- [use-fmt-print](#use-fmt-print) |
| 97 | +- [use-waitgroup-go](#use-waitgroup-go) |
| 98 | +- [useless-break](#useless-break) |
| 99 | +- [useless-fallthrough](#useless-fallthrough) |
| 100 | +- [var-declaration](#var-declaration) |
| 101 | +- [var-naming](#var-naming) |
| 102 | +- [waitgroup-by-value](#waitgroup-by-value) |
| 103 | + |
| 104 | +<!-- tocstop --> |
102 | 105 |
|
103 | 106 | ## add-constant |
104 | 107 |
|
|
0 commit comments