← Back to scan
File as GitHub Issue repo: dart-lang/sdk

Push this scan report to dart-lang/sdk

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Missing import: `enum` used but not imported

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 [MINED107] Missing import: `ast` used but not imported: The file uses `ast.something(...)… tools/dom/scripts/databasebuilder.py:623
CRIT MINED107 [MINED107] Missing import: `re` used but not imported: The file uses `re.something(...)` … tools/dom/scripts/systemnative.py:35
CRIT MINED107 [MINED107] Missing import: `warnings` used but not imported: The file uses `warnings.some… tools/dom/scripts/idlnode.py:25
CRIT MINED107 [MINED107] Missing import: `ast` used but not imported: The file uses `ast.something(...)… tools/dom/scripts/idlnode.py:430
CRIT MINED107 [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(..… tools/dom/scripts/database.py:252
CRIT MINED107 [MINED107] Missing import: `enum` used but not imported: The file uses `enum.something(..… tools/dom/new_scripts/code_generator_da…:134
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… pkg/dwds/web/reloader/require_restarter…:71
HIGH MINED106 [MINED106] Phantom test coverage: test_server_dartium: Test function `test_server_dartium… tools/dom/dom.py:142
HIGH MINED106 [MINED106] Phantom test coverage: test_server: Test function `test_server` runs code but … tools/dom/dom.py:138
HIGH MINED106 [MINED106] Phantom test coverage: test_dart2js: Test function `test_dart2js` runs code bu… tools/dom/dom.py:116
HIGH MINED106 [MINED106] Phantom test coverage: test_chrome: Test function `test_chrome` runs code but … tools/dom/dom.py:112
HIGH MINED106 [MINED106] Phantom test coverage: test_drt: Test function `test_drt` runs code but contai… tools/dom/dom.py:108
HIGH MINED106 [MINED106] Phantom test coverage: test_ff: Test function `test_ff` runs code but contains… tools/dom/dom.py:104
HIGH MINED108 [MINED108] `self.BuildIncludesGraph` used but never assigned in __init__: Method `Check` … runtime/tools/compiler_layering_check.py:46
HIGH MINED108 [MINED108] `self.AddAllSourcesToWorklist` used but never assigned in __init__: Method `Ch… runtime/tools/compiler_layering_check.py:45
HIGH MINED108 [MINED108] `self._search_dir` used but never assigned in __init__: Method `_find_coredump… tools/utils.py:937
HIGH MINED108 [MINED108] `self._search_dir` used but never assigned in __init__: Method `_find_all_core… tools/utils.py:927
HIGH MINED108 [MINED108] `self._search_dir` used but never assigned in __init__: Method `_cleanup` of c… tools/utils.py:921
HIGH MINED108 [MINED108] `self._dump_all_stacks` used but never assigned in __init__: Method `__exit__`… tools/utils.py:913
HIGH MINED108 [MINED108] `self._find_all_coredumps` used but never assigned in __init__: Method `_dump_… tools/utils.py:886
HIGH MINED108 [MINED108] `self._find_cdb` used but never assigned in __init__: Method `_dump_all_stacks… tools/utils.py:882
HIGH MINED108 [MINED108] `self._search_dir` used but never assigned in __init__: Method `_find_coredump… tools/utils.py:830
HIGH MINED108 [MINED108] `self._search_dir` used but never assigned in __init__: Method `_cleanup` of c… tools/utils.py:824
HIGH MINED108 [MINED108] `self._tar` used but never assigned in __init__: Method `_upload` of class `Ba… tools/utils.py:767
HIGH MINED108 [MINED108] `self._get_file_name` used but never assigned in __init__: Method `_tar` of cl… tools/utils.py:746
HIGH MINED108 [MINED108] `self._get_file_name` used but never assigned in __init__: Method `_move` of c… tools/utils.py:737
HIGH MINED108 [MINED108] `self._report_missing_crashes` used but never assigned in __init__: Method `_a… tools/utils.py:699
HIGH MINED108 [MINED108] `self._upload` used but never assigned in __init__: Method `_archive` of class… tools/utils.py:696
HIGH MINED108 [MINED108] `self._move` used but never assigned in __init__: Method `_archive` of class `… tools/utils.py:689
HIGH MINED108 [MINED108] `self._is_shard` used but never assigned in __init__: Method `_archive` of cla… tools/utils.py:682
HIGH MINED108 [MINED108] `self._find_coredump_file` used but never assigned in __init__: Method `_archi… tools/utils.py:677
HIGH MINED108 [MINED108] `self._find_all_coredumps` used but never assigned in __init__: Method `__exit… tools/utils.py:658
HIGH MINED108 [MINED108] `self._archive` used but never assigned in __init__: Method `__exit__` of clas… tools/utils.py:655
HIGH MINED108 [MINED108] `self._safe_cleanup` used but never assigned in __init__: Method `__exit__` of… tools/utils.py:670
HIGH MINED108 [MINED108] `self._find_unexpected_crashes` used but never assigned in __init__: Method `_… tools/utils.py:645
HIGH MINED108 [MINED108] `self._safe_cleanup` used but never assigned in __init__: Method `__enter__` o… tools/utils.py:640
HIGH MINED108 [MINED108] `self._cleanup` used but never assigned in __init__: Method `_safe_cleanup` of… tools/utils.py:631
HIGH MINED108 [MINED108] `self.Read` used but never assigned in __init__: Method `GetProcessId` of clas… tools/minidump.py:162
HIGH MINED106 [MINED106] Phantom test coverage: test_matrix_filter: Test function `test_matrix_filter` … PRESUBMIT.py:421
HIGH SEC006 [SEC006] XSS Risk: Direct HTML injection without sanitization. pkg/dwds/web/run_main.dart:46
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. pkg/analysis_server/integration_test/an…:140
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. pkg/analysis_server/benchmark/perf/dart…:166
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. pkg/analysis_server/benchmark/benchmark…:181
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… pkg/analysis_server/integration_test/ls…:34
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… pkg/analysis_server/integration_test/di…:30
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… benchmarks/NativeCall/native/native_fun…:74
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). benchmarks/OmnibusDeferred/dart/Omnibus…:18
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). benchmarks/Omnibus/dart/Omnibus.dart:18
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). benchmarks/MD5/dart/md5.dart:17
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… .github/extract_deps.py:61
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tools/dom/scripts/systemhtml.py:166
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/dom/scripts/databasebuilder.py:161
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/dom/scripts/databasebuilder.py:112
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/dom/scripts/databasebuilder.py:94
MED MINED109 [MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set()… tools/dom/scripts/databasebuilder.py:39
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tools/dom/scripts/databasebuilder.py:39
MED MINED109 [MINED109] Mutable default argument in `_GenerateNativeBinding` (list): `def _GenerateNat… tools/dom/scripts/systemnative.py:1009
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/dom/scripts/idlnode.py:85
MED MINED109 [MINED109] Mutable default argument in `RunCommand` (list): `def RunCommand(... = []/{}/s… tools/dom/scripts/idlsync.py:117
MED MINED109 [MINED109] Mutable default argument in `FilterInterfaces` (list): `def FilterInterfaces(.… tools/dom/scripts/dartgenerator.py:115
MED MINED109 [MINED109] Mutable default argument in `Load` (dict): `def Load(... = []/{}/set())` — Pyt… tools/dom/scripts/templateloader.py:54
MED MINED109 [MINED109] Mutable default argument in `TryLoad` (dict): `def TryLoad(... = []/{}/set())`… tools/dom/scripts/templateloader.py:37
MED MINED109 [MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set()… tools/dom/scripts/templateloader.py:23
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… runtime/tools/dartfuzz/update_spreadshe…:111
MED MINED109 [MINED109] Mutable default argument in `get_output_sum` (list): `def get_output_sum(... =… runtime/tools/dartfuzz/collect_data.py:79
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:776
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:914
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:801
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:632
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:609
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/utils.py:400
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/minidump.py:183
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/get_dot_git_folder.py:42
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/make_version.py:145
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/gn.py:704
MED MINED109 [MINED109] Mutable default argument in `RunGnOnConfiguredConfigurations` (dict): `def Run… tools/gn.py:676
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/build_devtools.py:112
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… pkg/analysis_server/integration_test/ls…:95
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… pkg/analysis_server/integration_test/ls…:110
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … pkg/front_end/testcases/dartdevc/static…:11
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … benchmarks/WasmJSInterop/dart/WasmJSInt…:20
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … .github/extract_deps.py:61
MED COMP001 [COMP001] High cognitive complexity: Function `CheckNodeTextExpectationsCollectorUpdating… pkg/analyzer/PRESUBMIT.py:74
MED AIC001 Parallel implementation file sits beside a canonical file runtime/vm/object_graph_copy.h:1
MED AIC001 Parallel implementation file sits beside a canonical file pkg/front_end/parser_testcases/error_re…:1
MED AIC001 Parallel implementation file sits beside a canonical file pkg/front_end/parser_testcases/error_re…:1
MED AIC001 Parallel implementation file sits beside a canonical file pkg/front_end/parser_testcases/error_re…:1
MED AIC001 Parallel implementation file sits beside a canonical file pkg/dev_compiler/lib/src/kernel/compile…:1
MED AIC001 Parallel implementation file sits beside a canonical file pkg/compiler/lib/src/js_backend/runtime…:1
MED AIC004 Suspicious implementation file appears unreferenced pkg/front_end/parser_testcases/error_re…:1
MED AIC004 Suspicious implementation file appears unreferenced pkg/front_end/parser_testcases/error_re…:1
MED AIC004 Suspicious implementation file appears unreferenced pkg/front_end/parser_testcases/error_re…:1
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/operation/o…:160
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:33
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:21
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:20
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:21
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:41
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:15
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:12
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:34
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:21
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:13
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:12
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:12
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/lib/src/lsp/handler…:13
LOW AIC003 Duplicated implementation block across source files pkg/analysis_server/integration_test/ed…:13
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/scanner…:363
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/scanner…:163
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/scanner…:143
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/scanner…:29
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/exhaust…:89
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/exhaust…:56
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/exhaust…:5
LOW AIC003 Duplicated implementation block across source files pkg/_fe_analyzer_shared/lib/src/exhaust…:155
LOW AIC003 Duplicated implementation block across source files pkg/front_end/testcases/patterns/patter…:1
LOW AIC003 Duplicated implementation block across source files pkg/front_end/testcases/nnbd/assignment…:1
LOW AIC007 Generated build artifact directory is present at repository root build:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file pkg/compiler/lib/src/js_backend/runtime…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file runtime/vm/object_graph_copy.h:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file pkg/dev_compiler/lib/src/kernel/compile…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file pkg/front_end/testcases/general/annotat…:1
LOW AIC005 Duplicate top-level symbol appears in a patch-style file pkg/front_end/testcases/general/implici…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/linter/lib/src/rules/unnecessary_fi…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/patterns/patter…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/nnbd/assignment…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/late_lowering/p…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/late_lowering/i…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/general/implici…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/front_end/testcases/general/annotat…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analyzer/lib/src/dart/resolver/ast_…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/services/co…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/services/co…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/services/co…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/services/co…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/services/co…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/lsp/handler…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/lsp/handler…:1
LOW AIC002 Source file name looks like an AI patch artifact pkg/analysis_server/lib/src/lsp/handler…:1
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … pkg/compiler/tool/used_names/used_names…:45
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. pkg/analysis_server/tool/benchmark_tool…:48
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. pkg/analysis_server/tool/benchmark_tool…:47
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. pkg/analysis_server/tool/benchmark_tool…:48
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… pkg/analyzer/PRESUBMIT.py:7
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… pkg/analysis_server/PRESUBMIT.py:7
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… pkg/_fe_analyzer_shared/PRESUBMIT.py:7
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. benchmarks/EventLoopLatencyJson/dart/la…:89
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. benchmarks/BigIntParsePrint/dart/native…:69
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. benchmarks/BigIntParsePrint/dart/BigInt…:77
Reset to top 5 149 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `dart-lang/sdk`

**Score: 77/100 (A-)**  ·  171 findings  ·  scanned 2026-06-05 21:34 UTC  ·  3,527,843 LOC

| Severity | Count |
|---|---|
| CRITICAL | 7 |
| HIGH | 43 |
| MEDIUM | 42 |
| LOW | 47 |

📊 [Full filterable report](https://repobility.com/scan/f5b96adb-5804-45f3-aac0-143eaa16ddce/)  ·  ![scorecard](https://repobility.com/scan/f5b96adb-5804-45f3-aac0-143eaa16ddce/report.png?v=1780695291-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `ast` used but not imported
   `tools/dom/scripts/databasebuilder.py:623` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `re` used but not imported
   `tools/dom/scripts/systemnative.py:35` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `warnings` used but not imported
   `tools/dom/scripts/idlnode.py:25` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `ast` used but not imported
   `tools/dom/scripts/idlnode.py:430` · ✓ Repobility
5. **CRITICAL** `MINED107` — Missing import: `enum` used but not imported
   `tools/dom/scripts/database.py:252` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/f5b96adb-5804-45f3-aac0-143eaa16ddce/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 6 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'dart-lang/sdk' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.