1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/rule
chavacava d95910df55 Refactoring: move pick function to rule/utils.go (#30)
* 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

* [WIP] fix multiple file test

* draft solution for detecting confusing-names through multiple files

* [WIP] confusing-name multiple files

* clean-up

* draft working version

* cleaner version + more informative messages

* adds check on struct field names

* fix config.go

* clean master

* new ADS rule: newerr

* ADS-print working version

* ads-print final version

* ads-lost-err working version

* confusing-namming: fix tests

* moves pick to rule/utils for better reusability
2018-07-09 03:00:44 +10:00
..
argument-limit.go Add tests for the arguments limit 2018-02-04 15:10:35 -08:00
blank-imports.go Refactoring 2018-01-24 15:44:03 -08:00
confusing-naming.go New rule: Confusing naming (#16) 2018-07-02 12:05:20 +10:00
confusing-results.go New rule: confusing-results (#27) 2018-07-02 12:09:58 +10:00
context-as-argument.go Refactoring and renaming 2018-05-26 21:28:31 -07:00
context-keys-type.go Introduce optional type checking 2018-05-31 21:43:02 -07:00
cyclomatic.go API improvements 2018-01-26 20:45:17 -08:00
deep-exit.go New rule deep-exit (#26) 2018-06-27 06:21:03 +10:00
dot-imports.go Refactoring 2018-01-24 15:44:03 -08:00
empty-block.go empty-block: ignore checking blocks of funcs and func literals (#17) 2018-06-11 12:08:58 -07:00
error-naming.go Refactoring and renaming 2018-05-26 21:28:31 -07:00
error-return.go Add all built-in rules 2018-01-25 11:34:38 -08:00
error-strings.go Add default formatter 2018-01-27 17:01:18 -08:00
errorf.go Introduce optional type checking 2018-05-31 21:43:02 -07:00
exported.go Fix rule for documentation of exported types (#29) 2018-07-08 08:14:15 +10:00
file-header.go Rename and docs 2018-05-26 16:14:36 -07:00
get-return.go New rule: get-return (#23) 2018-06-22 21:21:09 +10:00
if-return.go Add rules 2018-01-25 10:35:27 -08:00
increment-decrement.go Add increment decrement 2018-01-25 11:16:28 -08:00
indent-error-flow.go Fix issue19 (#20) 2018-06-13 07:01:31 -07:00
max-public-structs.go Add new rule 2018-02-02 13:32:03 -05:00
modifies-param.go New rule: modifies-parameter (#25) 2018-06-24 17:26:21 +10:00
package-comments.go Refactoring 2018-01-24 15:44:03 -08:00
range.go Add errorf rule 2018-01-25 10:42:39 -08:00
receiver-naming.go Refactoring and renaming 2018-05-26 21:28:31 -07:00
superfluous-else.go superfuous-else handles more cases (#24) 2018-06-24 17:24:50 +10:00
time-naming.go Introduce optional type checking 2018-05-31 21:43:02 -07:00
unexported-return.go Avoid false positives when returning interface values (#6) 2018-06-11 11:22:33 -07:00
unused-param.go Refactoring: move pick function to rule/utils.go (#30) 2018-07-09 03:00:44 +10:00
utils.go Refactoring: move pick function to rule/utils.go (#30) 2018-07-09 03:00:44 +10:00
var-declarations.go Introduce optional type checking 2018-05-31 21:43:02 -07:00
var-naming.go Run var-naming on test files 2018-05-30 17:41:02 -07:00