mirror of
https://github.com/mgechev/revive.git
synced 2025-01-24 03:47:45 +02:00
Fix rule name in README, and format code.
This commit is contained in:
parent
cd6459542b
commit
c781c8b090
@ -272,7 +272,7 @@ List of all available rules. The rules ported from `golint` are left unchanged a
|
||||
| `function-result-limit` | int | Specifies the maximum number of results a function can return | no | no |
|
||||
| `imports-blacklist` | []string | Disallows importing the specified packages | no | no |
|
||||
| `range-val-in-closure`| n/a | Warns if range value is used in a closure dispatched as goroutine| no | no |
|
||||
| `waitgroup-by-value `| n/a | Warns on functions taking sync.WaitGroup as a by-value parameter | no | no |
|
||||
| `waitgroup-by-copy` | n/a | Warns on functions taking sync.WaitGroup as a by-copy parameter | no | no |
|
||||
| `atomic` | n/a | Check for common mistaken usages of the `sync/atomic` package | no | no |
|
||||
|
||||
## Configurable rules
|
||||
|
@ -14,3 +14,5 @@
|
||||
[rule.indent-error-flow]
|
||||
[rule.empty-block]
|
||||
[rule.range-val-in-closure]
|
||||
[rule.waitgroup-by-copy]
|
||||
[rule.atomic]
|
||||
|
Loading…
x
Reference in New Issue
Block a user