CRIT
MINED107
[MINED107] Missing import: `csv` used but not imported: The file uses `csv.something(...)…
utils/cmpcodesize/cmpcodesize/compare.py:302
CRIT
MINED107
[MINED107] Missing import: `string` used but not imported: The file uses `string.somethin…
utils/build_swift/build_swift/presets.py:60
CRIT
MINED107
[MINED107] Missing import: `platform` used but not imported: The file uses `platform.some…
utils/swift_build_support/swift_build_s…:139
CRIT
MINED107
[MINED107] Missing import: `sys` used but not imported: The file uses `sys.something(...)…
utils/swift_build_support/swift_build_s…:224
CRIT
MINED107
[MINED107] Missing import: `platform` used but not imported: The file uses `platform.some…
utils/api_checker/swift-api-checker.py:50
CRIT
MINED107
[MINED107] Missing import: `ast` used but not imported: The file uses `ast.something(...)…
utils/gyb.py:1124
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:133
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:132
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:131
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:130
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:129
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:128
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `parse_arguments` of cl…
utils/swift-bench.py:100
HIGH
MINED108
[MINED108] `self.log` used but never assigned in __init__: Method `run_command` of class …
utils/swift-bench.py:96
HIGH
MINED108
[MINED108] `self.dest` used but never assigned in __init__: Method `__call__` of class `T…
utils/rusage.py:71
HIGH
MINED108
[MINED108] `self.dest` used but never assigned in __init__: Method `__call__` of class `M…
utils/rusage.py:56
HIGH
MINED108
[MINED108] `self.uncategorizedSymbols` used but never assigned in __init__: Method `print…
utils/analyze_code_size.py:451
HIGH
MINED108
[MINED108] `self.add` used but never assigned in __init__: Method `categorize` of class `…
utils/analyze_code_size.py:417
HIGH
MINED108
[MINED108] `self.group_library_types` used but never assigned in __init__: Method `add_sp…
utils/analyze_code_size.py:378
HIGH
MINED108
[MINED108] `self.is_dictionary_like_type` used but never assigned in __init__: Method `gr…
utils/analyze_code_size.py:352
HIGH
MINED108
[MINED108] `self.is_class_type` used but never assigned in __init__: Method `group_librar…
utils/analyze_code_size.py:366
HIGH
MINED108
[MINED108] `self.is_class_type` used but never assigned in __init__: Method `group_librar…
utils/analyze_code_size.py:359
HIGH
MINED108
[MINED108] `self.is_class_type` used but never assigned in __init__: Method `group_librar…
utils/analyze_code_size.py:351
HIGH
MINED108
[MINED108] `self.is_class_type_` used but never assigned in __init__: Method `is_class_ty…
utils/analyze_code_size.py:321
HIGH
MINED108
[MINED108] `self.add_specialization` used but never assigned in __init__: Method `add` of…
utils/analyze_code_size.py:301
HIGH
MINED108
[MINED108] `self.add_specialization` used but never assigned in __init__: Method `add` of…
utils/analyze_code_size.py:310
HIGH
MINED108
[MINED108] `self.add_symbol` used but never assigned in __init__: Method `add` of class `…
utils/analyze_code_size.py:307
HIGH
MINED108
[MINED108] `self.add_symbol` used but never assigned in __init__: Method `add` of class `…
utils/analyze_code_size.py:305
HIGH
MINED108
[MINED108] `self.add_symbol` used but never assigned in __init__: Method `add` of class `…
utils/analyze_code_size.py:298
HIGH
MINED108
[MINED108] `self.categorize_by_mangled_name` used but never assigned in __init__: Method …
utils/analyze_code_size.py:303
HIGH
MINED108
[MINED108] `self.categorize_by_name` used but never assigned in __init__: Method `add` of…
utils/analyze_code_size.py:296
HIGH
MINED034
[MINED034] Python Subprocess Shell True: subprocess(..., shell=True) enables command inje…
utils/update_generated_tests/litplugin.…:28
HIGH
MINED001
[MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e…
utils/swift_build_support/swift_build_s…:57
HIGH
MINED036
[MINED036] Python Os System Call: os.system() invokes shell with no escaping.
utils/resolve-crashes.py:14
HIGH
MINED011
[MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get…
stdlib/public/runtime/Leaks.mm:146
HIGH
MINED004
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
utils/bug_reducer/bug_reducer/func_bug_…:1
HIGH
MINED004
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
include/swift/Basic/MD5Stream.h:26
HIGH
MINED004
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
benchmark/single-source/RC4.swift:19
HIGH
SEC103
[SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA…
utils/build_swift/build_swift/defaults.…:92
HIGH
SEC103
[SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA…
benchmark/scripts/create_benchmark.py:87
HIGH
MINED038
[MINED038] Swift Try Bang: try! crashes on thrown error. Use try? or do/catch.
benchmark/single-source/CodableTest.swi…:88
HIGH
MINED038
[MINED038] Swift Try Bang: try! crashes on thrown error. Use try? or do/catch.
benchmark/multi-source/Monoids/Trie.swi…:12
HIGH
MINED038
[MINED038] Swift Try Bang: try! crashes on thrown error. Use try? or do/catch.
benchmark/Package.swift:24
HIGH
SEC029
[SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT…
tools/swift-inspect/Sources/SwiftInspec…:33
HIGH
SEC029
[SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT…
benchmark/single-source/ObjectiveCNoBri…:186
HIGH
SEC029
[SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT…
benchmark/Package.swift:23
HIGH
MINED008
[MINED008] Swift Force Unwrap: optional! crashes on nil. Use guard let or if let.
SwiftCompilerSources/Sources/Optimizer/…:154
HIGH
MINED008
[MINED008] Swift Force Unwrap: optional! crashes on nil. Use guard let or if let.
SwiftCompilerSources/Sources/Optimizer/…:51
HIGH
MINED008
[MINED008] Swift Force Unwrap: optional! crashes on nil. Use guard let or if let.
SwiftCompilerSources/Sources/Optimizer/…:42
HIGH
SEC128
[SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call …
SwiftCompilerSources/Sources/SIL/Utilit…:56
HIGH
SEC128
[SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call …
SwiftCompilerSources/Sources/Optimizer/…:137
HIGH
SEC128
[SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call …
SwiftCompilerSources/Sources/Basic/Util…:158
HIGH
SEC013
[SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat…
utils/swift-build-modules.py:49
HIGH
SEC013
[SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat…
utils/optimizer_counters_to_sql.py:131
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/build_swift/build_swift/presets.py:298
MED
MINED109
[MINED109] Mutable default argument in `run_bootstrap_script` (list): `def run_bootstrap_…
utils/swift_build_support/swift_build_s…:45
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/swift_build_support/swift_build_s…:380
MED
MINED109
[MINED109] Mutable default argument in `run_build_script_helper` (list): `def run_build_s…
utils/swift_build_support/swift_build_s…:52
MED
MINED109
[MINED109] Mutable default argument in `run_build_script_helper` (list): `def run_build_s…
utils/swift_build_support/swift_build_s…:56
MED
MINED109
[MINED109] Mutable default argument in `_run_swift_syntax_dev_utils` (list): `def _run_sw…
utils/swift_build_support/swift_build_s…:51
MED
MINED109
[MINED109] Mutable default argument in `run_build_script_helper` (list): `def run_build_s…
utils/swift_build_support/swift_build_s…:56
MED
MINED109
[MINED109] Mutable default argument in `run_swift_syntax_dev_utils` (list): `def run_swif…
utils/swift_build_support/swift_build_s…:91
MED
MINED109
[MINED109] Mutable default argument in `run_swiftsyntax_build_script` (list): `def run_sw…
utils/swift_build_support/swift_build_s…:51
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/update_checkout/update_checkout/u…:304
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/update_checkout/update_checkout/u…:231
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/update_checkout/update_checkout/u…:83
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/update_checkout/update_checkout/p…:82
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/update_checkout/update_checkout/r…:32
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/api_checker/swift-api-checker.py:38
MED
MINED109
[MINED109] Mutable default argument in `merge_all_jobstats` (list): `def merge_all_jobsta…
utils/jobstats/jobstats.py:353
MED
MINED109
[MINED109] Mutable default argument in `load_stats_dir` (list): `def load_stats_dir(... =…
utils/jobstats/jobstats.py:299
MED
MINED109
[MINED109] Mutable default argument in `list_stats_dir_profiles` (list): `def list_stats_…
utils/jobstats/jobstats.py:275
MED
MINED109
[MINED109] Mutable default argument in `find_profiles_in` (list): `def find_profiles_in(.…
utils/jobstats/jobstats.py:249
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/process-stats-dir.py:509
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/process-stats-dir.py:475
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/swift_build_sdk_interfaces.py:371
MED
MINED111
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r…
utils/swift_build_sdk_interfaces.py:317
MED
SEC045
[SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even …
utils/swift-dev-utils/Sources/SwiftXcod…:110
MED
SEC012
[SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all…
utils/download-unpublished-toolchains.py:55
MED
SEC127
[SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T…
utils/swift_build_support/swift_build_s…:36
MED
SEC127
[SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T…
utils/build_swift/build_swift/argparse/…:117
MED
SEC134
[SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum…
benchmark/single-source/StringRemoveDup…:17
MED
SEC134
[SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum…
benchmark/single-source/DiffingMyers.sw…:27
MED
SEC134
[SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum…
benchmark/single-source/Diffing.swift:69
MED
AIC001
Parallel implementation file sits beside a canonical file
validation-test/compiler_crashers_fixed…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/decl/protocol/special/coding/class…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/decl/protocol/special/coding/class…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/SILGen/vtable_thunks_reabstraction…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/SILGen/property_wrappers_final.swi…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/Runtime/crash_without_backtrace_op…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/Parse/ConditionalCompilation/pound…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/ModuleInterface/associated_type_su…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/IRGen/raw_layout_old.swift:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/Generics/inverse_signatures_assoc_…:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/ClangImporter/enum-new.swift:1
MED
AIC001
Parallel implementation file sits beside a canonical file
test/AssociatedTypeInference/rdar167849…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/decl/protocol/special/coding/class…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/decl/protocol/special/coding/class…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Serialization/target-too-new.swift:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/SILOptimizer/tsan_cxx_witness_copy…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/SILGen/vtable_thunks_reabstraction…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Runtime/crash_without_backtrace_op…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/ModuleInterface/associated_type_su…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/ModuleInterface/ModuleCache/Inputs…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/ModuleInterface/ModuleCache/Inputs…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Generics/inverse_signatures_assoc_…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Generics/inverse_scoping_assoc_typ…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Constraints/salvage_fixed.swift:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/Concurrency/Runtime/async_task_loc…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/AutoDiff/compiler_crashers_fixed/r…:1
MED
AIC004
Suspicious implementation file appears unreferenced
test/AssociatedTypeInference/rdar167849…:1
MED
SEC005
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
utils/update_generated_tests/litplugin.…:28
MED
CORE_NO_CI
No CI/CD configuration found
—
LOW
SEC132
[SEC132] String concat where the language has interpolation (AI style drift): String buil…
unittests/ClangImporter/ClangImporterTe…:166
LOW
SEC132
[SEC132] String concat where the language has interpolation (AI style drift): String buil…
benchmark/scripts/perf_test_driver/perf…:88
LOW
SEC132
[SEC132] String concat where the language has interpolation (AI style drift): String buil…
benchmark/scripts/create_benchmark.py:127
LOW
COMP001
[COMP001] High cognitive complexity: Function `should_define_truncating_bit_pattern_init`…
utils/SwiftIntTypes.py:89
LOW
COMP001
[COMP001] High cognitive complexity: Function `insert_line_alphabetically` has cognitive …
benchmark/scripts/create_benchmark.py:136
LOW
COMP001
[COMP001] High cognitive complexity: Function `add_import_benchmark` has cognitive comple…
benchmark/scripts/create_benchmark.py:68
LOW
AIC003
Duplicated implementation block across source files
include/swift/Basic/DiverseStack.h:155
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/attr/attr_final.swift:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/decl/protocol/special/coding/class…:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/SILGen/property_wrappers_final.swi…:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/Sema/copy_expr_noimplicit_copy.swi…:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/SILGen/vtable_thunks_reabstraction…:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/SILGen/objc_final.swift:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/decl/protocol/special/coding/class…:1
LOW
AIC005
Duplicate top-level symbol appears in a patch-style file
test/PrintAsObjC/Inputs/reintroduced-ne…:1
LOW
AIC002
Source file name looks like an AI patch artifact
utils/android/adb_clean.py:1
LOW
AIC002
Source file name looks like an AI patch artifact
tools/swift-refactor/swift-refactor.cpp:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/stdlib/tgmath_optimized.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/attr/attr_final.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/SourceKit/CodeComplete/complete_up…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/Serialization/target-too-new.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/SILOptimizer/tsan_cxx_witness_copy…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/SILGen/objc_final.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/Profiler/coverage_optimized.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/ModuleInterface/ModuleCache/Inputs…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/ModuleInterface/ModuleCache/Inputs…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/IRGen/select_enum_optimized.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/Generics/inverse_scoping_assoc_typ…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/Constraints/salvage_fixed.swift:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/Concurrency/Runtime/async_task_loc…:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/ClangImporter/Inputs/enum-new.h:1
LOW
AIC002
Source file name looks like an AI patch artifact
test/AutoDiff/compiler_crashers_fixed/r…:1
INFO
MINED080
[MINED080] Cpp Using Namespace Std: using namespace std; pollutes the global namespace.
utils/test-header-footer-layout/TestHea…:6
INFO
MINED043
[MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr…
utils/python_lint.py:49
INFO
MINED050
[MINED050] Stub Only Function: Function declared but body is just pass, return None, rais…
utils/optimizer_counters_to_sql.py:69
INFO
MINED050
[MINED050] Stub Only Function: Function declared but body is just pass, return None, rais…
utils/lldb/lldbCheckExpect.py:18
INFO
MINED050
[MINED050] Stub Only Function: Function declared but body is just pass, return None, rais…
utils/build_swift/build_swift/argparse/…:118
INFO
MINED077
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
utils/swift-abi-symbol-checker.py:8
INFO
MINED077
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
utils/split_file.py:40
INFO
MINED077
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
utils/api_checker/sdk-module-lists/infe…:107
INFO
MINED049
[MINED049] Print Pii: Logging password/token/email/ssn directly to stdout.
tools/swift-inspect/Sources/swift-inspe…:101
INFO
MINED049
[MINED049] Print Pii: Logging password/token/email/ssn directly to stdout.
tools/swift-inspect/Sources/swift-inspe…:222
INFO
MINED048
[MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues.
stdlib/public/runtime/ReflectionMirrorO…:32
INFO
MINED048
[MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues.
stdlib/public/runtime/Leaks.mm:100
INFO
MINED075
[MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo…
unittests/MetadataReader/MetadataReader…:100
INFO
MINED075
[MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo…
stdlib/toolchain/Compatibility56/includ…:254
INFO
MINED075
[MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo…
stdlib/public/runtime/Heap.cpp:93
INFO
MINED042
[MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri…
include/swift/Basic/IndexTrie.h:60
INFO
MINED042
[MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri…
include/swift/Basic/Cache.h:37
INFO
MINED042
[MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri…
include/swift/AST/PotentialMacroExpansi…:53