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

24 Commits

Author SHA1 Message Date
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
Oleksandr Redko
f4976873e7 docs: improve comments for functions; enable godot (#1382) 2025-05-27 07:44:24 +02:00
Oleksandr Redko
e8ed573739 refactor: enable gocritic linter; fix lint issues (#1375) 2025-05-26 02:40:17 -07:00
Oleksandr Redko
43a44af30f refactor: apply suggestions from gopls modernize (#1282) 2025-03-28 09:32:30 +01:00
Oleksandr Redko
6d0498cb97 refactor: simplify File.disabledIntervals, add tests (#1216) 2025-03-07 06:18:24 +01:00
Oleksandr Redko
77616f0d30 refactor: fix 'use-any' revive issues (#1204) 2025-01-22 16:45:41 +01:00
chavacava
e23fcdb498 refactor: modifies linting machinery to use Failure as a mean to signal erros in rules application (#1178) 2024-12-08 15:56:14 +01:00
chavacava
f6a38208af refactor: code cleanup (#1177) 2024-12-08 11:08:54 +01:00
Oleksandr Redko
0afba4ff15 refactor: enforce map and slice style (#1131) 2024-11-16 18:05:30 +01:00
yuta nishiyama
6b745b0075 fix lint issues (#1038) 2024-09-16 09:32:34 +02:00
Fagim Sadykov
310d1d76e4 per-rule file exclude filters (#850) (#857) 2023-08-12 08:21:11 +02:00
chavacava
04728cf0de Lint cleanup (#679) 2022-04-10 11:55:13 +02:00
chavacava
31fbdb1833 Fix/677 (#678) 2022-04-10 09:06:59 +02:00
subham sarkar
577441d60c format sources w/ gofumpt (#643)
Signed-off-by: subham sarkar <sarkar.subhams2@gmail.com>
2022-03-02 08:24:55 +01:00
doniacld
9c30b4479c Run revive over a invalid go source file (#364) (#598) 2021-10-17 19:58:29 +02:00
sina safari
0bcc996acf fixed some complex code (#580) 2021-09-26 08:28:58 +02:00
SalvadorC
89f108c22a fix issue #540 (#543) 2021-07-11 21:31:46 -07:00
SalvadorC
55cfae63e9 Conf reason rule disabling (#193)
* adds support for comments when enabling/disabling

* adds config flag to require disabling reason

* Update lint/file.go

adds code fmt suggestion by @mgechev

Co-Authored-By: Minko Gechev <mgechev@gmail.com>

* moves regexp compilation out of the function
fix typo in condition

* adds support for comments when enabling/disabling

* skips incomplete directives and generate a failure

* adds _directive_ concept to cope with specify-disable-reason

* adds doc
gofmt

* fixes severity is ignored
2019-08-02 08:21:33 -07:00
SalvadorC
202adf0786 Fix 102 (#103)
Do not require additional newline for disabling multiple rules
2019-01-24 09:14:43 -08:00
SalvadorC
c878d3090d fixes issue #98 (#99) 2019-01-18 07:33:40 -08:00
Genadi Samokovarov
d2e0e5a0ed Introduce the empty-lines rule that verifies there are no {head,trail}ing lines (#81) 2018-10-11 14:52:46 -07:00
mgechev
deb72d6238 Add default formatter 2018-01-27 17:01:18 -08:00
mgechev
7d066071ce Add rules 2018-01-25 10:35:27 -08:00
mgechev
f926547659 Refactoring 2018-01-24 15:44:03 -08:00