1
0
mirror of https://github.com/mgechev/revive.git synced 2024-12-04 10:24:49 +02:00
Commit Graph

160 Commits

Author SHA1 Message Date
chavacava
68deb55492 New rule deep-exit (#26)
* 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

* deep-exit: first working version

* fix pbs from  @mgechev review

* deep-exit: modifies failure message
2018-06-27 06:21:03 +10:00
chavacava
b2532b3c33 New rule: modifies-parameter (#25)
* 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

* working version
2018-06-24 17:26:21 +10:00
chavacava
7e89359269 superfuous-else handles more cases (#24)
* 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

* superflous-else now detects "jumps" caused by functions like os.Exit and log.Fatal
2018-06-24 17:24:50 +10:00
chavacava
f8c1094ecd New rule: get-return (#23)
* 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

* clean master

* running version

* isGetter now checks for non lowercase characters
2018-06-22 21:21:09 +10:00
mgechev
a1d3163745
Update the list of contributors 2018-06-14 17:31:32 -07:00
Veniamin Krol
83bd86be4f Fix typo in README.md (#21) 2018-06-13 12:35:38 -07:00
chavacava
4e19174270 Fix issue19 (#20)
* Adds rule superfluous-else (an extension of indent-error-flow)

* Fix superfluous-else rule struct namming.

* Adds superfuous-else rule to the rules table

* fix issue 19
2018-06-13 07:01:31 -07:00
chavacava
c9bde6c503 empty-block: ignore checking blocks of funcs and func literals (#17)
* Adds rule superfluous-else (an extension of indent-error-flow)

* Fix superfluous-else rule struct namming.

* Adds superfuous-else rule to the rules table

* Modifies empty-block rule to ignore bodies of
func literals and funcs

* add test cases on functions with a receiver for completeness
2018-06-11 12:08:58 -07:00
Tamir Duberstein
32df8ca880 Avoid false positives when returning interface values (#6)
* Use subtests

* Make unexported-return type check

* Avoid false positives when returning interface values

Fixes #5.
2018-06-11 11:22:33 -07:00
Tamir Duberstein
1b2ffe282e Improve tests (#18)
* Use subtests

* Make unexported-return type check
2018-06-11 11:22:06 -07:00
mgechev
fb3c2d09af
Update list of contributors 2018-06-09 13:18:47 -07:00
mgechev
8198433610
Update readme with vim support 2018-06-08 16:04:26 -07:00
mgechev
1b84ff83dd
Add missing rule in config 2018-06-08 14:22:21 -07:00
chavacava
1fa5046357 Adds new rule empty-block (#14)
* Adds rule superfluous-else (an extension of indent-error-flow)

* initial (non functional) version

* empty-block working version

* adds tests for empty-block rule

* Adds empty-block to the rules table

* code clean-up
2018-06-08 12:41:49 -07:00
mgechev
dc6767b811
Add toc 2018-06-08 10:28:17 -07:00
mgechev
05db4673db
Add list of contributors 2018-06-08 10:24:28 -07:00
chavacava
cbe45ffc79 Adds rule superfluous-else (an extension of indent-error-flow) (#13)
* Adds rule superfluous-else (an extension of indent-error-flow)

* Fix superfluous-else rule struct namming.

* Adds superfuous-else rule to the rules table
2018-06-08 07:06:29 -07:00
Minko Gechev
5a0635ddfd
Merge pull request #11 from paul-at-start/master
Cyan for readability (better contrast)
2018-06-06 11:36:56 -07:00
Paul Stølen
378f2d32b5 Cyan for readability
- Dark blue on black is not very readable on a lot of screens.
2018-06-06 15:23:12 +02:00
Minko Gechev
abf02d70f2
Merge pull request #10 from mgechev/miniko/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2018-06-03 10:59:02 -07:00
Minko Gechev
7d587ab92b
Create CODE_OF_CONDUCT.md 2018-06-03 10:58:53 -07:00
Minko Gechev
e27206765b Update issue templates 2018-06-03 10:58:02 -07:00
Minko Gechev
ccdb1855bd
Merge pull request #9 from mgechev/minko/add-mit-license
License under MIT
2018-06-03 10:52:33 -07:00
Minko Gechev
c58fbd34a3
Create LICENSE 2018-06-03 10:52:09 -07:00
Minko Gechev
99d0130dc6
Merge pull request #8 from mgechev/minko/unexported-return-test
Add test case for unexported-return
2018-06-02 10:21:57 -07:00
mgechev
fbc8d08401
Add docs 2018-06-02 10:14:21 -07:00
mgechev
67d38b3b9f
Add test case for unexported-return 2018-06-02 09:45:19 -07:00
mgechev
f74d3bd5ee
Update readme 2018-06-01 11:28:50 -07:00
mgechev
a4da5361d2
Update the documentation for comment annotations
Fix #1
2018-06-01 10:54:30 -07:00
mgechev
a6c7415c67
Update documentation for generated files
Related to #4
2018-06-01 10:30:40 -07:00
Minko Gechev
6182489121
Merge pull request #3 from mgechev/minko/optional-type-checking
Introduce optional type checking
2018-06-01 07:16:16 -07:00
mgechev
1686f0b237
Introduce optional type checking
Enable optional type checking.
2018-05-31 21:43:02 -07:00
mgechev
8e4c7821fd
Update with accurate stats 2018-05-31 20:00:04 -07:00
mgechev
ab618bf2c4
Update readme 2018-05-31 19:53:26 -07:00
Minko Gechev
94255827bf
Merge pull request #2 from mgechev/minko/type-checking
Fix package level type checking
2018-05-31 19:51:02 -07:00
mgechev
64636caedd
Fix package level type checking 2018-05-31 19:49:39 -07:00
mgechev
27994a0736
Update readme 2018-05-31 13:30:54 -07:00
mgechev
1362c7b7cb
Update readme 2018-05-31 10:02:40 -07:00
mgechev
e06c92357f
Add information about vscode 2018-05-30 18:34:35 -07:00
mgechev
21ff630a2b
Same behavior as golint with no arguments 2018-05-30 18:31:38 -07:00
mgechev
0218565672
Update dots 2018-05-30 17:45:44 -07:00
mgechev
55145d7427
Run var-naming on test files 2018-05-30 17:41:02 -07:00
mgechev
9e52d7ffdd
Use new dots 2018-05-30 17:03:27 -07:00
mgechev
e4877f3129
Update readme 2018-05-30 13:44:18 -07:00
mgechev
5fd5bbb1ba
Update readme 2018-05-30 13:42:28 -07:00
mgechev
0a60c58766
Update readme 2018-05-30 12:07:02 -07:00
mgechev
a9131f0378
Update readme 2018-05-30 12:06:36 -07:00
mgechev
b52bf81ad1
Update screenshots 2018-05-30 10:08:31 -07:00
mgechev
4af8ba5e6f
Update readme 2018-05-29 09:21:18 -07:00
mgechev
03eef8b31a
Update the revive logo 2018-05-28 20:51:47 -07:00