1
0
mirror of https://github.com/mgechev/revive.git synced 2025-10-30 23:37:49 +02:00

1263 Commits

Author SHA1 Message Date
Anupriya
cc04b177a4 useless-fallthrough: do not report fallthrough before default (#1549)
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
2025-10-24 09:35:19 -07:00
Godsgift Uloamaka Ebite
26d803fc96 package-directory-mismatch: ignore mismatch in root directory (#1548) 2025-10-24 09:26:03 -07:00
spags
91147bf0b5 feature(package-directory-mismatch): allow test package names in version paths (#1547) 2025-10-23 16:20:40 +02:00
Godsgift Uloamaka Ebite
1bc57ac6f3 feature(deep-exit): detect exit-triggering flag usage (#1544) 2025-10-23 16:17:59 +02:00
Godsgift Uloamaka Ebite
d32d4a008f feature: package-directory-mismatch - ignore main_test package name (#1545)
Thanks for the PR @uloamaka !
2025-10-15 07:24:17 +02:00
Collie
bc38b79980 feature: var-naming - add more bad package names and check for collisions with standard lib packages (#1540) 2025-10-15 07:20:44 +02:00
renovate[bot]
c603da3180 chore(deps): update golang docker tag to v1.25 (#1474) 2025-10-06 09:21:35 +02:00
Emmanuel Ferdman
c930786fdb fix: rule confusing-naming false positive on multiple blank identifiers (#1536) 2025-10-06 09:13:26 +02:00
Peter Lyons
c037639bc0 fix: rule struct-tag missing go-validator tags (#1526) (#1533) 2025-09-26 06:40:51 +02:00
chavacava
ef1b9fc156 fix: false positive for return in a defer function has no effect (#1531) 2025-09-25 17:15:34 +02:00
chavacava
79e63ae064 feature: new rule unnecessary-if (#1520) 2025-09-22 19:07:45 +02:00
chavacava
3220c1f04e feature: support cbor struct tag in struct-tag rule (#1527) 2025-09-22 11:03:36 +02:00
chavacava
8be7fa65f0 fix: rule struct-tag false positive on validate:omitempty (#1525) 2025-09-20 12:16:31 +02:00
chavacava
ec8439e646 feature: add configuration notation in struct-tag rule to omit checking a tag (#1515) 2025-09-19 07:10:52 +02:00
renovate[bot]
5736df325c fix(deps): update module github.com/spf13/afero to v1.15.0 (#1521)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 01:26:02 -07:00
Artem
b827c22c4d struct-tag: support codec struct tag (#1507) 2025-09-08 09:20:24 +02:00
chavacava
b24647aaec feature: new rule forbidden-call-in-wg-go (#1514) 2025-09-05 20:05:53 +02:00
Oleksandr Redko
490b37dbbe docs: enhance struct-tag rule description (#1512) 2025-09-04 05:36:58 -07:00
Oleksandr Redko
4d5fd518ca docs: fix MD024/no-duplicate-heading lint issue (#1513) 2025-09-04 04:49:06 -07:00
chavacava
44e19927c0 doc: add before/after examples to bool-literal-in-expr description (#1500) 2025-08-31 10:25:19 +02:00
chavacava
b89a95979b doc: add before/after examples to confusing-results description (#1503) 2025-08-31 10:19:44 +02:00
chavacava
89d77d3be8 doc: clearly identify configuration examples (#1504) 2025-08-30 10:48:25 +02:00
chavacava
ca5fb06a93 feature: new rule inefficient-map-lookup (#1491) 2025-08-29 08:35:08 +02:00
Oleksandr Redko
0e76b4d0b4 docs: update TOC; check for TOC consistency in GHA (#1493) 2025-08-28 07:54:28 -07:00
chavacava
e1d05f7a0e refactor: remove rule enforce-else (#1495) v1.12.0 2025-08-28 13:09:42 +02:00
chavacava
fc46c84cec feature: new rule unsecure-url-scheme (#1478) 2025-08-27 17:18:37 +02:00
Oleksandr Redko
154a24fb51 docs: add info about golang code snippets (#1494) 2025-08-27 02:31:47 -07:00
Oleksandr Redko
4a6facc63c docs: add missing use-waitgroup-go TOC entry (#1492) 2025-08-27 01:36:14 -07:00
chavacava
2db7034aca feature: new rule use-waitgroup-go (#1484) 2025-08-26 19:04:46 +02:00
chavacava
14c91fed1d feature: struct-tag warns on (useless) options on ignored fields (#1487) 2025-08-24 07:17:09 +02:00
chavacava
cf4901574e refactor: replaces calls to astutils.PickNodes with calls to astutils.SeekNode when possible (#1482) 2025-08-23 17:41:10 +02:00
chavacava
ccf85a25e5 fix: default formatter generates an extra new line (#1485) 2025-08-17 11:31:20 +02:00
chavacava
9fd8adbcd0 feature: detect useless options in spanner struct tag (#1483) 2025-08-17 07:50:54 +02:00
Baranov Victor
15aded98f6 feature: new rule package-directory-mismatch (#1429) 2025-08-16 19:16:20 +02:00
Sarthak S. Waghmare
f07a47a1bf feature: support spanner struct tag in struct-tag rule (#1479) 2025-08-15 21:30:40 +02:00
chavacava
9d600b6df1 refactor: reduces the number of references to deprecated *ast.Object (#1473) 2025-08-14 04:25:47 -07:00
Oleksandr Redko
b34c8e96ec refactor: fix musttag lint issues (#1464) 2025-08-11 01:43:23 -07:00
Oleksandr Redko
e5f7980ca3 chore: run tests and lint on push to main branch (#1470) 2025-08-08 04:08:20 -07:00
Baranov Victor
74e4f6318d chore: add macOS test runner (#1465) 2025-08-08 03:55:52 -07:00
renovate[bot]
74bbe3b1a6 fix(deps): update module golang.org/x/tools to v0.36.0 (#1469) 2025-08-08 08:30:54 +02:00
renovate[bot]
da506562bb fix(deps): update module golang.org/x/mod to v0.27.0 (#1468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 22:32:08 +02:00
renovate[bot]
3148906153 chore(deps): update module golang.org/x/sys to v0.35.0 (#1466)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 22:30:55 +02:00
renovate[bot]
22dfd66375 chore(deps): update module golang.org/x/text to v0.28.0 (#1467)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 22:29:05 +02:00
chavacava
84b565b0bf feature: new rule useless-fallthrough (#1462) 2025-08-07 14:18:58 +02:00
chavacava
47205455ea feature: new rules identical-switch-branches and identical-ifelseif-branches
These new rules result from the refactoring of `identical-branches` that will cover only simple/single if..else statements.
2025-08-06 11:19:12 +02:00
chavacava
f353e4b0e5 feature: new rule identical-ifelseif-conditions (#1454) 2025-08-04 06:58:14 +02:00
chavacava
12d96adfd4 feature: new rule enforce-else (#1436) 2025-08-04 06:43:36 +02:00
chavacava
3f4591cd9a feature: new rule identical-switch-conditions (#1451) 2025-08-02 08:04:18 +02:00
chavacava
68ac5514f5 feature: detect identical-branches in switch statements (#1448) 2025-07-30 15:55:03 +02:00
chavacava
9fc7dc7d77 feature: identical-branches: check branches of "if ... else if" chains (#1440) 2025-07-29 16:57:06 +02:00