1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-30 08:57:07 +02:00
Commit Graph

536 Commits

Author SHA1 Message Date
renovate[bot]
5969b4c598 chore(deps): update golang.org/x/tools commit hash to 6e04913 (#157) 2019-06-23 14:24:32 -07:00
renovate[bot]
e7e9947989 chore(deps): update golang.org/x/sys commit hash to d432491 (#158) 2019-06-22 18:39:50 -07:00
renovate[bot]
602438bd4b chore(deps): update golang.org/x/sys commit hash to 17bc616 (#155) 2019-06-19 16:30:30 -07:00
renovate[bot]
0027ec683f chore(deps): update golang.org/x/tools commit hash to fdf1049 (#156) 2019-06-18 13:48:47 -07:00
renovate[bot]
f399fe4409 chore(deps): update golang.org/x/tools commit hash to da514ac (#154) 2019-06-18 10:30:25 -07:00
renovate[bot]
6b655960fa chore(deps): update golang.org/x/tools commit hash to 6fea9ef (#153) 2019-06-17 10:58:03 -07:00
renovate[bot]
fe6c60c5b9 chore(deps): update golang.org/x/sys commit hash to 15dcb6c (#152) 2019-06-16 09:15:46 -07:00
renovate[bot]
79ba46ca29 chore(deps): update golang.org/x/sys commit hash to b47fdc9 (#149) 2019-06-15 14:34:47 -07:00
renovate[bot]
633630be5a chore(deps): update golang.org/x/tools commit hash to 5aca471 (#151) 2019-06-14 14:54:18 -07:00
renovate[bot]
ff90a675ea chore(deps): update golang.org/x/tools commit hash to d1d6cdd (#150) 2019-06-14 12:09:44 -07:00
renovate[bot]
0bbba3fafd chore(deps): update golang.org/x/tools commit hash to 1edc8e8 (#146) 2019-06-14 09:15:18 -07:00
renovate[bot]
6147186087 chore(deps): update golang.org/x/sys commit hash to 5b15430 (#148) 2019-06-08 15:09:21 +02:00
renovate[bot]
5f5d33a4aa chore(deps): update golang.org/x/sys commit hash to 7fc4e5e (#147) 2019-06-07 15:04:39 +02:00
renovate[bot]
bf2da941c0 chore(deps): update golang.org/x/sys commit hash to 79a91cf (#145) 2019-06-06 15:20:19 +02:00
renovate[bot]
1ebfe8b325 chore(deps): update golang.org/x/tools commit hash to 4d9ae51 (#143) 2019-06-06 13:28:59 +02:00
SalvadorC
89c8b61f01
Merge pull request #142 from mapreal19/patch-1
docs(readme): Fixes links in rules
2019-06-05 14:04:30 +02:00
Mario Pérez Alarcón
7ac9a99486
docs(readme): Fixes links in rules 2019-06-05 14:00:45 +02:00
renovate[bot]
fde2ca1939 chore(deps): update module olekukonko/tablewriter to v0.0.1 (#140) 2019-06-04 09:22:31 +02:00
renovate[bot]
7e63bbd126 chore(deps): update module burntsushi/toml to v0.3.1 (#136) 2019-06-04 09:17:44 +02:00
renovate[bot]
a9c3669cb9 chore(deps): update module mattn/go-runewidth to v0.0.4 (#139) 2019-06-04 09:17:17 +02:00
renovate[bot]
f5dadd6734 chore(deps): update golang.org/x/tools commit hash to 8aaa148 (#135) 2019-06-04 09:16:53 +02:00
renovate[bot]
e221038ef3 chore(deps): update module mattn/go-colorable to v0.1.2 (#137) 2019-06-04 01:10:43 +02:00
renovate[bot]
de6c8e5f22 chore(deps): update module pkg/errors to v0.8.1 (#141) 2019-06-04 01:10:21 +02:00
renovate[bot]
8056651f8f chore(deps): update golang.org/x/sys commit hash to 4c4f7f3 (#134) 2019-06-03 14:41:57 +02:00
renovate[bot]
c5e9877a56 chore(deps): update github.com/mgechev/dots commit hash to 18fa4c4 (#133) 2019-06-03 14:36:28 +02:00
renovate[bot]
f1d75c05f5 chore(deps): add renovate.json (#132) 2019-06-03 14:25:59 +02:00
SalvadorC
c967fd68ea struct-tag warns on private fields with tags (#131) 2019-06-01 10:34:43 +02:00
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
SalvadorC
e8c1baf8ac optimizes import-blacklist (#123) 2019-04-22 10:58:02 -07:00
SalvadorC
2474f6cecb simpler and more efficient implementation of unused-parameter (#121) 2019-04-21 10:13:03 -07:00
chavacava
5fd2a31b91 Merge remote-tracking branch 'upstream/master' 2019-04-20 20:08:27 +02:00
chavacava
b9a006ddb0 Merge branch 'master' of https://github.com/chavacava/revive 2019-04-20 20:07:57 +02: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
chavacava
3f40759f65 Merge branch 'master' of https://github.com/chavacava/revive 2019-04-15 10:26:18 +02:00
chavacava
7a0ad06780 Merge remote-tracking branch 'upstream/master' 2019-03-30 15:56:21 +01: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
chavacava
13dafb5ea0 Merge remote-tracking branch 'upstream/master' 2019-03-21 14:17:43 +01:00
Dian
44eed7edb7 fix error return rule to allow multiple error return values (#110)
* fix error return rule to allow multiple error return values

please check golint related updates here: golang/lint@8379672

When returning multiple values with an error,
lint checks if the error is the last return value.
But the implementation actually is checking for all return values
except for the last one, and throw the alert if it found an error.

There is a (edge) case where some function returning more than one error
is getting a false positive even when the last return value is an error.

This patch adds an early check, to see if the last return value is an error
and if so, it will pass silently.

* Fix return error

* add test changes
2019-03-20 11:54:27 -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
chavacava
04373f3a8b removes ads rules from master 2019-03-19 15:15:46 +01:00
chavacava
9d44316043 fix ads-print 2019-03-18 15:06:31 +01:00