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

13 Commits

Author SHA1 Message Date
Oleksandr Redko
d81298b0ce test: fix testpackage lint issues for test and ifelse (#1582) 2025-11-15 10:24:16 -08: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
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
662e02cd70 refactor: use "filepath" instead of "path" (#1073) 2024-10-25 11:48:41 +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
Minko Gechev
6d5bc51b50 Move away from deprecated ioutils (#825)
Fix #806
2023-05-16 08:06:52 +02:00
Euan Kemp
af953e6189 Allow whitelist for the context parameter check (#616)
* Allow a whitelist for the context parameter check

This allows users to configure a set of types that may appear before
`context.Context`.

Notably, I think this rule is useful for allowing the `*testing.T` type
to come before `context.Context`, though there may be other uses (such
as putting a tracer before it, etc).

See #605 for a little more context on this.

Fixes #605

* Save a level of indentation in context-as-arg validation

We can unindent if we make the above check more specific

* refactoring taking into account chavacava's review

Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2021-12-31 17:11:18 -08:00
SalvadorC
ea51f7aa3f fix issue #537 (#538) 2021-06-29 13:04:51 -07:00
SalvadorC
c469747758 renames fixtures as testdata to avoid spurious dependencies (#359) 2020-03-02 09:12:43 -10:00
Tamir Duberstein
1b2ffe282e Improve tests (#18)
* Use subtests

* Make unexported-return type check
2018-06-11 11:22:06 -07:00
mgechev
6c9ea8cf2d Refactoring and renaming 2018-05-26 21:28:31 -07:00
mgechev
8c53dad5ec Rename and docs 2018-05-26 16:14:36 -07:00
mgechev
8187cdf97d Refactoring of the tests 2018-02-04 15:02:45 -08:00