Repository Analysis

dolphin-emu/dolphin

Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.

2.8 Likely human-written View on GitHub
2.8
Adjusted Score
2.8
Raw Score
100%
Time Factor
2026-05-29
Last Push
15,084
Stars
C++
Language
1,009,356
Lines of Code
5507
Files
3024
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 4MEDIUM 18LOW 3002

Pattern Findings

3024 matches across 12 categories. Click a row to expand file-level details.

Over-Commented Block2985 hits · 2706 pts
SeverityFileLineSnippet
LOWCMakeLists.txt601endif()
LOWBuildMacOSUniversalBinary.py41 "dst_app": "universal/",
LOWTools/perf-disassemble.sh1#!/bin/bash
LOWTools/symbolicate-ppc.py1#!/usr/bin/python
LOWTools/symbolicate-ppc.py21# 0.57% JIT_PPC_zz_044141c_ (/tmp/perf-15936.map)
LOWSource/PCH/pch.h1// Copyright 2013 Dolphin Emulator Project
LOWSource/PCH/pch.h21#undef STRINGIFY_HELPER
LOWSource/PCH/pch.h41#include <errno.h>
LOWSource/PCH/pch.h61#include <list>
LOWSource/PCH/pch.h81#include <stdlib.h>
LOWSource/PCH/pch.cpp1// Copyright 2014 Dolphin Emulator Project
LOWSource/PCH/nopch/pch.h1// dummy include to help with disabling pch for a single file
LOWSource/DSPTool/DSPTool.cpp1// Copyright 2009 Dolphin Emulator Project
LOWSource/DSPTool/DSPTool.cpp361
LOWSource/Core/Core/CheatSearch.cpp1// Copyright 2021 Dolphin Emulator Project
LOWSource/Core/Core/PatchEngine.cpp1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/PatchEngine.cpp21#include "Common/Assert.h"
LOWSource/Core/Core/NetPlayCommon.h1// Copyright 2021 Dolphin Emulator Project
LOWSource/Core/Core/Core.h1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/NetworkCaptureLogger.cpp1// Copyright 2021 Dolphin Emulator Project
LOWSource/Core/Core/NetworkCaptureLogger.h1// Copyright 2021 Dolphin Emulator Project
LOWSource/Core/Core/Host.h1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/MachineContext.h1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/MachineContext.h21#define CTX_RDX Rdx
LOWSource/Core/Core/MachineContext.h41#error No context definition for architecture
LOWSource/Core/Core/MachineContext.h61#define CTX_R9 __r9
LOWSource/Core/Core/MachineContext.h81#if _M_X86_64
LOWSource/Core/Core/MachineContext.h101#define CTX_LR __ss.__lr
LOWSource/Core/Core/MachineContext.h121#define CTX_RSP gregs[REG_RSP]
LOWSource/Core/Core/MachineContext.h141typedef ucontext_t SContext;
LOWSource/Core/Core/MachineContext.h161#define CTX_REG(x) sc_x[x]
LOWSource/Core/Core/MachineContext.h181#define CTX_R9 __gregs[_REG_R9]
LOWSource/Core/Core/MachineContext.h201#define CTX_RSI mc_rsi
LOWSource/Core/Core/MachineContext.h221#elif defined(__HAIKU__)
LOWSource/Core/Core/Core.cpp1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/Core.cpp21#endif
LOWSource/Core/Core/Core.cpp41#include "Core/Boot/Boot.h"
LOWSource/Core/Core/Core.cpp61#include "Core/HW/Wiimote.h"
LOWSource/Core/Core/Core.cpp81
LOWSource/Core/Core/Movie.h1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/State.cpp1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/State.cpp21
LOWSource/Core/Core/State.cpp41#include "Core/HW/HW.h"
LOWSource/Core/Core/NetPlayServer.h1// Copyright 2013 Dolphin Emulator Project
LOWSource/Core/Core/BootManager.cpp1// Copyright 2011 Dolphin Emulator Project
LOWSource/Core/Core/BootManager.cpp21
LOWSource/Core/Core/AchievementManager.cpp1// Copyright 2023 Dolphin Emulator Project
LOWSource/Core/Core/AchievementManager.cpp21#include "Common/StringUtil.h"
LOWSource/Core/Core/CoreTiming.cpp1// Copyright 2008 Dolphin Emulator Project
LOWSource/Core/Core/CoreTiming.cpp21#include "Core/CPUThreadConfigCallback.h"
LOWSource/Core/Core/DolphinAnalytics.cpp1// Copyright 2016 Dolphin Emulator Project
LOWSource/Core/Core/DolphinAnalytics.cpp21#include <functional>
LOWSource/Core/Core/AchievementManager.h1// Copyright 2023 Dolphin Emulator Project
LOWSource/Core/Core/AchievementManager.h21#include <picojson.h>
LOWSource/Core/Core/NetPlayClient.cpp1// Copyright 2010 Dolphin Emulator Project
LOWSource/Core/Core/NetPlayClient.cpp21#include <fmt/ranges.h>
LOWSource/Core/Core/NetPlayClient.cpp41#include "Core/Config/NetplaySettings.h"
LOWSource/Core/Core/NetPlayClient.cpp61#include "Core/HW/Wiimote.h"
LOWSource/Core/Core/NetPlayClient.cpp2001 // that we hardcode the knowledge that they go in order, so if
LOWSource/Core/Core/WiiUtils.cpp1// Copyright 2017 Dolphin Emulator Project
2925 more matches not shown…
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippet
HIGHExternals/mbedtls/library/error.c226 /* Begin Auto-Generated Code. */
HIGHExternals/mbedtls/library/error.c569 /* End Auto-Generated Code. */
HIGHExternals/mbedtls/library/error.c590 /* Begin Auto-Generated Code. */
HIGHExternals/mbedtls/library/error.c887 /* End Auto-Generated Code. */
AI Slop Vocabulary8 hits · 22 pts
SeverityFileLineSnippet
LOWBuildMacOSUniversalBinary.py56 # be cryptographically signed/notarized but will instead just use a
MEDIUMBuildMacOSUniversalBinary.py79# 2) Single architecture builds should utilize the normal generated cmake
MEDIUMSource/Core/Core/HW/GCMemcard/GCMemcard.cpp156 // whichever block has the higher value. Essentially, if (0.update_ctr >= 1.update_ctr) { use 0 }
MEDIUMSource/Core/Core/HLE/HLE_Misc.cpp44 // robust alternative would be to actually detect memory writes, but that
MEDIUMSource/Core/Core/FifoPlayer/FifoRecorder.cpp224 // The video thread may call into functions that utilize these
MEDIUMSource/Core/VideoCommon/ShaderCache.cpp1235 // - AMD, Nvidia: Definitely keyed on dual source blend, but the others seem more random
MEDIUMSource/Core/VideoCommon/AbstractTexture.cpp47 // Use a temporary staging texture for the download. Certainly not optimal,
MEDIUMSource/Core/DolphinQt/Debugger/EditSymbolDialog.cpp101 // Not sure what the max size should be. Definitely not a full 8, so set to 7.
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMExternals/mbedtls/include/psa/crypto.h967 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h1341 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h1402 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h1761 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h1825 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h2290 * -# Initialize the operation object with one of the methods described in the
MEDIUMExternals/mbedtls/include/psa/crypto.h2360 * -# Initialize the operation object with one of the methods described in the
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMExternals/liblzma/CMakeLists.txt54#============================================================================
MEDIUMExternals/liblzma/CMakeLists.txt56#============================================================================
MEDIUMExternals/bzip2/CMakeLists.txt52#============================================================================
MEDIUMExternals/bzip2/CMakeLists.txt54#============================================================================
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippet
LOWSource/Core/Core/State.cpp97// Don't forget to increase this after doing changes on the savestate system
LOWSource/Core/DolphinQt/Config/SettingsWindow.cpp193 // If you change the order, don't forget to update the SettingsWindowPaneIndex enum.
LOWExternals/mbedtls/include/mbedtls/blowfish.h40#define MBEDTLS_BLOWFISH_ROUNDS 16 /**< Rounds to use. When increasing this value, make sure to extend the
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWTools/test-updater.py56
LOWExternals/mbedtls/scripts/config.py439
LOWExternals/discord-rpc/build.py255
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWTools/perf-disassemble.sh11# Example usage:
LOWSource/Core/Common/Analytics.h31// Example usage:
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWSource/Core/Core/PowerPC/PPCAnalyst.cpp395 // Step 1: Find all functions
LOWSource/Core/Core/PowerPC/PPCAnalyst.cpp400 // Step 2:
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWTools/test-updater.py55class HTTPRequestHandler(http.server.BaseHTTPRequestHandler):
LOWTools/find-includes-cycles.py23def strongly_connected_components(graph):
Unused Imports2 hits · 2 pts
SeverityFileLineSnippet
LOWTools/test-updater.py19
LOWdocs/DSP/free_dsp_rom/generate_coefs.py1
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWdocs/ResourcePacks.md61"authors": ["John Doe", "Jane Doe"],
LOWdocs/ResourcePacks.md61"authors": ["John Doe", "Jane Doe"],