1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00
Commit Graph

35 Commits

Author SHA1 Message Date
Oleksandr Redko
dbcecde212 chore: format code with gofumpt (#1583) 2025-11-17 03:35:59 -08:00
Oleksandr Redko
5dc6ed197b refactor: enable few linters in golangci-lint config (#1580) 2025-11-15 10:50:52 -08:00
Oleksandr Redko
d1dd6ee961 refactor: remove unused checkNumberOfArguments (#1581) 2025-11-15 09:35:57 -08:00
Oleksandr Redko
a295bebe6e refactor: enable godoclint linter in golangci-lint (#1576) 2025-11-14 08:02:48 -08:00
Peter Lyons
c037639bc0 fix: rule struct-tag missing go-validator tags (#1526) (#1533) 2025-09-26 06:40:51 +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
Artem
b827c22c4d struct-tag: support codec struct tag (#1507) 2025-09-08 09:20:24 +02:00
chavacava
14c91fed1d feature: struct-tag warns on (useless) options on ignored fields (#1487) 2025-08-24 07:17:09 +02:00
chavacava
9fd8adbcd0 feature: detect useless options in spanner struct tag (#1483) 2025-08-17 07:50:54 +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
68ac5514f5 feature: detect identical-branches in switch statements (#1448) 2025-07-30 15:55:03 +02:00
Oleksandr Redko
809768cffe chore: enable formatters in golangci-lint config (#1421) 2025-07-12 07:32:39 -07:00
Oleksandr Redko
f4976873e7 docs: improve comments for functions; enable godot (#1382) 2025-05-27 07:44:24 +02:00
chavacava
92f28cb5e1 refactor: moves code related to AST from rule.utils into astutils package (#1380)
Modifications summary:

* Moves AST-related functions from rule/utils.go to astutils/ast_utils.go (+ modifies function calls)
* Renames some of these AST-related functions
* Avoids instantiating a printer config at each call to astutils.GoFmt
* Uses astutils.IsIdent and astutils.IsPkgDotName when possible
2025-05-26 13:18:38 +02:00
Oleksandr Redko
e8ed573739 refactor: enable gocritic linter; fix lint issues (#1375) 2025-05-26 02:40:17 -07:00
chavacava
c73f766ea3 fix(#1367): struct-tag with validate is missing built-in rules 2025-05-22 20:53:10 +02:00
Oleksandr Redko
a5e5d78760 chore: enable a few revive rules (#1330) 2025-05-01 02:40:29 -07:00
chavacava
f0eea95daf struct-tag: change reported messages and refactor implementation (#1292) 2025-04-10 07:43:35 +02:00
chavacava
7f7f31aaaf feature: add support for properties tag in struct-tag rule (#1289) 2025-04-05 08:38:59 +02:00
Oleksandr Redko
43a44af30f refactor: apply suggestions from gopls modernize (#1282) 2025-03-28 09:32:30 +01:00
chavacava
9919e6bbe0 refactor: replace IsAtLeastGo1* functions by IsAtLeastGoVersion (#1274) 2025-03-16 18:18:05 +01:00
chavacava
88d5434cee feature: add support for TOML struct tags in struct-tag rule (#1255) 2025-03-03 13:19:40 +01:00
chavacava
3bbfedbf43 feature: add suport of validate struct tags in struct-tag rule (#1244) 2025-02-20 19:48:35 +01:00
chavacava
4f342352f0 feature: add suport of mapstructure struct tags in struct-tag rule (#1241) 2025-02-19 14:30:29 +01:00
chavacava
a4ee892836 feature: add support of datastore struct tags in struct-tag rume (#1240) 2025-02-18 13:09:31 +01:00
chavacava
3cf67c5783 feature: add support of URL struct tags in struct-tag rule (#1239) 2025-02-17 07:18:30 +01:00
chavacava
8ece20b078 feature: add support for omitzero in rule struct-tag (#1238) 2025-02-16 11:31:17 +01:00
ccoVeille
3d1115dacd refactor: rule configuration and error management (#1185)
* refactor: avoid running rule once configuration failed

* refactor: remove deep-exit in lint/linter.go
2024-12-13 21:38:46 +01:00
Oleksandr Redko
78e927d8c7 refactor: simplify by using switch instead of if (#1190) 2024-12-12 17:42:09 +01:00
Marcin Federowicz
9b15f3fcb6 refactor: replace panic with error in rules (#1126)
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
2024-12-11 19:35:58 +01:00
Oleksandr Redko
1425e2f44c refactor: simplify with strings.Prefix, strings.CutPrefix (#1137) 2024-11-19 15:43:04 +01:00
Oleksandr Redko
3378f7033b refactor: replace mutex with sync.Once for rule configuration (#1118) 2024-11-15 12:03:59 +01:00
Oleksandr Redko
be95bfa705 refactor: rename files to follow Go convention 2024-11-11 19:31:18 +01:00