Minko Gechev
22b849f286
docs: update the list of contributors
2019-05-04 19:35:21 -06:00
SalvadorC
c8ee35a500
adds blacklist to unhandled-error ( #128 )
...
* adds blacklist for unhandled-error
* uses ignoreList in place of blackList
2019-04-29 19:56:12 -07:00
Pascal Masschelier
dbcb21608a
added sklearn to "Who uses revive" ( #126 )
...
added line
- [`sklearn`](https://github.com/pa-m/sklearn ) - A partial port of scikit-learn written in Go
2019-04-28 20:07:52 -07:00
SalvadorC
8aa0cd8bd4
unhandled-error (new rule) ( #124 )
...
* unhandled-error (new rule)
* better failure msg
* encapsulates error type detection
2019-04-27 19:23:17 -07:00
Minko Gechev
015086ddac
docs: update sample projects
2019-04-19 17:56:36 -07:00
Minko Gechev
edfee04f38
docs: update list of projects using revive
2019-04-19 17:53:01 -07:00
SalvadorC
00a86ae1fd
new rule: unused-receiver ( #119 )
...
* new rule: unused-receiver
* unused-receiver: adds more test cases
2019-04-18 10:35:51 -07:00
Minko Gechev
4c0c2b62da
docs: update the list of contributors
2019-04-18 07:02:50 -07:00
SalvadorC
745bcf65aa
bare-return (first working version) ( #117 )
...
New rule bare-return
2019-04-17 22:55:52 +02:00
Oleg Gaidarenko
796760d728
Mention grafana in "Who uses Revive" block ( #116 )
2019-04-16 09:16:13 +02:00
SalvadorC
2ce440cf96
new rule: import shadowing ( #114 )
...
* Adds rule superfluous-else (an extension of indent-error-flow)
* Fix superfluous-else rule struct namming.
* Adds superfuous-else rule to the rules table
* Adds confusing-naming rule
* adds multifile test
* clean-up
* fix config.go
* clean master
* new ADS rule: newerr
* ADS-print working version
* ads-print final version
* ads-lost-err working version
* fix ads-print
* removes ads rules from master
* new rule: import-shadowing
* removes ads rules from master
* new rule: import-shadowing
* fix defaults
* adds explanations on the rule implementation
2019-03-27 11:46:20 -07:00
Minko Gechev
a307792228
docs: update the list of contributors
2019-03-21 09:31:01 -07:00
SalvadorC
fbefad8558
New rule: duplicated-imports ( #111 )
...
* Adds rule superfluous-else (an extension of indent-error-flow)
* Fix superfluous-else rule struct namming.
* Adds superfuous-else rule to the rules table
* Adds confusing-naming rule
* adds multifile test
* clean-up
* fix config.go
* clean master
* new ADS rule: newerr
* ADS-print working version
* ads-print final version
* ads-lost-err working version
* adds duplicated-imports rule
* adds duplicated-imports rule
2019-03-20 11:54:03 -07:00
Minko Gechev
6a62ee9f02
Update the list of contributors
2019-03-01 11:45:22 -08:00
xuri
b4cc152955
Add excelize and aurora to "Who uses Revive" ( #96 )
2018-12-10 06:05:14 -08:00
AragurDEV
50f3790f32
Add gitea to "Who uses Revive" ( #94 )
...
When merged: https://github.com/go-gitea/gitea/pull/5422 gitea will use revive.
2018-12-04 08:45:11 -08:00
Rıdvan Şümşet
1338c47ef1
Update README.md ( #95 )
2018-12-04 08:42:55 -08:00
Minko Gechev
b4b876c347
docs: update readme
2018-11-25 17:56:04 -08:00
James Maidment
6b24cd60a8
Fix spelling of length
2018-11-05 17:41:25 -05:00
SalvadorC
55fe366696
call-to-gc (new rule) ( #90 )
2018-10-31 07:32:23 -07:00
mgechev
2020b30eef
feat: add links to rules in formatters
...
This PR introduces:
- A new formatter called "plain" which produces the same output as "default" but also appends link to the rule
- The "friendly" and "stylish" formatters now have URLs to the rules instead of the rule names
- Update of the README, adding the "unix" and "plain" formatters
2018-10-30 16:07:32 -07:00
SalvadorC
3ef16e4c45
Doc rules description ( #87 )
...
* partial document
* complete list of rules descriptions
* Links rules in README to corresponding descriptions
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Co-Authored-By: chavacava <salvadorcavadini+github@gmail.com>
* Update RULES_DESCRIPTIONS.md
Includes @mgechev remarks
2018-10-25 20:15:13 -07:00
xuri
3c177e2824
New rule: line-length-limit ( #86 )
...
* New rule: line-length-limit
* simplify the panic message of rule line-length-limit
* Refactors `line-length-limit` rule, use private `check` method instead of `Visit`
2018-10-19 08:18:33 -04:00
mgechev
4b3d324865
docs: update the list of contributors
2018-10-17 10:07:33 -07:00
mgechev
69f012a7d9
Merge master
2018-10-11 14:55:17 -07:00
mgechev
892cedd764
docs: add description for empty-lines
2018-10-11 14:54:27 -07:00
xuri
7d2c43c827
Rename rule name waitgroup-by-copy to waitgroup-by-value
2018-10-03 16:01:41 +08:00
xuri
c781c8b090
Fix rule name in README, and format code.
2018-10-03 14:12:19 +08:00
xuri
9545122d39
New rule: atomic ( #77 )
2018-10-01 12:24:17 -07:00
SalvadorC
6ebe5bbb1e
waitgroup-by-value (new rule) ( #76 )
...
* waitgroup-by-value (new rule)
* code simplification
2018-09-30 12:29:11 -07:00
xuri
924e3db3ba
Rename rule range-loop-var
to range-val-in-closure
.
2018-09-29 11:32:32 +08:00
xuri
b34a6c053e
New rule: range-loop-var
2018-09-27 23:21:10 +08:00
mgechev
0c79a9c405
docs: update readme
2018-09-20 10:47:03 -07:00
Sylvain Kerkour
02575a7674
Add the imports-blacklist rule ( #68 )
...
* Add the imports-blacklist rule with tests
* Add the imports-blacklist rule to README.md
* Update the imports-blacklist rule to use map[string]bool so that we can have the algorithm in Visit below with O(n) instead of O(n*m)
* Fix the imports-blacklist rule to be case sensitive
2018-09-17 13:06:42 -07:00
SalvadorC
7240bd56d0
Merge pull request #62 from xuri/return-value-limit
...
New rule: return-result-limit
2018-09-17 21:56:59 +02:00
mgechev
21b7654079
docs: update the list of contributors
2018-09-17 12:40:59 -07:00
xuri
dd1a8bf4e6
Add test case for function-result-limit
rule, and updated README
2018-09-17 18:50:04 +08:00
xuri
0c243f004c
Rename rule return-argument-limit
to function-result-limit
2018-09-17 17:06:53 +08:00
xuri
f0ec17c8d5
New rule: return-argument-limit
2018-09-17 15:22:07 +08:00
mgechev
90f51530cc
Add white & black lists for var-naming
...
This PR introduces a white & black lists of initialisms for the
`var-naming` rule.
Now the rule can be configured with:
```toml
[rule.var-naming]
arguments = [["ID"], ["VM", "BAR"]]
```
This way, the linter will ignore `customId` but will throw on `customVm` or `customBar`.
Fix #41
2018-09-15 15:05:31 -07:00
mgechev
8d6642ccea
docs: update the list of recommended rules
2018-09-13 19:21:28 -07:00
SalvadorC
f004425b6e
redefines-builtin-id (new rule) ( #60 )
2018-09-13 19:19:49 -07:00
mgechev
effde543d8
Merge branch 'master' of github.com:mgechev/revive
...
* 'master' of github.com:mgechev/revive:
fix package names in docs for errorf rule (#56 )
2018-09-08 17:49:20 -07:00
mgechev
9d5fc74f8b
docs: update the list of contributors
2018-09-08 17:48:14 -07:00
Tomasz
70fa51b7a5
fix package names in docs for errorf rule ( #56 )
2018-09-04 07:18:28 -07:00
SalvadorC
81bdff4472
constant-logical-expr (new rule) ( #55 )
...
* suspicious-logical-expr (new rule)
* renames 'suspicious-logical-expression' to 'constant-logical-expression'
2018-08-23 11:45:10 -07:00
SalvadorC
771aa23069
bool-literal-in-expr (new rule) ( #54 )
...
* bool-literal-in-expr (new rule)
* bool-literal-in-expr: add test case and fix typo
2018-08-23 11:10:17 -07:00
SalvadorC
936bc94793
Adds details on disabling the linter on a specific line ( #52 )
2018-08-14 13:22:52 -07:00
SalvadorC
613fd24a3b
modifies-value-receiver (new rule) ( #51 )
2018-08-13 15:18:28 -07:00
mgechev
6b0ad59b9d
docs: reorder plugins
2018-07-31 12:20:58 -07:00