1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-03 00:26:51 +02:00
Commit Graph

21 Commits

Author SHA1 Message Date
43a44af30f refactor: apply suggestions from gopls modernize (#1282) 2025-03-28 09:32:30 +01:00
6d0498cb97 refactor: simplify File.disabledIntervals, add tests (#1216) 2025-03-07 06:18:24 +01:00
77616f0d30 refactor: fix 'use-any' revive issues (#1204) 2025-01-22 16:45:41 +01:00
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
f6a38208af refactor: code cleanup (#1177) 2024-12-08 11:08:54 +01:00
0afba4ff15 refactor: enforce map and slice style (#1131) 2024-11-16 18:05:30 +01:00
6b745b0075 fix lint issues (#1038) 2024-09-16 09:32:34 +02:00
310d1d76e4 per-rule file exclude filters (#850) (#857) 2023-08-12 08:21:11 +02:00
04728cf0de Lint cleanup (#679) 2022-04-10 11:55:13 +02:00
31fbdb1833 Fix/677 (#678) 2022-04-10 09:06:59 +02:00
577441d60c format sources w/ gofumpt (#643)
Signed-off-by: subham sarkar <sarkar.subhams2@gmail.com>
2022-03-02 08:24:55 +01:00
9c30b4479c Run revive over a invalid go source file (#364) (#598) 2021-10-17 19:58:29 +02:00
0bcc996acf fixed some complex code (#580) 2021-09-26 08:28:58 +02:00
89f108c22a fix issue #540 (#543) 2021-07-11 21:31:46 -07:00
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
202adf0786 Fix 102 (#103)
Do not require additional newline for disabling multiple rules
2019-01-24 09:14:43 -08:00
c878d3090d fixes issue #98 (#99) 2019-01-18 07:33:40 -08:00
d2e0e5a0ed Introduce the empty-lines rule that verifies there are no {head,trail}ing lines (#81) 2018-10-11 14:52:46 -07:00
deb72d6238 Add default formatter 2018-01-27 17:01:18 -08:00
7d066071ce Add rules 2018-01-25 10:35:27 -08:00
f926547659 Refactoring 2018-01-24 15:44:03 -08:00