1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-10 03:17:11 +02:00

Merge branch 'master' of github.com:mgechev/revive

* 'master' of github.com:mgechev/revive:
  fix package names in docs for errorf rule (#56)
This commit is contained in:
mgechev 2018-09-08 17:49:20 -07:00
commit effde543d8
No known key found for this signature in database
GPG Key ID: A98CD29F2650FAD2

View File

@ -232,7 +232,7 @@ List of all available rules. The rules ported from `golint` are left unchanged a
| `time-naming` | n/a | Conventions around the naming of time variables. | yes | yes | | `time-naming` | n/a | Conventions around the naming of time variables. | yes | yes |
| `var-declaration` | n/a | Reduces redundancies around variable declaration. | yes | yes | | `var-declaration` | n/a | Reduces redundancies around variable declaration. | yes | yes |
| `unexported-return` | n/a | Warns when a public return is from unexported type. | yes | yes | | `unexported-return` | n/a | Warns when a public return is from unexported type. | yes | yes |
| `errorf` | n/a | Should replace `error.New(fmt.Sprintf())` with `error.Errorf()` | yes | yes | | `errorf` | n/a | Should replace `errors.New(fmt.Sprintf())` with `fmt.Errorf()` | yes | yes |
| `blank-imports` | n/a | Disallows blank imports | yes | no | | `blank-imports` | n/a | Disallows blank imports | yes | no |
| `context-as-argument` | n/a | `context.Context` should be the first argument of a function. | yes | no | | `context-as-argument` | n/a | `context.Context` should be the first argument of a function. | yes | no |
| `dot-imports` | n/a | Forbids `.` imports. | yes | no | | `dot-imports` | n/a | Forbids `.` imports. | yes | no |