1
0
mirror of https://github.com/mgechev/revive.git synced 2025-02-07 13:31:42 +02:00

Update readme & refactor

This commit is contained in:
mgechev 2018-05-25 13:01:49 -07:00
parent 92fb0d5442
commit 90b2213300
No known key found for this signature in database
GPG Key ID: 3C44F5A2A289C6BB
2 changed files with 4 additions and 4 deletions

View File

@ -58,12 +58,12 @@ This will use `config.toml`, the `cli` formatter, and will run linting over the
| Name | Configuration | Description |
| ------------------- | :---------------------: | ---------------------------------------------------------------: |
| `argument-limit` | int (for instance, `4`) | Specifies the maximum number of arguments a function can receive |
| `cyclomatic` | int (for instance, `9`) | Sets restriction ot maximum Cyclomatic complexity. |
| `context-key-type` | Not configurable | Disallows the usage of basic types in `context.WithValue`. |
| `dot-imports` | Not configurable | Forbids `.` imports. |
| `blank-imports` | Not configurable | Disallows blank imports |
| `context-arguments` | Not configurable | `context.Context` should be the first argument of a function. |
| `context-key-type` | Not configurable | Disallows the usage of basic types in `context.WithValue`. |
| `cyclomatic` | int (for instance, `9`) | Sets restriction ot maximum Cyclomatic complexity. |
| `dot-imports` | Not configurable | Forbids `.` imports. |
| `argument-limit` | int (for instance, `4`) | Specifies the maximum number of arguments a function can receive |
## Available Formatters