Skip to content

Commit 47b4455

Browse files
authored
docs: improve unhandled-error ignore argument examples (#1412)
1 parent 03e8102 commit 47b4455

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RULES_DESCRIPTIONS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,11 +1238,11 @@ Example:
12381238
```toml
12391239
[rule.unhandled-error]
12401240
arguments = [
1241-
'os\.(Create|WriteFile|Chmod)',
1242-
'fmt\.Print',
1241+
'^os\.(CreateTemp|WriteFile|Chmod)$',
1242+
'^fmt\.Print',
12431243
'myFunction',
1244-
'net\..*',
1245-
'bytes\.Buffer\.Write',
1244+
'^net\.',
1245+
'^(bytes\.Buffer|string\.Writer)\.Write(Byte|Rune|String)?$',
12461246
]
12471247
```
12481248

0 commit comments

Comments
 (0)