1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
Commit Graph

1008 Commits

Author SHA1 Message Date
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 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
Oleksandr Redko
3bead6f4a0
feat: add file-length-limit rule (#1072) 2024-10-26 07:40:24 -03:00
Oleksandr Redko
599874c773
chore: remove unnecessary empty lines (#1080) 2024-10-26 07:35:02 -03:00
Ludovic Fernandez
ad0f03a03f
chore: fix typo (#1079) 2024-10-25 09:52:31 -03:00
Oleksandr Redko
8ef730cd03
docs(README): fix TOC, add empty lines (#1074) 2024-10-25 09:34:38 -03:00
renovate[bot]
7fa1b2786d
chore(deps): update golang docker tag to v1.23 (#1071)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-25 09:33:34 -03:00
Ludovic Fernandez
1a3d95f6ab
chore: update actions (#1075)
* chore: update GitHub actions

* chore: move PR template
2024-10-25 09:32:38 -03:00
Oleksandr Redko
662e02cd70
refactor: use "filepath" instead of "path" (#1073) 2024-10-25 11:48:41 +02:00
Markus Wiegand
842b3e2fa3
enhance Docker build process (#1070) 2024-10-24 12:56:51 -03:00
renovate[bot]
3780c36134
fix(deps): update module github.com/fatih/color to v1.18.0 (#1067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 17:59:56 +02:00
Marcin Federowicz
501cc4a675
feat: ignore vendor if no exclude set (#1058) 2024-10-17 15:25:24 -07:00
renovate[bot]
cea28f882a
fix(deps): update module golang.org/x/tools to v0.26.0 (#1057) 2024-10-09 18:02:39 +02:00
Marcin Federowicz
d76ffb98f6
update testdata: var case (#1055) 2024-10-02 12:20:39 +02:00
Marcin Federowicz
ff7b0adb4c
rule.exported: add feature to disable checking on const,method,function, variable (#1047)
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2024-10-02 10:46:52 +02:00
chavacava
ca2a32b087
code cleanup (#1054) 2024-10-01 12:14:02 +02:00
chavacava
798ce21849
makes exported rule behave as golint (#1051)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-09-29 22:50:49 +02:00
chavacava
fa37c00bdf
removes redefinition of max built-in (#1052) 2024-09-29 10:08:15 +02:00
chavacava
e9b7f3aa68
bumps go version to 1.21.1 and update dependencies (#1050)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-09-28 18:02:46 +02:00
chavacava
4c3641ebc3
fix #1032 by comparing string representations of types (#1049) 2024-09-24 11:29:20 +02:00
Denis Voytyuk
3249a5ef06
fix: enforce-repeated-arg-type-style rule finds false positives in case of invalid types (#1046)
* fix: enforce-repeated-arg-type-style rule finds false positives in case of invalid types

* Fix oversight issue
2024-09-23 13:48:49 +02:00
chavacava
53a111d36e
adds check for receiver names length (#1048)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
Co-authored-by: yuta nishiyama <57400690+ytnsym@users.noreply.github.com>
2024-09-23 12:38:39 +02:00
chavacava
a65fb8d1b5
adds tests for specific go versions (#1043)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-09-20 16:09:24 +02:00
yuta nishiyama
4ac5cb5e39
fix gitignore (#1042) 2024-09-19 08:11:04 +02:00