Repository Analysis

OpenRCT2/OpenRCT2

An open source re-implementation of RollerCoaster Tycoon 2 🎢

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
15,730
Stars
C++
Language
835,851
Lines of Code
1606
Files
493
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 2LOW 490

Pattern Findings

493 matches across 8 categories. Click a row to expand file-level details.

Over-Commented Block480 hits · 480 pts
SeverityFileLineSnippet
LOWtest/tests/PlayTests.cpp21#include <openrct2/actions/park/ParkSetParameterAction.h>
LOWtest/tests/FormattingTests.cpp1/*****************************************************************************
LOWtest/tests/Pathfinding.cpp1#include "TestData.h"
LOWtest/tests/tests_pch.h1#pragma once
LOWtest/tests/S6ImportExportTests.cpp21#include <openrct2/core/Crypt.h>
LOWtest/tests/tests_pch.cpp1// Empty file for MSVC's PCH
LOWresources/version.h1#define OPENRCT2_FILE_VERSION 0, 0, 0, 0
LOWresources/resource.h1//{{NO_DEPENDENCIES}}
LOWscripts/run-clang-format.py141 if args.style:
LOWsrc/openrct2/EditorObjectSelectionSession.cpp21#include "entity/Guest.h"
LOWsrc/openrct2/ReplayManager.cpp21#include "actions/cheats/CheatSetAction.h"
LOWsrc/openrct2/ReplayManager.cpp41#include "object/ObjectManager.h"
LOWsrc/openrct2/Version.h21#elif defined(__aarch64__) || defined(_M_ARM64)
LOWsrc/openrct2/Version.h41 #define OPENRCT2_ARCHITECTURE "wasm64"
LOWsrc/openrct2/Version.h61 #define OPENRCT2_PLATFORM "FreeBSD"
LOWsrc/openrct2/GameState.h21#include "ride/Ride.h"
LOWsrc/openrct2/Version.cpp41 #if defined(OPENRCT2_BRANCH) && defined(OPENRCT2_COMMIT_SHA1_SHORT)
LOWsrc/openrct2/Context.cpp21#include "GameStateSnapshots.h"
LOWsrc/openrct2/Context.cpp41#include "core/Timer.hpp"
LOWsrc/openrct2/Context.cpp61#include "park/ParkFile.h"
LOWsrc/openrct2/openrct2_pch.h1#pragma once
LOWsrc/openrct2/openrct2_pch.h21#include "Context.h"
LOWsrc/openrct2/openrct2_pch.cpp1// Empty file for MSVC's PCH
LOWsrc/openrct2/Diagnostic.h41 * The defines will be either 0 or 1 so compiler will complain about undefined
LOWsrc/openrct2/Diagnostic.h61 #define DEBUG_LEVEL_1 0
LOWsrc/openrct2/Diagnostic.h81 #define DIAGNOSTIC_LOG_MACRO(level, format, ...)
LOWsrc/openrct2/Editor.cpp21#include "actions/park/LandBuyRightsAction.h"
LOWsrc/openrct2/Editor.cpp41#include "rct1/RCT1.h"
LOWsrc/openrct2/GameState.cpp21#include "entity/PatrolArea.h"
LOWsrc/openrct2/Game.cpp21#include "ParkImporter.h"
LOWsrc/openrct2/Game.cpp41#include "entity/Staff.h"
LOWsrc/openrct2/Game.cpp61#include "scenario/Scenario.h"
LOWsrc/openrct2/rct1/S4Importer.cpp1/*****************************************************************************
LOWsrc/openrct2/rct1/S4Importer.cpp21#include "../core/Guard.hpp"
LOWsrc/openrct2/rct1/S4Importer.cpp41#include "../object/ObjectManager.h"
LOWsrc/openrct2/rct1/S4Importer.cpp61#include "../world/MapAnimation.h"
LOWsrc/openrct2/rct1/S4Importer.cpp1381 dst->PathfindGoal.z = 0xFF;
LOWsrc/openrct2/rct1/T4Importer.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/Paint.cpp21#include "../localisation/Currency.h"
LOWsrc/openrct2/paint/Paint.Entity.cpp21#include "../profiling/Profiling.h"
LOWsrc/openrct2/paint/track/thrill/3dCinema.cpp1/*****************************************************************************
LOW…c/openrct2/paint/track/thrill/SwingingInverterShip.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/MagicCarpet.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/SwingingShip.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/Enterprise.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/Twist.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/TopSpin.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/thrill/MotionSimulator.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/transport/Chairlift.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/transport/MiniatureRailway.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/water/RiverRapids.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/SpaceRings.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/FerrisWheel.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/MerryGoRound.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/MiniGolf.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/Maze.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/HauntedHouse.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/Circus.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/gentle/CrookedHouse.cpp1/*****************************************************************************
LOWsrc/openrct2/paint/track/shops/Facility.cpp1/*****************************************************************************
420 more matches not shown…
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHsrc/openrct2/peep/PeepAnimations.cpp197 // Get available costumes, excluding from random placement as requested
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWsrc/openrct2/actions/terraform/LandSetHeightAction.cpp114 // We need to check if there is _currently_ a level crossing on the tile.
LOW…droid/app/src/main/java/org/libsdl/app/SDLSurface.java230 // We need to check if we're in relative mouse mode and get the axis offset rather than the x/y values
LOWsrc/openrct2-ui/windows/TextInput.cpp432 // The window can be potentially closed within a callback, we need to check if its still alive.
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/run-clang-format.py124 except Exception as e:
MEDIUMscripts/run-clang-format.py118def run_clang_format_diff_wrapper(args, file):
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/run-clang-format.py45
LOWscripts/run-clang-format.py63
LOWscripts/run-clang-format.py211
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM…droid/app/src/main/java/org/libsdl/app/SDLSurface.java231 // if we are. We'll leverage our existing mouse motion listener
Unused Imports2 hits · 2 pts
SeverityFileLineSnippet
LOWscripts/run-clang-format.py13
LOWscripts/run-clang-format.py13
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/run-clang-format.py118def run_clang_format_diff_wrapper(args, file):