Repository Analysis

luanti-org/luanti

Luanti (formerly Minetest) is an open source voxel game-creation platform with easy modding and game creation

1.7 Likely human-written View on GitHub
1.7
Adjusted Score
1.7
Raw Score
100%
Time Factor
2026-05-29
Last Push
12,928
Stars
C++
Language
413,999
Lines of Code
1491
Files
707
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 6MEDIUM 6LOW 695

Pattern Findings

707 matches across 11 categories. Click a row to expand file-level details.

Over-Commented Block683 hits · 646 pts
SeverityFileLineSnippet
LOWutil/updatepo.sh1#!/bin/sh
LOWutil/ci/indent_tab_preprocess.py1#!/usr/bin/python3
LOWutil/ci/indent_tab_preprocess.py21#
LOWutil/ci/indent_tab_preprocess.py41# <tab><spc>C
LOW…roid/app/src/main/java/org/libsdl/app/SDLActivity.java1321 source = device.getSources();
LOWlib/gmp/mini-gmp.c41 mpn/generic/mul_basecase.c, mpn/generic/rshift.c,
LOWlib/gmp/mini-gmp.c61
LOWlib/jsoncpp/jsoncpp.cpp81
LOWlib/jsoncpp/jsoncpp.cpp241// Distributed under MIT license, or public domain if desired and
LOWlib/jsoncpp/jsoncpp.cpp261#include <utility>
LOWlib/jsoncpp/jsoncpp.cpp2261
LOWlib/jsoncpp/jsoncpp.cpp2441// recognized in your jurisdiction.
LOWlib/jsoncpp/jsoncpp.cpp2501#if defined(__ARMEL__)
LOWlib/jsoncpp/jsoncpp.cpp2621#else // !JSONCPP_USE_SECURE_MEMORY
LOWlib/jsoncpp/jsoncpp.cpp4101// Beginning of content of file: src/lib_json/json_writer.cpp
LOWlib/jsoncpp/jsoncpp.cpp4121#include <utility>
LOWlib/jsoncpp/jsoncpp.cpp4141#include <float.h>
LOWlib/jsoncpp/jsoncpp.cpp4161#endif
LOWlib/jsoncpp/json/json-forwards.h81
LOWlib/jsoncpp/json/json-forwards.h101#define JSONCPP_VERSION_QUALIFIER
LOWlib/jsoncpp/json/json-forwards.h121
LOWlib/jsoncpp/json/json-forwards.h241// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
LOWlib/jsoncpp/json/json-forwards.h261#endif
LOWlib/jsoncpp/json/json-forwards.h281
LOWlib/jsoncpp/json/json-forwards.h301extern JSON_API int msvc_pre1900_c99_snprintf(char* outBuf, size_t size,
LOWlib/jsoncpp/json/json-forwards.h321#elif defined(__GNUC__) // not clang (gcc comes later since clang emulates gcc)
LOWlib/jsoncpp/json/json-forwards.h401// //////////////////////////////////////////////////////////////////////
LOWlib/jsoncpp/json/json.h81// //////////////////////////////////////////////////////////////////////
LOWlib/jsoncpp/json/json.h121
LOWlib/jsoncpp/json/json.h241// Distributed under MIT license, or public domain if desired and
LOWlib/jsoncpp/json/json.h261
LOWlib/jsoncpp/json/json.h281#elif defined(JSON_DLL)
LOWlib/jsoncpp/json/json.h301 const char* format, ...);
LOWlib/jsoncpp/json/json.h321#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
LOWlib/jsoncpp/json/json.h401// Beginning of content of file: include/json/forwards.h
LOWlib/jsoncpp/json/json.h461// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
LOWlib/jsoncpp/json/json.h521
LOWlib/jsoncpp/json/json.h541
LOWlib/jsoncpp/json/json.h561// to the c++11 standard and is rejected by clang 3.8 and Apple clang 8.2
LOWlib/jsoncpp/json/json.h581#include <memory>
LOWlib/jsoncpp/json/json.h781#endif // defined(JSON_HAS_INT64)
LOWlib/jsoncpp/json/json.h961 /// Return !isNull()
LOWlib/jsoncpp/json/json.h981 /// this from the operator[] which takes a string.)
LOWlib/jsoncpp/json/json.h1001 /// Equivalent to jsonvalue[jsonvalue.size()] = value;
LOWlib/jsoncpp/json/json.h1041 /// \note key may contain embedded nulls.
LOWlib/jsoncpp/json/json.h1321 /// Return either the index or the member name of the referenced value as a
LOWlib/jsoncpp/json/json.h1501#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
LOWlib/jsoncpp/json/json.h1521// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
LOWlib/jsoncpp/json/json.h1961
LOWlib/jsoncpp/json/json.h2341
LOWlib/lstrpack/lstrpack.c1// SPDX-License-Identifier: MIT
LOWlib/lua/src/llimits.h61
LOWlib/lua/src/llimits.h121*/
LOWlib/lua/src/luaconf.h21
LOWlib/lua/src/luaconf.h281#if defined(LUA_USE_READLINE)
LOWlib/lua/src/luaconf.h421#if LUAI_BITSINT >= 32
LOWlib/lua/src/luaconf.h541#define luai_numadd(a,b) ((a)+(b))
LOWlib/lua/src/lgc.h21#define GCSfinalize 4
LOWlib/lua/src/lgc.h61#define SFIXEDBIT 6
LOWlib/lua/src/lobject.c1/*
623 more matches not shown…
Synthetic Comment Markers6 hits · 45 pts
SeverityFileLineSnippet
HIGHirr/include/mt_opengl.h1// This code was generated by scripts/BindingGenerator.lua
HIGHirr/scripts/BindingGenerator.lua345// This code was generated by scripts/BindingGenerator.lua
HIGHirr/scripts/BindingGenerator.lua423// This code was generated by scripts/BindingGenerator.lua
HIGHirr/src/CEGLManager.cpp302 // We give a slight worse rating if attributes are not exact as requested
HIGHirr/src/mt_opengl_loader.cpp1// This code was generated by scripts/BindingGenerator.lua
HIGHsrc/inventory.h225 // If not as many items exist as requested, removes as
Excessive Try-Catch Wrapping4 hits · 7 pts
SeverityFileLineSnippet
MEDIUMutil/ci/run-clang-tidy.py68 print('Error: could not find compilation database.')
MEDIUMutil/ci/run-clang-tidy.py303 print('Error exporting fixes.\n', file=sys.stderr)
MEDIUMutil/ci/run-clang-tidy.py312 print('Error applying fixes.\n', file=sys.stderr)
LOWdoc/protocol.txt110except Exception as err:
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippet
MEDIUMbuiltin/common/settings/generate_from_settingtypes.lua7# This file contains a list of all available settings and their default value for minetest.conf
MEDIUMsrc/porting.cpp654 "# This file is a cache directory tag automatically created by "
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOWutil/ci/run-clang-tidy.py63def find_compilation_database(path):
LOWutil/ci/run-clang-tidy.py134def check_clang_apply_replacements_binary(args):
LOWirr/scripts/BindingGenerator.lua157local function NormalizeFunctionSignature( T, str )
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
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
LOWlib/catch2/catch_amalgamated.cpp5514 // No children have started. We need to check if they
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
LOWutil/reorder_translation_commits.py2
LOWutil/ci/run-clang-tidy.py36
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWutil/gather_git_credits.py19
LOWutil/ci/indent_tab_preprocess.py61
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/servermap.cpp626 // Hopefully this way we don't forget to keep them in sync.
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOWgames/devtest/mods/testformspec/formspec.lua122<justify>justify. Here comes a blind text: Lorem testum dolor sit amet consecutor celeron fiftifahivus e shadoninia e sm