1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-05 15:05:47 +02:00

1030 Commits

Author SHA1 Message Date
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) v1.5.1 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
renovate[bot]
1070fcdffd
fix(deps): update module golang.org/x/mod to v0.22.0 (#1099)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-09 10:28:46 +01:00
Oleksandr Redko
78c3a6c363 chore: enable test shuffle and fix TestXDGConfigDirNoFile v1.5.0 2024-11-07 09:00:51 -03:00
Oleksandr Redko
2ae682968f
refactor: remove unused parameter in unexported function (#1096) 2024-11-07 08:58:37 -03:00
Oleksandr Redko
6228ba57cf
refactor: simplify tests (#1089) 2024-11-04 09:25:03 -03:00
Oleksandr Redko
0fc9613257
docs(README): Update the list of contributors (#1076) 2024-11-04 09:22:08 -03:00
Onur Cinar
e1a4191f40
Appending Indicator to the list of projects using Revive. (#1065) 2024-11-04 09:20:19 -03:00
chavacava
7c068a7dde
fix duplicated findings for string-format when there is more than one… (#1085) 2024-11-04 09:19:29 -03:00
Oleksandr Redko
fa9af82039
fix: change "GO" to "Go" in the use-any rule (#1077) 2024-11-04 09:18:50 -03:00
Oleksandr Redko
9a8587cc49
revive: add revive.toml for linting revive itself (#1094) 2024-11-04 09:18:17 -03:00
chavacava
eb18252088
adds filename-format rule (#1092) 2024-11-02 14:23:46 -03:00
Oleksandr Redko
511e4e65ff
fix: extractInstructionFromJSON returns an error (#1082) 2024-10-29 13:33:38 +01:00
Oleksandr Redko
7c29b560c3
refactor: fix typo in the field name of TestFileFilterRule (#1086) 2024-10-29 13:33:18 +01:00
Oleksandr Redko
0ac1ef7298
refactor: fix revive.early-return issues (#1087) 2024-10-29 08:48:49 -03:00
Oleksandr Redko
14babf2824
refactor: move lint.Name to name.go file (#1084) 2024-10-28 13:22:36 +01:00
chavacava
a213a5f7f6
documents default exclusion of vendor 2024-10-28 09:15:06 -03:00
Oleksandr Redko
d29323985f
refactor: add tests for isGenerated in the lint package (#1083) 2024-10-28 08:24:10 -03:00
Oleksandr Redko
21344f1bd5
refactor: change to t.Fatal(err) (#1081) 2024-10-28 08:21:57 -03:00