Repository Analysis

Atmosphere-NX/Atmosphere

Atmosphère is a work-in-progress customized firmware for the Nintendo Switch.

1.7 Likely human-written View on GitHub
1.7
Adjusted Score
1.7
Raw Score
100%
Time Factor
2026-05-29
Last Push
19,091
Stars
C++
Language
502,154
Lines of Code
3436
Files
900
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 900

Pattern Findings

900 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block887 hits · 840 pts
SeverityFileLineSnippet
LOWconfig_templates/exosphere.ini1# Key: debugmode, default: 1.
LOWconfig_templates/exosphere.ini21# NOTE: On retail units max ram size is capped to 4GB.
LOWconfig_templates/exosphere.ini41# to ensure a safe backup of calibration data is stored in unused
LOWthermosphere/src/exceptions.h21 * Borrowed fom Xen (not copyrightable as these are facts).
LOWthermosphere/src/lib/vsprintf.c21 * Fri Jul 13 2001 Crutcher Dunnavant <crutcher+kernel@datastacks.com>
LOWthermosphere/src/lib/ini.h81/* Chars that begin a start-of-line comment. Per Python configparser, allow
LOWthermosphere/src/lib/ini.h121/* Stop parsing on first error (default is to keep parsing). */
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp21#define DC_CMD_GENERAL_INCR_SYNCPT 0x00
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp41#define PW2_ENABLE (1 << 4)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp61#define GENERAL_UPDATE (1 << 8)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp81#define DC_DISP_DISP_WIN_OPTIONS 0x402
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp101#define PIXEL_CLK_DIVIDER_PCD2 (2 << 8)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp121#define DISP_DATA_FORMAT_DFSPI (6 << 0)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp141#define BASE_COLOR_SIZE_565 (6 << 0)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp161#define DC_DISP_SD_BL_CONTROL 0x4DC
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp181#define COLOR_EXPAND (1 << 6)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp201#define WIN_COLOR_DEPTH_YUV420P 0x13
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp221#define DC_WIN_V_INITIAL_DDA 0x708
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp241
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp261#define DSI_HOST_CONTROL_TX_TRIG_FIFO (1 << 12)
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp281
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp301#define DSI_PKT_SEQ_2_HI 0x28
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp321
LOWexosphere/mariko_fatal/source/fatal_registers_di.hpp341#define DSI_PAD_PREEMP_PD_CLK(x) (((x) & 0x3) << 12)
LOWexosphere/mariko_fatal/source/fatfs/ff.c41#define MAX_DIR_EX 0x10000000 /* Max size of exFAT directory */
LOWexosphere/mariko_fatal/source/fatfs/ff.c61
LOWexosphere/mariko_fatal/source/fatfs/ff.c81/* exFAT directory entry types */
LOWexosphere/mariko_fatal/source/fatfs/ff.c101#define BPB_Media 21 /* Media descriptor byte (BYTE) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c121#define BPB_BkBootSec32 50 /* FAT32: Offset of backup boot sector (WORD) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c141#define BPB_BytsPerSecEx 108 /* exFAT: Log2 of sector size in unit of byte (BYTE) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c161#define LDIR_Type 12 /* LFN: Entry type (BYTE) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c181#define XDIR_NameHash 36 /* exFAT: Hash of file name (WORD) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c201#define PTE_StCyl 3 /* MBR PTE: Start cylinder */
LOWexosphere/mariko_fatal/source/fatfs/ff.c221#define GPTH_PtBcc 88 /* GPT: Partation table BCC (DWORD) */
LOWexosphere/mariko_fatal/source/fatfs/ff.c241#else
LOWexosphere/mariko_fatal/source/fatfs/ff.c261#define SS(fs) ((UINT)FF_MAX_SS) /* Fixed sector size */
LOWexosphere/mariko_fatal/source/fatfs/ff.c461#endif
LOWexosphere/mariko_fatal/source/fatfs/ff.c481#error Wrong FF_MIN_GPT setting
LOWexosphere/mariko_fatal/source/fatfs/ff.c501#else /* LFN configurations */
LOWexosphere/mariko_fatal/source/fatfs/ff.c521#define FREE_NAMBUF()
LOWexosphere/mariko_fatal/source/fatfs/ff.c541#else
LOWexosphere/mariko_fatal/source/fatfs/diskio.h41
LOWexosphere/mariko_fatal/source/fatfs/diskio.h61#define MMC_GET_CID 12 /* Get CID */
LOWexosphere/mariko_fatal/source/fatfs/ff.h21
LOWexosphere/mariko_fatal/source/fatfs/ff.h81#ifndef _INC_TCHAR
LOWexosphere/mariko_fatal/source/fatfs/ff.h101#define _TEXT(x) x
LOWexosphere/mariko_fatal/source/fatfs/ff.h141#if FF_MAX_SS != FF_MIN_SS
LOWexosphere/mariko_fatal/source/fatfs/ff.h401/* Format options (2nd argument of f_mkfs) */
LOWexosphere/program/source/smc/secmon_smc_handler.cpp21#include "secmon_smc_aes.hpp"
LOWfusee/program/source/fusee_registers_di.hpp21#define DC_CMD_GENERAL_INCR_SYNCPT 0x00
LOWfusee/program/source/fusee_registers_di.hpp41#define PW2_ENABLE (1 << 4)
LOWfusee/program/source/fusee_registers_di.hpp61#define GENERAL_UPDATE (1 << 8)
LOWfusee/program/source/fusee_registers_di.hpp81#define DC_DISP_DISP_WIN_OPTIONS 0x402
LOWfusee/program/source/fusee_registers_di.hpp101#define PIXEL_CLK_DIVIDER_PCD2 (2 << 8)
LOWfusee/program/source/fusee_registers_di.hpp121#define DISP_DATA_FORMAT_DFSPI (6 << 0)
LOWfusee/program/source/fusee_registers_di.hpp141#define BASE_COLOR_SIZE_565 (6 << 0)
LOWfusee/program/source/fusee_registers_di.hpp161#define DC_DISP_SD_BL_CONTROL 0x4DC
LOWfusee/program/source/fusee_registers_di.hpp181#define COLOR_EXPAND (1 << 6)
LOWfusee/program/source/fusee_registers_di.hpp201#define WIN_COLOR_DEPTH_YUV420P 0x13
LOWfusee/program/source/fusee_registers_di.hpp221#define DC_WIN_V_INITIAL_DDA 0x708
827 more matches not shown…
Unused Imports5 hits · 5 pts
SeverityFileLineSnippet
LOWfusee/build_package3.py3
LOWfusee/program/lz4_compress.py3
LOWfusee/program/lz4_compress.py3
LOWmesosphere/build_mesosphere.py2
LOWutilities/insert_splash_screen.py2
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOW…osphere/source/fssystem/fssystem_local_file_system.cpp1360 /* If on macOS, we need to check if the path is a directory before trying to unlink it. */
LOWlibraries/libmesosphere/source/kern_k_scheduler.cpp124 /* We need to check if the thread's process has a pinned thread. */
LOWstratosphere/loader/source/ldr_process_creation.cpp386 /* If the signature check fails, we need to check if this is allowable. */
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWmesosphere/build_mesosphere.py5def atmosphere_target_firmware(major, minor, micro, rev = 0):
LOWutilities/nxo64.py192 def _add_sections_to_segments(self):
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWtroposphere/daybreak/nanovg/include/nanovg_gl.h210 // don't forget to also update the fragment shader source!
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWmesosphere/build_mesosphere.py12
Excessive Try-Catch Wrapping1 hit · 0 pts
SeverityFileLineSnippet
LOWutilities/erpt.py497 except Exception as e: