AI Slop Code RIsk Monitor

dortania/OpenCore-Legacy-Patcher

Experience macOS just like before

14.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for dortania/OpenCore-Legacy-Patcher, a Python project with 18,570 GitHub stars. SynthScan examined 40,078 lines of code across 198 source files, recording 373 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 14.3 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.3
Adjusted Signal
14.3
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
18.6K
Stars
Python
Language
40.1K
Lines of Code
198
Files
373
Pattern Hits
2026-10-12
Scan Date
0.19
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 31.1/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 266 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.7/100 · LOW

Are imports declared and package/API names verified? 32 finding(s).

Agent Over-Engineering Ratio 39.9/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 239 finding(s).

PR Review Velocity Impact 51.7/100 · HIGH

Which changes need focused human review? 373 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 37MEDIUM 13LOW 323

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 373 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers163 hits · 172 pts
SeverityFileLineSnippetContext
LOWci_tooling/build_modules/package.py32 def _generate_installer_welcome(self) -> str:CODE
LOWci_tooling/build_modules/package.py54 def _generate_uninstaller_welcome(self) -> str:CODE
LOWci_tooling/build_modules/package.py70 def _generate_autopkg_welcome(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py12 def generate_standard_pkg_parameters(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py31 def generate_script_remove_file(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py63 def generate_script_create_parent_directory(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py171 def generate_fix_settings_file_permission(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py205 def generate_prewarm_gatekeeper(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py228 def generate_clean_launch_service(self) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py275 def generate_postinstall_main(self, is_autopkg: bool = False) -> str:CODE
LOW⚡ci_tooling/build_modules/package_scripts.py350 def _generate_preinstall_script(self, is_autopkg: bool = False) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py406 def _generate_postinstall_script(self, is_autopkg: bool = False) -> str:CODE
LOWci_tooling/build_modules/package_scripts.py472 def _generate_uninstall_script(self) -> str:CODE
LOWopencore_legacy_patcher/constants.py278 def payload_local_binaries_root_path_dmg(self):CODE
LOW⚡opencore_legacy_patcher/constants.py305 def auto_patch_launch_agent_path(self):CODE
LOW⚡opencore_legacy_patcher/constants.py309 def rsr_monitor_launch_daemon_path(self):CODE
LOW⚡opencore_legacy_patcher/constants.py313 def update_launch_daemon_path(self):CODE
LOWopencore_legacy_patcher/constants.py351 def nvidia_kepler_gop_driver_path(self):CODE
LOWopencore_legacy_patcher/constants.py532 def airport_atheros_tahoe_path(self):CODE
LOWopencore_legacy_patcher/constants.py536 def airport_brcmnic_tahoe_path(self):CODE
LOWopencore_legacy_patcher/constants.py657 def platform_plugin_plist_path(self):CODE
LOWopencore_legacy_patcher/constants.py722 def map_contents_folder_tahoe(self):CODE
LOWopencore_legacy_patcher/constants.py848 def payload_local_binaries_root_path(self):CODE
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_display.py53 def _generate_elements_display_patches(self, frame: wx.Frame = None) -> None:CODE
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_display.py295 def _check_if_new_patches_needed(self, patches: dict) -> bool:CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py929 def _populate_serial_spoofing_settings(self, panel: wx.Frame) -> None:CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py1095 def on_generate_serial_number(self, event: wx.Event) -> None:STRING
LOWopencore_legacy_patcher/wx_gui/gui_settings.py1109 def on_custom_serial_number_textbox(self, event: wx.Event) -> None:STRING
LOWopencore_legacy_patcher/wx_gui/gui_settings.py1114 def on_custom_board_serial_number_textbox(self, event: wx.Event) -> None:STRING
LOWopencore_legacy_patcher/wx_gui/gui_settings.py1160 def _populate_graphics_override(self, panel: wx.Panel) -> None:STRING
LOWopencore_legacy_patcher/wx_gui/gui_cache_os_update.py144 def _validate_kdk_checksum_thread():CODE
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_start.py432 def _check_if_new_patches_needed(self, patches: dict) -> bool:CODE
LOWopencore_legacy_patcher/wx_gui/gui_main_menu.py301 def on_post_install_root_patch(self, event: wx.Event = None):CODE
LOWopencore_legacy_patcher/wx_gui/gui_main_menu.py310 def on_create_macos_installer(self, event: wx.Event = None):CODE
LOW…_legacy_patcher/wx_gui/gui_macos_installer_download.py160 def _display_available_installers(self, event: wx.Event = None, show_full: bool = False) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/misc.py80 def _restrict_events_handling(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/misc.py108 def _re_generate_block_arguments(self) -> list:CODE
LOWopencore_legacy_patcher/efi_builder/misc.py136 def _re_generate_patch_arguments(self) -> list:CODE
LOWopencore_legacy_patcher/efi_builder/support.py176 def _validate_malformed_kexts(self, directory: str | Path) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/firmware.py69 def _power_management_handling(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/firmware.py147 def _cpu_compatibility_handling(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/firmware.py215 def _firmware_driver_handling(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/firmware.py276 def _firmware_compatibility_handling(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/bluetooth.py48 def _bluetooth_firmware_incompatibility_workaround(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py140 def _backlight_path_detection(self) -> None:CODE
LOWopencore_legacy_patcher/datasets/os_data.py93 def convert_kernel_to_marketing_name(kernel: int) -> str:CODE
LOWopencore_legacy_patcher/datasets/os_data.py120 def convert_marketing_name_to_kernel(marketing_name: str) -> int:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py261 def _create_new_apfs_snapshot(self) -> bool:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py271 def _rebuild_dyld_shared_cache(self) -> None:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py283 def _update_preboot_kernel_cache(self) -> None:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py304 def _delete_nonmetal_enforcement(self) -> None:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py317 def _delete_nonmetal_defaults(self) -> None:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py477 def _resolve_metallib_support_pkg(self) -> str:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py508 def _resolve_dynamic_patchset(self, variant: DynamicPatchset) -> str:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch_helpers.py130 def disable_window_server_caching(self):CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch_helpers.py154 def install_rsr_repair_binary(self):CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch_helpers.py183 def patch_gpu_compiler_libraries(self, mount_point: Union[str, Path]):CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/detect.py151 def _validation_check_unsupported_host_os(self) -> bool:CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/detect.py165 def _validation_check_missing_network_connection(self) -> bool:CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/detect.py173 def _validation_check_filevault_is_enabled(self) -> bool:CODE
103 more matches not shown…
Empty Error Handlers20 hits · 100 pts
SeverityFileLineSnippetContext
HIGHopencore_legacy_patcher/sys_patch/sys_patch.py542except TypeError:CODE
HIGH…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py131except Exception as e:CODE
HIGH…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py147except Exception as e:CODE
HIGH…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py161except Exception as e:CODE
HIGH…encore_legacy_patcher/sys_patch/utilities/kdk_merge.py41except:CODE
HIGH…her/sys_patch/kernelcache/kernel_collection/support.py49except PermissionError:CODE
HIGH…her/sys_patch/kernelcache/kernel_collection/support.py162except:CODE
HIGH…core_legacy_patcher/support/macos_installer_handler.py265except ValueError:CODE
HIGHopencore_legacy_patcher/support/utilities.py426except TypeError:CODE
HIGHopencore_legacy_patcher/support/utilities.py471except TypeError:CODE
HIGHopencore_legacy_patcher/support/utilities.py439except KeyError:CODE
HIGHopencore_legacy_patcher/support/utilities.py476except KeyError:CODE
HIGHopencore_legacy_patcher/support/validation.py145except TypeError:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py66except KeyError:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py105except KeyError:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py230except packaging.version.InvalidVersion:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py243except packaging.version.InvalidVersion:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py408except packaging.version.InvalidVersion:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py416except ValueError:CODE
HIGHopencore_legacy_patcher/sucatalog/products.py395except plistlib.InvalidFileException:CODE
Cross-File Repetition14 hits · 70 pts
SeverityFileLineSnippetContext
HIGH…sys_patch/patchsets/hardware/misc/display_backlight.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…gacy_patcher/sys_patch/patchsets/hardware/misc/gmux.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…ys_patch/patchsets/hardware/graphics/amd_legacy_gcn.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…cher/sys_patch/patchsets/hardware/graphics/amd_vega.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…cher/sys_patch/patchsets/hardware/graphics/amd_navi.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…s_patch/patchsets/hardware/graphics/amd_terascale_2.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…s_patch/patchsets/hardware/graphics/amd_terascale_1.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…/sys_patch/patchsets/hardware/graphics/nvidia_tesla.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…_patch/patchsets/hardware/graphics/nvidia_webdriver.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…r/sys_patch/patchsets/hardware/graphics/amd_polaris.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…s_patch/patchsets/hardware/graphics/intel_iron_lake.py0apple no longer provides standalone kexts in the base osSTRING
HIGH…sys_patch/patchsets/hardware/graphics/intel_haswell.py0new compiler format introduced in macos 15, sequoiaSTRING
HIGH…sys_patch/patchsets/hardware/graphics/nvidia_kepler.py0new compiler format introduced in macos 15, sequoiaSTRING
HIGH…_patch/patchsets/hardware/graphics/intel_ivy_bridge.py0new compiler format introduced in macos 15, sequoiaSTRING
Deep Nesting56 hits · 56 pts
SeverityFileLineSnippetContext
LOW…ore_legacy_patcher/wx_gui/gui_macos_installer_flash.py82CODE
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_display.py53CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py57CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py998CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py1180CODE
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_start.py229CODE
LOWopencore_legacy_patcher/wx_gui/gui_main_menu.py67CODE
LOW…_legacy_patcher/wx_gui/gui_macos_installer_download.py279CODE
LOWopencore_legacy_patcher/efi_builder/misc.py203CODE
LOWopencore_legacy_patcher/efi_builder/support.py195CODE
LOWopencore_legacy_patcher/efi_builder/smbios.py70CODE
LOWopencore_legacy_patcher/efi_builder/smbios.py89CODE
LOWopencore_legacy_patcher/efi_builder/storage.py49CODE
LOWopencore_legacy_patcher/efi_builder/storage.py103CODE
LOWopencore_legacy_patcher/efi_builder/bluetooth.py58CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py58CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py140CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py318CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py413CODE
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py475CODE
LOW…core_legacy_patcher/efi_builder/networking/wireless.py45CODE
LOW…core_legacy_patcher/efi_builder/networking/wireless.py90CODE
LOW…core_legacy_patcher/efi_builder/networking/wireless.py146CODE
LOWopencore_legacy_patcher/efi_builder/networking/wired.py83CODE
LOWopencore_legacy_patcher/efi_builder/networking/wired.py121CODE
LOWopencore_legacy_patcher/datasets/os_data.py139CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py390CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py518CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/detect.py377CODE
LOW…her/sys_patch/kernelcache/kernel_collection/support.py25CODE
LOW…her/sys_patch/kernelcache/kernel_collection/support.py110CODE
LOWopencore_legacy_patcher/sys_patch/auto_patcher/start.py45CODE
LOWopencore_legacy_patcher/support/generate_smbios.py16CODE
LOWopencore_legacy_patcher/support/generate_smbios.py129CODE
LOW…core_legacy_patcher/support/macos_installer_handler.py59CODE
LOW…core_legacy_patcher/support/macos_installer_handler.py309CODE
LOWopencore_legacy_patcher/support/arguments.py179CODE
LOWopencore_legacy_patcher/support/defaults.py263CODE
LOWopencore_legacy_patcher/support/defaults.py279CODE
LOWopencore_legacy_patcher/support/kdk_handler.py388CODE
LOWopencore_legacy_patcher/support/kdk_handler.py482CODE
LOWopencore_legacy_patcher/support/utilities.py519CODE
LOWopencore_legacy_patcher/support/network_handler.py321CODE
LOWopencore_legacy_patcher/support/reroute_payloads.py63CODE
LOWopencore_legacy_patcher/support/validation.py118CODE
LOWopencore_legacy_patcher/detections/amfi_detect.py101CODE
LOWopencore_legacy_patcher/detections/device_probe.py208CODE
LOWopencore_legacy_patcher/detections/device_probe.py357CODE
LOWopencore_legacy_patcher/detections/device_probe.py407CODE
LOWopencore_legacy_patcher/detections/device_probe.py454CODE
LOWopencore_legacy_patcher/detections/device_probe.py520CODE
LOWopencore_legacy_patcher/detections/device_probe.py916CODE
LOWopencore_legacy_patcher/detections/device_probe.py986CODE
LOWopencore_legacy_patcher/sucatalog/products.py187CODE
LOWopencore_legacy_patcher/sucatalog/products.py276CODE
LOWopencore_legacy_patcher/sucatalog/products_appledb.py74CODE
Redundant / Tautological Comments33 hits · 43 pts
SeverityFileLineSnippetContext
LOW⚡ci_tooling/privileged_helper_tool/install.sh23 # Check if path is a directoryCOMMENT
LOWci_tooling/privileged_helper_tool/install.sh35 # Check if destination path existsCOMMENT
LOWci_tooling/privileged_helper_tool/install.sh37 # Check if destination path is a directoryCOMMENT
LOWci_tooling/build_modules/package_scripts.py42 _script += " # Check if file is a symbolic link\n"CODE
LOWci_tooling/build_modules/package_scripts.py52 _script += " # Check if file is a directory\n"CODE
LOWci_tooling/build_modules/package_scripts.py75 _script += " # Check if parent directory exists\n"CODE
LOWci_tooling/build_modules/package_scripts.py97 _script += " # Check if path is a directory\n"CODE
LOWci_tooling/build_modules/package_scripts.py119 _script += " # Check if alias path exists\n"CODE
LOWci_tooling/build_modules/package_scripts.py121 _script += " # Check if alias path is a symbolic link\n"CODE
LOWci_tooling/build_modules/package_scripts.py215 _script += " # Check if /usr/bin/gktool exists\n"CODE
LOWci_tooling/build_modules/package_scripts.py240 _script += " # Check if directory exists\n"CODE
LOWopencore_legacy_patcher/constants.py240 self.disable_mediaanalysisd: bool = False # Set mediaanalysisd to spawnCODE
LOWopencore_legacy_patcher/wx_gui/gui_build.py114 # Check if config.plist was builtCOMMENT
LOWopencore_legacy_patcher/wx_gui/gui_sys_patch_display.py113 # Check if OCLP has already applied the same patchesCOMMENT
LOWopencore_legacy_patcher/wx_gui/gui_cache_os_update.py45 # Check if we need to patch the system volumeCOMMENT
LOWopencore_legacy_patcher/efi_builder/firmware.py362 # Set LauncherPath to '/boot.efi'COMMENT
LOWopencore_legacy_patcher/efi_builder/graphics_audio.py521 # Check if KDKless and KDK GPUs are presentCOMMENT
LOWopencore_legacy_patcher/efi_builder/networking/wired.py39 # Check if Ethernet was detected, otherwise fall back to assumptions (mainly for 2011 MacBook Airs and TB EthernCOMMENT
LOWopencore_legacy_patcher/sys_patch/sys_patch.py533 # Check if all files are presentCOMMENT
LOW…her/sys_patch/kernelcache/kernel_collection/support.py97 # Check if we need to update the 'OSBundleRequired' entryCOMMENT
LOWopencore_legacy_patcher/sys_patch/auto_patcher/start.py223 # Check if installed version is newer than booted versionSTRING
LOWopencore_legacy_patcher/sys_patch/auto_patcher/start.py292 # Check if OpenCore is on a USB driveSTRING
LOWopencore_legacy_patcher/support/metallib_handler.py187 # Check if this metallib is already installedCOMMENT
LOW…core_legacy_patcher/support/macos_installer_handler.py283 # Check if App Version is High Sierra or newerSTRING
LOWopencore_legacy_patcher/support/subprocess_wrapper.py50 # Check if first argument existsCOMMENT
LOWopencore_legacy_patcher/support/defaults.py128 # Check if running in RecoveryOSCOMMENT
LOWopencore_legacy_patcher/support/defaults.py151 # Check if model uses T2 SMBIOS, if so see if it needs root patching (determined earlier on via SIP variable)COMMENT
LOWopencore_legacy_patcher/support/defaults.py325 # Check if we're running in RosettaCOMMENT
LOWopencore_legacy_patcher/support/defaults.py431 # Check if type is differentCOMMENT
LOWopencore_legacy_patcher/support/kdk_handler.py238 # Check if this KDK is already installedCOMMENT
LOWopencore_legacy_patcher/support/validation.py133 # Check if any unknown PathType is presentCOMMENT
LOWopencore_legacy_patcher/volume/copy.py28 # Check if Copy on Write is supported.COMMENT
LOWopencore_legacy_patcher/sucatalog/products.py403 # Check if version is newer than the max versionCOMMENT
Decorative Section Separators9 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh2# ------------------------------------------------------COMMENT
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh4# ------------------------------------------------------COMMENT
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh6# ------------------------------------------------------COMMENT
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh9# ------------------------------------------------------COMMENT
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh13# ---------------------------COMMENT
MEDIUM⚡ci_tooling/privileged_helper_tool/install.sh18# ---------------------------COMMENT
MEDIUMci_tooling/privileged_helper_tool/install.sh51# ---------------------------COMMENT
MEDIUM⚡ci_tooling/build_modules/package_scripts.py338 # ------------------------------------------------------STRING
MEDIUM⚡ci_tooling/build_modules/package_scripts.py345 # ------------------------------STRING
Unused Imports31 hits · 31 pts
SeverityFileLineSnippetContext
LOWopencore_legacy_patcher/__init__.py1CODE
LOWopencore_legacy_patcher/wx_gui/gui_settings.py22CODE
LOW…_legacy_patcher/wx_gui/gui_macos_installer_download.py11CODE
LOW…_legacy_patcher/wx_gui/gui_macos_installer_download.py29CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/__init__.py5CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/__init__.py5CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/__init__.py6CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/__init__.py6CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/__init__.py6CODE
LOWopencore_legacy_patcher/sys_patch/utilities/__init__.py4CODE
LOWopencore_legacy_patcher/sys_patch/utilities/__init__.py4CODE
LOWopencore_legacy_patcher/sys_patch/utilities/__init__.py4CODE
LOWopencore_legacy_patcher/sys_patch/utilities/__init__.py5CODE
LOWopencore_legacy_patcher/sys_patch/utilities/__init__.py6CODE
LOW…ncore_legacy_patcher/sys_patch/kernelcache/__init__.py10CODE
LOW…ncore_legacy_patcher/sys_patch/kernelcache/__init__.py11CODE
LOW…core_legacy_patcher/sys_patch/auto_patcher/__init__.py16CODE
LOW…core_legacy_patcher/sys_patch/auto_patcher/__init__.py17CODE
LOWopencore_legacy_patcher/sys_patch/mount/__init__.py15CODE
LOWopencore_legacy_patcher/sys_patch/mount/__init__.py16CODE
LOWopencore_legacy_patcher/support/logging_handler.py19CODE
LOWopencore_legacy_patcher/support/logging_handler.py19CODE
LOWopencore_legacy_patcher/detections/device_probe.py13CODE
LOWopencore_legacy_patcher/volume/__init__.py45CODE
LOWopencore_legacy_patcher/volume/__init__.py46CODE
LOWopencore_legacy_patcher/volume/__init__.py46CODE
LOWopencore_legacy_patcher/sucatalog/__init__.py109CODE
LOWopencore_legacy_patcher/sucatalog/__init__.py110CODE
LOWopencore_legacy_patcher/sucatalog/__init__.py110CODE
LOWopencore_legacy_patcher/sucatalog/__init__.py111CODE
LOWopencore_legacy_patcher/sucatalog/__init__.py112CODE
Excessive Try-Catch Wrapping26 hits · 26 pts
SeverityFileLineSnippetContext
LOWopencore_legacy_patcher/wx_gui/gui_build.py145 except Exception as e:CODE
LOWopencore_legacy_patcher/sys_patch/patchsets/detect.py199 except Exception as e:CODE
LOW⚡opencore_legacy_patcher/sys_patch/patchsets/detect.py330 except Exception as e:CODE
LOW⚡…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py131 except Exception as e:STRING
LOW⚡…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py147 except Exception as e:STRING
LOW⚡…encore_legacy_patcher/sys_patch/utilities/dmg_mount.py161 except Exception as e:STRING
LOW…ncore_legacy_patcher/sys_patch/auto_patcher/install.py84 except Exception as e:CODE
LOW…ncore_legacy_patcher/sys_patch/auto_patcher/install.py89 except Exception as e:CODE
LOWopencore_legacy_patcher/support/arguments.py170 except Exception as e:CODE
LOWopencore_legacy_patcher/support/logging_handler.py81 except Exception as e:CODE
LOWopencore_legacy_patcher/support/logging_handler.py120 except Exception as e:CODE
LOWopencore_legacy_patcher/support/logging_handler.py158 except Exception as e:CODE
LOWopencore_legacy_patcher/support/logging_handler.py215 except Exception as e:CODE
LOWopencore_legacy_patcher/support/global_settings.py38 except Exception as e:CODE
LOWopencore_legacy_patcher/support/global_settings.py54 except Exception as e:CODE
LOWopencore_legacy_patcher/support/global_settings.py74 except Exception as e:CODE
LOWopencore_legacy_patcher/support/global_settings.py107 except Exception as e:CODE
LOWopencore_legacy_patcher/support/global_settings.py121 except Exception as e:CODE
LOWopencore_legacy_patcher/support/defaults.py416 except Exception as e:CODE
LOWopencore_legacy_patcher/support/kdk_handler.py306 except Exception as e:CODE
LOWopencore_legacy_patcher/support/network_handler.py266 except Exception as e:CODE
LOWopencore_legacy_patcher/support/network_handler.py310 except Exception as e:CODE
LOWopencore_legacy_patcher/support/network_handler.py368 except Exception as e:CODE
LOWopencore_legacy_patcher/detections/os_probe.py82 except Exception as e:CODE
LOWopencore_legacy_patcher/sucatalog/url.py173 except Exception as e:CODE
LOWopencore_legacy_patcher/sucatalog/products_appledb.py41 except Exception as e:CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHopencore_legacy_patcher/support/network_handler.py87 Wrapper for requests's get method Implement additional error handling Parameters: STRING
HIGHopencore_legacy_patcher/support/network_handler.py116 Wrapper for requests's post method Implement additional error handling Parameters: STRING
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMopencore_legacy_patcher/wx_gui/gui_install_oc.py146 # Create a button for each diskCOMMENT
MEDIUMopencore_legacy_patcher/support/generate_smbios.py130 # This function is mainly for users who are either spoofing or using hackintoshesCOMMENT
MEDIUM…core_legacy_patcher/support/macos_installer_handler.py88 # Create a new tmp directoryCOMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWci_tooling/privileged_helper_tool/install.sh1#!/bin/zsh --no-rcsCOMMENT
LOWci_tooling/privileged_helper_tool/main.m21#define OCLP_PHT_ERROR_MISSING_ARGUMENTS 160COMMENT
LOWopencore_legacy_patcher/efi_builder/misc.py321 support.BuildSupport(self.model, self.constants, self.config).get_kext_by_bundle_path("USB-Map.kext")["MCOMMENT
LOWopencore_legacy_patcher/efi_builder/firmware.py81 # However re-injecting the AICPUPM kexts is not enough, as Ventura changed how 'intel_cpupm_matching' is setCOMMENT
LOWopencore_legacy_patcher/efi_builder/firmware.py261 # CSM checkCOMMENT
LOWopencore_legacy_patcher/detections/device_probe.py961 self.t1_chip = TrueCOMMENT
LOWopencore_legacy_patcher/sucatalog/products.py301 "Version": None,COMMENT
LOW.github/workflows/build-app-wxpython.yml41 # - name: Import Application Signing CertificateCOMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHopencore_legacy_patcher/efi_builder/security.py59 # This is however hidden behind kern.development, thus we patch _apfs_filevault_allowed to always return truCOMMENT
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWopencore_legacy_patcher/efi_builder/build.py122 def _set_revision(self) -> None:CODE
LOWopencore_legacy_patcher/efi_builder/smbios.py89 def set_smbios(self) -> None:CODE
LOWopencore_legacy_patcher/sys_patch/sys_patch.py283 def _update_preboot_kernel_cache(self) -> None:CODE
LOWopencore_legacy_patcher/support/network_handler.py272 def _update_checksum(self, chunk: bytes) -> None:CODE
LOWopencore_legacy_patcher/support/reroute_payloads.py28 def _setup_tmp_disk_image(self) -> None:CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…patch/patchsets/hardware/networking/modern_wireless.py113CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWopencore_legacy_patcher/support/utilities.py507CODE