1
0
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:
Ville Skyttä
2025-07-08 10:25:19 +00:00
committed by GitHub
parent 03e81029a8
commit 47b44556d9

View File

@ -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)?$',
]
```