mirror of
https://github.com/mgechev/revive.git
synced 2025-07-15 01:04:40 +02:00
docs: improve unhandled-error ignore argument examples (#1412)
This commit is contained in:
@ -1238,11 +1238,11 @@ Example:
|
||||
```toml
|
||||
[rule.unhandled-error]
|
||||
arguments = [
|
||||
'os\.(Create|WriteFile|Chmod)',
|
||||
'fmt\.Print',
|
||||
'^os\.(CreateTemp|WriteFile|Chmod)$',
|
||||
'^fmt\.Print',
|
||||
'myFunction',
|
||||
'net\..*',
|
||||
'bytes\.Buffer\.Write',
|
||||
'^net\.',
|
||||
'^(bytes\.Buffer|string\.Writer)\.Write(Byte|Rune|String)?$',
|
||||
]
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user