How to use this developer tool
- Paste Swift source code.
- Select the inspection depth.
- Set the maximum preferred function length.
- Run the inspection and review scores, warnings, and recommendations.
Inspect Swift source for maintainability, readability, safety, and complexity risks such as force unwraps, force try, deep nesting, long functions, weak naming, and duplicate code.
The inspector calculates structural metrics and flags common Swift safety and maintainability risks with line references and practical recommendations.
Findings are heuristic and intended for fast review. Compiler, SwiftLint, and runtime profiling remain the authoritative checks.
Input: code using user! and try!. Output: safety warnings with line numbers and recommendations to use optional binding and do/catch.
Paste the code and run the inspector. Each likely force unwrap is reported with its source line.
Yes. It detects common force operations including try! and as! and classifies them as safety risks.
The score starts at 100 and is reduced for safety risks, deep nesting, long functions, duplicate statements, and naming issues.
No. It provides fast browser-based heuristics, while SwiftLint offers project-aware rules and should remain part of a production workflow.
Yes. It can inspect SwiftUI source text for structural and safety patterns, although it does not build or execute the app.
| Category | Checks |
|---|---|
| Safety | !, try!, as! |
| Complexity | nesting and function length |
| Quality | naming, duplication, access control |