1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
Commit Graph

40 Commits

Author SHA1 Message Date
chavacava
5ccebe86c2
Code cleaunp (#905)
* fix minor lint issue

* fix package comments

* fix comments

* removes extra empty lines

* fix import alias name
2023-09-23 10:41:34 +02:00
Bernardo Heynemann
1c283837a9
Allow revive to be called with extra linters (#650)
This change allows revive to be called from main.go
in other libraries and pass in a list of custom
linters to be added to the built-in linters found in config

Co-authored-by: Bernardo Heynemann <bernardo.heynemann@coinbase.com>
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-03-20 09:12:51 +01:00
chavacava
e0fa03a13a
Max open files (#628)
* adds max_open_files flag

* adds doc of max_open_files flag

* amends commmit
2022-02-07 17:36:03 -08:00
David Jimenez
8a3653ca49
Add debug logger (#604)
Signed-off-by: David Jimenez <dvejmz@sgfault.com>
2021-10-20 19:32:31 +02:00
Jeferson Ferreira
b7d1908051
Avoids missing version description when using go install (#600) 2021-10-17 20:30:33 +02:00
David Jimenez
b331445a16
Set all version flags at build time so they have correct values (#593) 2021-10-15 10:35:15 +02:00
Jan Steinke
71b31e26ab
overwrite error status code from config with set_exit_status (#589)
add set_exit_status flag
2021-10-12 22:10:35 +02:00
Ahmed
7abb883d0f
Add version command to show binary build info (#506)
add version cli flag to show binary build info
2021-03-23 20:45:31 +01:00
SalvadorC
93b26c7949
adds "exclude" knob in configuration (#505) 2021-03-20 15:43:44 -07:00
SalvadorC
50f01f660d
fix issue 470 (#477) 2020-10-29 15:11:52 +02:00
Tymoteusz Blazejczyk
2e98c7c63a fix(color): moved global color calls to separate functions
There is an initialization order issue when forcing colorizing.

Every calls from the fatich/color package must be done by a function
not during global variable initialization.
2020-05-14 14:49:30 -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
mgechev
64636caedd
Fix package level type checking 2018-05-31 19:49:39 -07:00
mgechev
1899499017
Update logo 2018-05-26 15:29:05 -07:00
mgechev
31b194f9bf Update the error code handling 2018-02-03 19:33:14 -08:00
mgechev
837a85713b Update failures 2018-02-02 13:11:40 -05:00
mgechev
cf63744a6a Fix formatter and output 2018-01-27 23:03:07 -08:00
mgechev
1870854374 Improvements 2018-01-27 16:37:30 -08:00
mgechev
8746067321 Implement command line arguments 2018-01-27 16:22:17 -08:00
mgechev
a227153bc2 Improve the cli formatter 2018-01-27 11:52:36 -08:00
mgechev
22d1e33541 Add help 2018-01-26 20:57:51 -08:00
mgechev
5ec3daa762 API improvements 2018-01-26 20:45:17 -08:00
mgechev
466e9339e4 Fix issues and add improvements 2018-01-26 20:34:20 -08:00
mgechev
dec0ecdc47 Improve main 2018-01-26 20:25:22 -08:00
mgechev
9f437c09a5 Basic configuration 2018-01-26 20:20:49 -08:00
mgechev
faa19bd4c1 Update main.go 2018-01-25 11:47:39 -08:00
mgechev
6c220f5a65 Fix exit codes 2018-01-24 15:46:43 -08:00
mgechev
f926547659 Refactoring 2018-01-24 15:44:03 -08:00
mgechev
4f31c1639f Implement severity 2018-01-24 15:41:40 -08:00
mgechev
cc249b6cfa Add extra rule 2018-01-23 23:01:49 -08:00
mgechev
25cfe541d2 Update formatters 2018-01-23 18:19:06 -08:00
mgechev
98dce265c6 Refactoring 2018-01-21 18:04:41 -08:00
mgechev
8f8a8b5587 Implement extra rule 2017-11-19 18:23:01 -08:00
mgechev
5d652029ae Refactor revive 2017-11-19 17:18:16 -08:00
mgechev
5bdfe48c09 Update disabled intervals 2017-09-01 21:46:54 -07:00
mgechev
7b970568f5 Implement initial basic version of enabling/disabling rules 2017-09-01 21:03:10 -07:00
mgechev
1cdf90891b Refactoring 2017-08-29 10:47:29 -07:00
mgechev
555d51617f Refactor 2017-08-27 21:02:59 -07:00
mgechev
5b1d2b944c feat: implement extensible model 2017-08-27 20:53:12 -07:00
mgechev
891f525abc Initial commit 2017-07-04 19:37:19 +03:00