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
chavacava
6b060cd03a
fix(1438): enforce-switch-style - false positive with pure return based switch ( #1446 )
2025-07-28 21:30:13 +02:00
Oleksandr Redko
5a1e5fda4c
chore: Add Copilot instructions ( #1437 )
...
* chore: Add Copilot instructions
* Update .github/copilot-instructions.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* update DEVELOPING
* move to instructions
* update DEVELOPING
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-25 12:11:08 +02:00
Baranov Victor
b969b8be4a
modifies-parameter: handle slices.Delete and slices.DeleteFunc ( #1427 )
2025-07-22 04:21:34 -07:00
ccoVeille
40a690dff5
exported: improve detection and error message ( #1403 )
2025-07-22 01:47:37 -07:00
Oleksandr Redko
7de7cf3076
docs: add DeepWiki link to README ( #1432 )
2025-07-22 01:45:40 -07:00
ccoVeille
984b38e246
chore: improve error reporting in test suite ( #1431 )
2025-07-21 02:21:37 -07:00
Oleksandr Redko
c971cb750b
chore: improve comments for config files ( #1424 )
2025-07-12 19:44:39 +02:00
Oleksandr Redko
a15fdfd322
chore: clean up GoReleaser config, remove unnecessary hooks ( #1422 )
2025-07-12 07:33:28 -07:00
Oleksandr Redko
809768cffe
chore: enable formatters in golangci-lint config ( #1421 )
2025-07-12 07:32:39 -07:00
renovate[bot]
92243279ea
fix(deps): update module golang.org/x/tools to v0.35.0 ( #1423 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
v1.11.0
2025-07-12 00:19:24 -07:00
Asaf Krenzler
cc180e221e
var-naming: option to skip initialism name checks ( #1415 )
...
Co-authored-by: akrenzler <akrenzler@paloaltonetworks@com>
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com >
2025-07-11 04:45:38 -07:00
Oleksandr Redko
594e56503b
chore: update golangci-lint; enable a few revive rules ( #1420 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-11 04:19:23 -07:00
renovate[bot]
772659ea1d
fix(deps): update module golang.org/x/mod to v0.26.0 ( #1419 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 09:25:43 +02:00
renovate[bot]
8d3b01013b
chore(deps): update module golang.org/x/text to v0.27.0 ( #1418 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 09:24:39 +02:00
renovate[bot]
8e0de86d83
fix(deps): update module golang.org/x/sync to v0.16.0 ( #1417 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 09:19:26 +02:00
renovate[bot]
e585c9be3a
chore(deps): update module golang.org/x/sys to v0.34.0 ( #1416 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 09:18:35 +02:00
Ville Skyttä
47b44556d9
docs: improve unhandled-error ignore argument examples ( #1412 )
2025-07-08 03:25:19 -07:00
Oleksandr Redko
03e81029a8
docs: improve Installation section ( #1409 )
2025-06-25 06:29:58 -07:00
Oleksandr Redko
77d0d4a54b
early-return: detect short deviated statements ( #1396 )
2025-06-25 13:51:18 +02:00
Oleksandr Redko
456cbd0aa8
var-naming: handle possible panic ( #1405 )
...
* var-naming: handle possible panic
* Update rule/var_naming.go
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com >
* fix test
* update error message
---------
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com >
2025-06-20 13:03:56 +02:00
Ludovic Fernandez
87bd73b28e
unexported-return: fix type aliases support ( #1408 )
2025-06-18 07:58:16 -07:00
Ludovic Fernandez
24c008dd00
fix: var-naming rule extraBadPackageNames type ( #1404 )
2025-06-16 13:04:53 -07:00
Oleksandr Redko
04983a692f
exported: ignore exported symbols from the main package ( #1398 )
2025-06-16 14:23:47 +02:00
renovate[bot]
426a27ac0d
fix(deps): update module golang.org/x/tools to v0.34.0 ( #1402 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 02:13:36 -07:00
ccoVeille
e515d11480
unexported_return: exclude main package and test and tests files ( #1399 )
...
The content of these files cannot be imported by other packages,
so they are excluded from the unexported_return rule.
2025-06-06 09:48:30 +02:00
renovate[bot]
a538e521c8
chore(deps): update module golang.org/x/text to v0.26.0 ( #1400 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-05 09:50:32 -07:00
chavacava
cfd69439bb
feature: new rule enforce-switch-default ( #1390 )
2025-06-01 09:57:47 +02:00
chavacava
6becd540e4
feature: new rule use-fmt-print ( #1389 )
...
print and println built-in functions are not recommended for use-cases other than language boostraping and are not guaranteed to stay in the language.
This commit adds a new rule, use-fmt-print, that spots uses of print and println, and recommends using their fmt equivalents.
v1.10.0
2025-05-28 12:57:37 +02:00
chavacava
a260ed9034
refactor: simplifies the implementation of rule call-to-gc ( #1388 )
2025-05-27 18:08:33 +02:00
ccoVeille
50dddb405b
feature: detect time/date out of bounds in time-date rule ( #1370 )
...
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com >
2025-05-27 03:25:01 -07:00
Oleksandr Redko
bbcfa7f7ae
docs: make contributors section shorter ( #1381 )
2025-05-27 02:26:46 -07:00
Oleksandr Redko
f4976873e7
docs: improve comments for functions; enable godot ( #1382 )
2025-05-27 07:44:24 +02:00
ccoVeille
398f7a83eb
chore: enforce American English spelling in golangci-lint ( #1384 )
2025-05-27 07:43:06 +02:00
ccoVeille
fb7687352c
chore: enable dupword linter in golangci-lint ( #1385 )
...
There is no errors right now, but it could avoid future issues.
2025-05-27 07:42:31 +02:00
ccoVeille
a3338de10b
chore: enable thelper linter in golangci-lint ( #1386 )
...
It allows us to report errors at the right place in the tests.
There was only one function that was not using the helper.
It has been fixed to use it.
2025-05-27 07:41:11 +02:00
ccoVeille
b1c9032746
feature: Add nil timezone handling detection to time-date rule ( #1377 )
2025-05-26 14:32:55 +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
87b146c60e
refactor: gofmt testdata ( #1379 )
2025-05-26 03:54:46 -07:00
Oleksandr Redko
e8ed573739
refactor: enable gocritic linter; fix lint issues ( #1375 )
2025-05-26 02:40:17 -07:00
chavacava
51ac5c2524
feature: new rule unnecessary-format to spot unnecessary use of formatting functions ( #1372 )
2025-05-26 11:07:42 +02:00
ccoVeille
ab05438914
chore: improve time-date decimal tests ( #1378 )
...
We want to ensure that the decimal literal are also detected in
functions, and not just at the package level.
This is a safeguard against future changes.
2025-05-26 09:54:33 +02:00
ccoVeille
a4737e935a
fix: avoid false positive for blank identifier ( #1376 )
...
The fact that the error variable is not used is out of the scope of the rule
This pattern that can be found in benchmarks and examples.
It should be allowed.
2025-05-25 17:36:22 +03:00
Oleksandr Redko
a56cf7290e
docs: format code snippets in markdown files ( #1324 )
2025-05-24 12:29:40 -07:00
chavacava
7b38dd84f1
refactor: modifies test utils functions by removing redundant test instructions parsing and simplifying asserting functions
2025-05-24 19:05:19 +02:00
chavacava
94cd7bdec2
refactor: removes get from getters names ( #1373 )
2025-05-24 19:03:05 +02:00