Repository Analysis

moonlight-stream/moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)

1.3 Likely human-written View on GitHub
1.3
Adjusted Score
1.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
17,340
Stars
C++
Language
79,060
Lines of Code
182
Files
92
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 5LOW 87

Pattern Findings

92 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block86 hits · 86 pts
SeverityFileLineSnippet
LOWapp/masterhook.c1// This file contains hooks for several functions that allow
LOWapp/masterhook.c21#include <dlfcn.h>
LOWapp/masterhook_internal.c1// This file contains the private implementation of the open() hook
LOWapp/SDL_compat.h21#ifndef SDL_HINT_VIDEO_X11_FORCE_EGL
LOWapp/SDL_compat.h41#ifndef SDL_HINT_WINDOWS_USE_D3D9EX
LOWapp/SDL_compat.h61#ifndef SDL_HINT_MOUSE_AUTO_CAPTURE
LOWapp/main.cpp1#include <QGuiApplication>
LOWapp/main.cpp21// Don't let SDL hook our main function, since Qt is already
LOWapp/main.cpp41#include "cli/listapps.h"
LOWapp/main.cpp61#define LOG_TO_FILE
LOWapp/main.cpp501 qInfo() << "Removing old log file:" << existingLogNames.at(i);
LOWapp/main.cpp521
LOWapp/main.cpp581 if (forceGles) {
LOWapp/main.cpp621 qputenv("QT_OPENGL", "angle");
LOWapp/main.cpp701 // position as most other software does. Set this back to 0 to stay consistent with prior
LOWapp/main.cpp721 // on Wayland). We don't want this behavior because it interferes with seamless mouse
LOWapp/main.cpp741 // SDL3 supports offloading scaling to the Wayland compositor, which we take
LOWapp/wm.cpp1#include <QtGlobal>
LOWapp/wm.cpp21#ifdef HAVE_EGL
LOWapp/settings/streamingpreferences.cpp1#include "streamingpreferences.h"
LOWapp/settings/streamingpreferences.cpp21#define SER_VSYNC "vsync"
LOWapp/settings/streamingpreferences.cpp41#define SER_GAMEPADMOUSE "gamepadmouse"
LOWapp/backend/nvhttp.cpp1#include "nvcomputer.h"
LOWapp/backend/nvcomputer.cpp1#include "nvcomputer.h"
LOWapp/backend/computermanager.cpp1#include "computermanager.h"
LOWapp/backend/identitymanager.cpp1#include "identitymanager.h"
LOWapp/backend/computermanager.h1#pragma once
LOWapp/streaming/streamutils.cpp1#include "streamutils.h"
LOWapp/streaming/streamutils.cpp21#ifdef Q_OS_LINUX
LOWapp/streaming/streamutils.cpp41#define __NR_riscv_hwprobe 258
LOWapp/streaming/session.cpp1#include "session.h"
LOWapp/streaming/session.cpp21#else
LOWapp/streaming/session.cpp781
LOWapp/streaming/session.cpp1941 m_OverlayManager.setOverlayState(Overlay::OverlayDebug, m_Preferences->showPerformanceOverlay);
LOWapp/streaming/session.cpp1961 presence.runCallbacks();
LOWapp/streaming/session.cpp2061 // to recreate the decoder to allow it to adapt to the new display.
LOWapp/streaming/video/ffmpeg.cpp1#include <Limelight.h>
LOWapp/streaming/video/ffmpeg.cpp21#ifdef Q_OS_DARWIN
LOWapp/streaming/video/ffmpeg.cpp41#ifdef HAVE_EGL
LOWapp/streaming/video/ffmpeg.cpp1001 // DXVA2 appears in the hwaccel list before D3D11VA, so we only check for D3D11VA
LOWapp/streaming/video/ffmpeg-renderers/eglvid.h61#define NV12_PARAM_YUVMAT 0
LOWapp/streaming/video/ffmpeg-renderers/vaapi.h1#pragma once
LOWapp/streaming/video/ffmpeg-renderers/vaapi.h21#endif
LOWapp/streaming/video/ffmpeg-renderers/vaapi.h41#ifdef HAVE_LIBVA_X11
LOWapp/streaming/video/ffmpeg-renderers/d3d11va.cpp1// For D3D11_DECODER_PROFILE values
LOWapp/streaming/video/ffmpeg-renderers/d3d11va.cpp541
LOWapp/streaming/video/ffmpeg-renderers/d3d11va.cpp1481{
LOWapp/streaming/video/ffmpeg-renderers/eglvid.cpp1// vim: noai:ts=4:sw=4:softtabstop=4:expandtab
LOWapp/streaming/video/ffmpeg-renderers/eglvid.cpp401
LOWapp/streaming/video/ffmpeg-renderers/eglvid.cpp581 // SwapBuffers until the compositor consumes the frame. This will
LOWapp/streaming/video/ffmpeg-renderers/vt_base.mm1// Nasty hack to avoid conflict between AVFoundation and
LOWapp/streaming/video/ffmpeg-renderers/vaapi.cpp1#include <QString>
LOWapp/streaming/video/ffmpeg-renderers/renderer.h1#pragma once
LOWapp/streaming/video/ffmpeg-renderers/renderer.h61
LOWapp/streaming/video/ffmpeg-renderers/renderer.h81#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
LOWapp/streaming/video/ffmpeg-renderers/renderer.h101
LOWapp/streaming/video/ffmpeg-renderers/renderer.h161 virtual bool prepareDecoderContext(AVCodecContext* context, AVDictionary** options) = 0;
LOW…p/streaming/video/ffmpeg-renderers/vt_avsamplelayer.mm1// Nasty hack to avoid conflict between AVFoundation and
LOW…p/streaming/video/ffmpeg-renderers/eglimagefactory.cpp1#include "eglimagefactory.h"
LOWapp/streaming/video/ffmpeg-renderers/drm.h1#pragma once
26 more matches not shown…
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMapp/main.cpp721 // on Wayland). We don't want this behavior because it interferes with seamless mouse
MEDIUMapp/streaming/video/ffmpeg-renderers/vaapi.cpp282 // more robust than earlier versions and it includes DRI3 support for
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippet
MEDIUMscripts/git-archive-all.sh191TMPFILE=`mktemp "$TMPDIR/$PROGRAM.XXXXXX"` # Create a place to store our work's progress
MEDIUMscripts/git-archive-all.sh219# Create the superproject's git-archive
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippet
MEDIUMsetup-deps.py19 print(f"Error: Unsupported platform ({system})")
LOWsetup-deps.py39 except Exception as e: