Force Try
Force tries should be avoided
- Identifier:
force_try
- Enabled by default: Yes
- Supports autocorrection: No
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 5.0.0
- Default configuration:
Key Value severity error
Non Triggering Examples
func a() throws {}
do {
try a()
} catch {}
Triggering Examples
func a() throws {}
↓try! a()