mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
range-val-address: update readme and rule description
This commit is contained in:
parent
22014c3f08
commit
c15fae8f18
@ -336,6 +336,7 @@ List of all available rules. The rules ported from `golint` are left unchanged a
|
||||
| [`function-result-limit`](./RULES_DESCRIPTIONS.md#function-result-limit) | int | Specifies the maximum number of results a function can return | no | no |
|
||||
| [`imports-blacklist`](./RULES_DESCRIPTIONS.md#imports-blacklist) | []string | Disallows importing the specified packages | no | no |
|
||||
| [`range-val-in-closure`](./RULES_DESCRIPTIONS.md#range-val-in-closure)| n/a | Warns if range value is used in a closure dispatched as goroutine| no | no |
|
||||
| [`range-val-address`](./RULES_DESCRIPTIONS.md#range-val-address)| n/a | Warns if address of range value is used dangerously | no | no |
|
||||
| [`waitgroup-by-value`](./RULES_DESCRIPTIONS.md#waitgroup-by-value) | n/a | Warns on functions taking sync.WaitGroup as a by-value parameter | no | no |
|
||||
| [`atomic`](./RULES_DESCRIPTIONS.md#atomic) | n/a | Check for common mistaken usages of the `sync/atomic` package | no | no |
|
||||
| [`empty-lines`](./RULES_DESCRIPTIONS.md#empty-lines) | n/a | Warns when there are heading or trailing newlines in a block | no | no |
|
||||
@ -496,9 +497,9 @@ Currently, type checking is enabled by default. If you want to run the linter wi
|
||||
:---: |:---: |:---: |:---: |:---: |:---: |
|
||||
[johnrichardrinehart](https://github.com/johnrichardrinehart) |[michalhisim](https://github.com/michalhisim) |[pa-m](https://github.com/pa-m) |[paul-at-start](https://github.com/paul-at-start) |[weastur](https://github.com/weastur) |[ridvansumset](https://github.com/ridvansumset) |
|
||||
|
||||
[<img alt="Jarema" src="https://avatars0.githubusercontent.com/u/7369771?v=4&s=117" width="117">](https://github.com/Jarema) |[<img alt="vkrol" src="https://avatars3.githubusercontent.com/u/153412?v=4&s=117" width="117">](https://github.com/vkrol) |[<img alt="haya14busa" src="https://avatars0.githubusercontent.com/u/3797062?v=4&s=117" width="117">](https://github.com/haya14busa) |
|
||||
:---: |:---: |:---: |
|
||||
[Jarema](https://github.com/Jarema) |[vkrol](https://github.com/vkrol) |[haya14busa](https://github.com/haya14busa) |
|
||||
[<img alt="Jarema" src="https://avatars0.githubusercontent.com/u/7369771?v=4&s=117" width="117">](https://github.com/Jarema) |[<img alt="vkrol" src="https://avatars3.githubusercontent.com/u/153412?v=4&s=117" width="117">](https://github.com/vkrol) |[<img alt="haya14busa" src="https://avatars0.githubusercontent.com/u/3797062?v=4&s=117" width="117">](https://github.com/haya14busa) |[<img alt="bernhardreisenberger" src="https://avatars1.githubusercontent.com/u/5809300" width="117">](https://github.com/bernhardreisenberger)
|
||||
:---: |:---: |:---: |:---: |
|
||||
[Jarema](https://github.com/Jarema) |[vkrol](https://github.com/vkrol) |[haya14busa](https://github.com/haya14busa) |[bernhardreisenberger](https://github.com/bernhardreisenberger)
|
||||
|
||||
## License
|
||||
|
||||
|
@ -397,7 +397,7 @@ _Configuration_: N/A
|
||||
|
||||
## range-val-address
|
||||
|
||||
_Description_: Range variables in a loop are reused at each iteration. This rule warns when assigning the address of the variable.
|
||||
_Description_: Range variables in a loop are reused at each iteration. This rule warns when assigning the address of the variable, passing the address to append() or using it in a map.
|
||||
|
||||
_Configuration_: N/A
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user