Dart Support
Skylos analyzes Dart source with tree-sitter parsing for dead code and selected security checks. This includes Dart and Flutter codebases.
File Coverageβ
| Area | Support |
|---|---|
| Extensions | .dart |
| Dead code | Classes, enums, functions, methods, static/final declarations, imports, and exports |
| Security | Selected process execution, HTTP request, and filesystem/path checks |
| Quality | No dedicated Dart quality rules yet |
Dead Code Detectionβ
Dart analysis recognizes class definitions, enums, function signatures, method signatures, imports, exports, and static declarations. It also treats common Flutter and test entrypoints as runtime-managed code:
- Flutter widget bases such as
StatelessWidget,StatefulWidget,State, andWidget - lifecycle methods such as
build,createState,initState,dispose,didUpdateWidget, anddidChangeDependencies - test entrypoints such as
main,setUp,tearDown,setUpAll, andtearDownAll _test.dartfiles and files undertest/
Security Scopeβ
Dart security checks track tainted names and common untrusted sources into selected sinks:
Process.run,Process.runSync,Process.start, andProcess.startDetachedhttp.*,Dio().*, andHttpClient().*request callsFile,Directory,rootBundle.loadString, andFileImage
skylos . --danger
Limitationsβ
Skylos does not run the Dart analyzer, Flutter build tooling, or Dart type
checking. Use dart analyze, Flutter tests, and package-specific tooling
alongside Skylos.