Miles Delahunty
b87d391ee4
Fix early-return false positive and other tweaks ( #776 )
2022-11-27 13:23:51 +01:00
Shubh Karman Singh
5f26378cc2
Comment spacing rule ( #761 )
...
* added comment-spacing rule for revive
* added test for comment-spacings rule
* adds comment-spacings rule to the configuration
* renames the source file to match rule name
* adds some tests
* refactor Comment-Spacings Rule to remove whiteList and avoid Panic at empty comment
* refactoring and adds rule configuration
* adds rule documentation
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-10-29 19:32:42 +02:00
Tom
5cc9e27ddb
docs(README): add missing links and fix a broken one ( #758 )
2022-10-11 21:32:14 -07:00
Hsing-Yu (David) Chen
b4201ff650
Fix broken link of 'Comment Directives' in README ( #753 )
2022-10-06 11:05:23 +02:00
Rafael Madriz
a4add4a769
docs(README): Add neovim support in text editors section ( #734 )
...
* add instructions for using revive from neovim
2022-08-20 06:58:47 +02:00
ccoVeille
fa350e6eb8
fix some typos in repository ( #728 )
2022-08-08 13:48:59 +02:00
ccoVeille
160dfbd4ad
fix documentation ( #730 )
...
An entry was missing since banned-characters was added
Closes #729
2022-08-08 13:21:09 +02:00
likyh
23ed063531
doc: add devlake to README usage ( #704 )
...
Co-authored-by: linyh <yanghui@meri.co>
2022-07-12 10:15:02 +02:00
hulk
ce7f0669d3
Allow to customize user functions in rule error-strings
( #703 )
...
* Allow to customize user functions in rule `error-strings`
* Rollback the Available Rules table format in README
* adds memoization of the rule's configuration
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-07-05 21:51:50 +02:00
chavacava
a67ecdd7ba
add rule datarace ( #683 )
2022-04-18 09:45:42 -07:00
mgechev
639d12bb4f
Merge branch 'master' of github.com:mgechev/revive
...
* 'master' of github.com:mgechev/revive:
Fix README example's missing import (#661 )
2022-03-29 13:34:57 -07:00
mgechev
8bbeab214b
Update the contributors list
2022-03-29 13:34:37 -07:00
Bernardo Heynemann
5996bb0b66
Fix README example's missing import ( #661 )
...
* Fix example missing import
* Tab and spaces
Co-authored-by: Bernardo Heynemann <bernardo.heynemann@coinbase.com>
2022-03-29 13:30:36 -07:00
chavacava
671c55d82e
adds rule use-any ( #660 )
2022-03-29 11:25:38 -07:00
Bernardo Heynemann
318db94210
Separating lib from cli ( #655 )
...
* Separating lib from cli
* Renamed NewRevive to New
* Added GetLintFailures helper function
* Moved formatter to call to format since that's when it's needed
* makes fields of Revive struct non-public
* minor modifs in tests: remove unnamed constats
* Added lint package management to lint command
* README message for using revive as a library
* README formatting
* Removed unused method
* Slightly improved wording in README
* Handling format errors
* Renaming file to better reflect intent
* Refactoring pattern usage
* README heads
* renames excludePaths into excludePatterns
Co-authored-by: Bernardo Heynemann <bernardo.heynemann@coinbase.com>
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-03-29 17:31:52 +02:00
chavacava
5f6f0eb142
adds usage of revive as third party library ( #653 )
2022-03-20 12:53:57 +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
doniacld
5d04216294
Add optimize-operands-order rule ( #599 ) ( #603 )
...
Co-authored-by: SalvadorC <salvadorcavadini+github@gmail.com>
2021-10-23 09:29:14 +02:00
doniacld
c0f2d40eaa
Add Docker image in release ( #489 ) ( #590 )
2021-10-15 08:36:14 +02:00
doniacld
be81121399
Add banned characters rule ( #532 ) ( #591 )
2021-10-14 20:56:29 +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
Abel
935acca925
Fix typo for gorush description ( #588 )
2021-10-08 09:33:22 +02:00
sina safari
62db66915b
add new rule time equal ( #584 )
2021-10-01 13:55:53 +02:00
SalvadorC
18cdb55850
Exported config ( #565 )
...
* working version
* adds flag for replacing "stutters"
2021-08-26 08:36:24 -07:00
Bernhard Reisenberger
406b1ce110
range-val-address: fix false positive ( #554 )
...
range-val-address: fix false positive (closes #554 )
2021-08-26 08:41:58 +02:00
mgechev
c383001338
Add Cadence by Uber
2021-08-18 11:03:47 -07:00
SalvadorC
351bb1277e
updates installation instructions ( #562 )
2021-08-17 18:02:22 +02:00
SalvadorC
c939bb6af8
add new rule useless-break ( #551 )
2021-08-15 15:30:08 -07:00
mgechev
a9ba67bacb
Update the list of contributors
2021-07-11 21:35:26 -07:00
Abel
daffd5f7c7
Fix a typo: "Rule tuning" ( #539 )
2021-06-30 18:25:34 +02:00
SalvadorC
ea51f7aa3f
fix issue #537 ( #538 )
2021-06-29 13:04:51 -07:00
Robert Deusser
575ce5f61a
new rule: nested-structs ( #530 )
...
new rule: nested-structs
2021-06-15 11:36:41 +02:00
mgechev
0ade5dc9f8
Update the list of contributors
2021-06-02 10:41:53 -07:00
SalvadorC
052235cc63
configuring revive in golanci-lint ( #523 )
2021-05-23 13:31:35 -07:00
SalvadorC
b298ffe4ee
Adds configuration option to enable all available rules ( #521 )
...
Adds configuration option to enable all available rules
2021-05-21 09:53:10 +02:00
Keith Scroggs
2afe668e7b
Check string literals against regular expressions ( #511 )
...
Add string-format rule
2021-04-18 18:35:30 +02:00
SalvadorC
f2d79cc85d
adds SARIF formatter ( #508 )
2021-04-05 11:54:33 -07:00
Dmitry Filimonov
269e82afb9
Update the list of projects using revive ( #507 )
2021-03-30 13:33:56 -07:00
SalvadorC
46f65914e3
new rule function-length ( #504 )
2021-03-20 15:45:30 -07:00
Daniil Maslov
cc4da66338
Add information about GoLand support on README ( #502 )
2021-03-13 12:11:59 +01:00
mgechev
546530cd1f
Update the list of projects using revive
2020-08-21 23:48:44 +03:00
mgechev
dd6fd357b6
Update the list of contributors
2020-08-03 17:29:08 +03:00
SalvadorC
1412d0c6ed
new rule: unexported-naming ( #443 )
...
* new rule: unexported-naming
* better failure message
2020-07-23 02:17:20 +03:00
Penghui Liao
4be54f7261
Update ALE configuratoin guide
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2020-07-07 18:50:06 -07:00
chavacava
ad3100c9ec
adds defer rule
2020-06-08 09:40:38 -07:00
SalvadorC
3b38f57c2d
Merge pull request #413 from chavacava/unconditional-recursion
...
Unconditional recursion
2020-05-15 22:08:24 +02:00
Tymoteusz Blazejczyk
acce9eb309
feat(color): updated the README.md file about overriding colorization
2020-05-14 14:49:30 -07:00
chavacava
65beded8c4
Merge remote-tracking branch 'upstream/master' into unconditional-recursion
2020-05-13 22:13:08 +02:00
SalvadorC
1da965b65f
fix issue 386: Incorrectly identifies channel draining as "empty code… ( #415 )
...
* fix issue 386: Incorrectly identifies channel draining as "empty code block"
* updates doc of empty-block rule
2020-05-10 17:43:56 -07:00
chavacava
4eb7ae0821
documents unconditional-recursion
2020-05-09 17:19:37 +02:00