1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-05 00:28:53 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
f4976873e7 docs: improve comments for functions; enable godot (#1382) 2025-05-27 07:44:24 +02:00
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
51ac5c2524 feature: new rule unnecessary-format to spot unnecessary use of formatting functions (#1372) 2025-05-26 11:07:42 +02:00
dbcfd66945 fix(1323): false positive in get-return rule for HTTP Get handlers (#1325) 2025-04-27 13:06:29 +02:00
9a54195228 fix: panic with getFieldTypeName (#1229)
* fix: panic with interface type and array

* replaces panic with a return of a default string

* review

---------

Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2025-02-12 14:10:48 +01:00
fd8d99d716 fix (1217): getting parameter type names panics in presence of generic types (#1218) 2025-02-04 12:26:17 +01:00
24a9325b5a fix: ast_utils.FuncSignatureIs panics with types names other than ast.Ident (#1174) 2024-12-07 15:40:39 +01:00
06192a5599 refactor: remove lint issues (#1176) 2024-12-07 14:43:25 +01:00
cb74ccbf44 chore: Improve sortables detection (#1151)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-12-02 13:02:39 +01:00