Oleksandr Redko
|
c160d12fd3
|
test: remove useless comments (#1173)
|
2024-12-05 13:01:47 +01:00 |
|
chavacava
|
a31d590c83
|
refactor (rule/function-result-limit): replace AST walker by iteration over declarations (#1167)
|
2024-12-04 21:13:35 +01:00 |
|
chavacava
|
a31d5afbcd
|
refactor (rule/modifies-value-receiver): replace AST walker by iteration over declarations (#1165)
|
2024-12-04 21:02:58 +01:00 |
|
chavacava
|
361c74464d
|
refactor (rule/function-length): replace AST walker by iteration over declarations (#1166)
|
2024-12-04 20:58:43 +01:00 |
|
chavacava
|
fcfd6ad5f1
|
refactor (rule/flag-param): replace AST walker by iteration over declarations (#1164)
|
2024-12-04 20:55:01 +01:00 |
|
chavacava
|
9a5c95f1cf
|
refactor(rule/context-as-argument): replace AST walker by iteration over declarations (#1160)
|
2024-12-04 20:54:09 +01:00 |
|
chavacava
|
c3b541ff73
|
refactor (rule/arguments-limits): replace AST walker by iteration over declarations (#1159)
|
2024-12-04 20:53:35 +01:00 |
|
chavacava
|
275b0184e2
|
refactor (rule/error-return): replace AST walker by iteration over declarations (#1163)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-12-04 17:43:00 +01:00 |
|
chavacava
|
4b137822ea
|
refactor (rule/cyclomatic): replace AST walker by iteration over declarations (#1161)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-12-04 17:42:29 +01:00 |
|
chavacava
|
98a6c97664
|
fix: confusing-results doesn't work with pointer types (#1158)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-12-04 17:42:07 +01:00 |
|
Oleksandr Redko
|
09fb350a27
|
unused-param,unused-receiver: refactor configure func (#1157)
|
2024-12-04 05:55:19 +01:00 |
|
Oleksandr Redko
|
7f7d024f11
|
unused-param,unused-receiver: fix panic message (#1156)
|
2024-12-03 17:08:21 +01:00 |
|
Oleksandr Redko
|
a48710b04b
|
deep-exit: ignore testable examples (#1155)
|
2024-12-03 15:39:07 +01:00 |
|
Denis Voytyuk
|
dde83449d7
|
chore: add missing tests for var-declarations, fix any/interface{} type issue (#1154)
* chore: add missing tests for var-declarations, fix any/interface{} type issue
|
2024-12-02 13:06:52 +01:00 |
|
Denis Voytyuk
|
cb74ccbf44
|
chore: Improve sortables detection (#1151)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-12-02 13:02:39 +01:00 |
|
Denis Voytyuk
|
72b91f0188
|
chore: Update go.sum (#1153)
|
2024-12-01 16:49:58 +01:00 |
|
Oleksandr Redko
|
d181862481
|
docs: fix rule descriptions (#1147)
|
2024-12-01 16:44:41 +01:00 |
|
Emmanuel Ferdman
|
b532dc8e5e
|
docs: update argument_limit.go reference (#1148)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
|
2024-12-01 12:56:34 +01:00 |
|
Oleksandr Redko
|
bb9e681da6
|
cognitive-complexity: handle direct recursion (#1149)
|
2024-12-01 12:16:06 +01:00 |
|
Denis Voytyuk
|
3bc240434f
|
deep-exit: fix mixed receiver type (lintDeepExit) (#1150)
|
2024-11-30 10:06:59 +01:00 |
|
Miles Delahunty
|
7e1d35d8d2
|
feat: optional extension to early-return rule (#1133) (#1138)
|
2024-11-28 08:51:33 +01:00 |
|
Oleksandr Redko
|
777abc9c35
|
refactor: avoid duplicated exitFunctions map (#1145)
|
2024-11-28 08:47:10 +01:00 |
|
chavacava
|
d2778f36f1
|
adds rule use-errors-new (#1142)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-11-22 08:22:51 +01:00 |
|
Oleksandr Redko
|
e92a356003
|
docs: add json, ndjson, checkstyle to "Available Formatters" (#1144)
|
2024-11-22 08:21:43 +01:00 |
|
chavacava
|
213d960d34
|
rename unused parameter (#1143)
|
2024-11-20 22:26:19 +01:00 |
|
chavacava
|
303ae4a4be
|
refactor: remove useless failure slice declaration (#1141)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-11-20 20:41:07 +01:00 |
|
Oleksandr Redko
|
7f769f8c16
|
feat: add redundant-build-tag rule (#1135)
|
2024-11-20 20:26:28 +01:00 |
|
Oleksandr Redko
|
19834d40a4
|
test: add default case when no arguments provided to a rule (#1140)
|
2024-11-20 20:19:17 +01:00 |
|
Oleksandr Redko
|
0e8acea6ce
|
refactor: move functions out from utils.go (#1139)
|
2024-11-19 13:58:14 -08:00 |
|
Oleksandr Redko
|
1425e2f44c
|
refactor: simplify with strings.Prefix, strings.CutPrefix (#1137)
|
2024-11-19 15:43:04 +01:00 |
|
Oleksandr Redko
|
93c6bc8636
|
refactor: extract getVersion function (#1127)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
|
2024-11-18 14:45:28 +01:00 |
|
Oleksandr Redko
|
d81fc8fab3
|
refactor: reduce control nesting in AddConstantRule.configure (#1128)
|
2024-11-18 14:38:56 +01:00 |
|
Iván Valdés Castillo
|
655e6060b2
|
Update RULES_DESCRIPTIONS.md (#1134)
Describe var-naming's limitation on evaluating test file functions.
|
2024-11-18 07:50:51 +01:00 |
|
Oleksandr Redko
|
0afba4ff15
|
refactor: enforce map and slice style (#1131)
|
2024-11-16 18:05:30 +01:00 |
|
Oleksandr Redko
|
1b4440c160
|
refactor: use toml.Unmarshal instead of toml.Decode (#1122)
|
2024-11-16 16:15:36 +01:00 |
|
Väinö Leppänen
|
dff4dc9495
|
Filename-format rule: fix filename extension regex: ".go" to "\\.go". (#1132)
|
2024-11-16 16:12:26 +01:00 |
|
Oleksandr Redko
|
660968fda3
|
refactor: remove redundant fmt.Fprintln calls (#1130)
|
2024-11-16 12:11:18 +01:00 |
|
Oleksandr Redko
|
772285d9c7
|
fix: change URL to the page with rules descriptions (#1129)
|
2024-11-16 12:09:38 +01:00 |
|
Oleksandr Redko
|
3378f7033b
|
refactor: replace mutex with sync.Once for rule configuration (#1118)
|
2024-11-15 12:03:59 +01:00 |
|
chavacava
|
7ee4500e12
|
fix: fixes #1103 by fixing the processing of max-public-structs arguments (#1114)
|
2024-11-15 09:43:53 +01:00 |
|
chavacava
|
cc3ad5f702
|
fix #1066 by ignoring what seems legit modification of value receivers
|
2024-11-15 09:41:29 +01:00 |
|
Oleksandr Redko
|
ce6965265a
|
fix: cli tests on Windows; add tests-on-windows workflow
|
2024-11-15 09:39:39 +01:00 |
|
Oleksandr Redko
|
74e2417f7d
|
fix: revive hangs on Windows if go.mod is not found
|
2024-11-15 09:37:53 +01:00 |
|
Oleksandr Redko
|
34e9d78df9
|
docs: fix mylib example (#1121)
|
2024-11-14 11:45:07 +01:00 |
|
Oleksandr Redko
|
0789e36cd9
|
docs: lowercase arguments for consistency
|
2024-11-14 07:00:07 +01:00 |
|
Oleksandr Redko
|
8c274eb700
|
docs: range-val-* rules are irrelevant for Go 1.22+
|
2024-11-12 20:37:54 +01:00 |
|
Oleksandr Redko
|
4c958ef739
|
refactor: remove redundant defer
|
2024-11-12 09:26:30 +01:00 |
|
Oleksandr Redko
|
be95bfa705
|
refactor: rename files to follow Go convention
|
2024-11-11 19:31:18 +01:00 |
|
centralab
|
c0d4d07ab6
|
fix: nil panic on old go.mod (issue #1100)
|
2024-11-11 18:50:12 +01:00 |
|
renovate[bot]
|
a4d0c434e1
|
fix(deps): update module golang.org/x/tools to v0.27.0 (#1102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
2024-11-11 15:42:21 +01:00 |
|