Repository Analysis

erlang/otp

Erlang/OTP

1.8 Likely human-written View on GitHub
1.8
Adjusted Score
1.8
Raw Score
100%
Time Factor
2026-05-29
Last Push
12,146
Stars
Erlang
Language
1,383,111
Lines of Code
3110
Files
2494
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 129LOW 2365

Pattern Findings

2494 matches across 10 categories. Click a row to expand file-level details.

Over-Commented Block2337 hits · 2061 pts
SeverityFileLineSnippet
LOW.elp.toml1## %CopyrightBegin%
LOWerl-build-tool-vars.sh1#
LOWerl-build-tool-vars.sh21#
LOW.gitpod.yml1## %CopyrightBegin%
LOW.ort.yml1## %CopyrightBegin%
LOWerts/test/run_erl_SUITE_data/run_erl_test.pl1#
LOWerts/test/run_erl_SUITE_data/defuncter.pl1#
LOWerts/test/utils/gccifier.sh1#!/bin/sh
LOWerts/test/erl_print_SUITE_data/erl_print_tests.c21 */
LOWerts/test/erl_print_SUITE_data/erl_print_tests.c41#endif
LOWerts/include/erl_fixed_size_int_types.h41#endif
LOWerts/include/erl_fixed_size_int_types.h61# if SIZEOF_CHAR != SIZEOF_CHAR_SAVED__
LOWerts/include/erl_fixed_size_int_types.h81#ifdef SIZEOF_LONG_SAVED__
LOWerts/include/erl_fixed_size_int_types.h101#define SGND_INT_64_FSTR "ld"
LOWerts/include/erl_fixed_size_int_types.h121#define SGND_INT_32_FSTR "d"
LOWerts/include/erl_fixed_size_int_types.h141typedef unsigned char usgnd_int_8;
LOWerts/include/internal/ethread_inline.h41# define ETHR_GCC_COMPILER ETHR_GCC_COMPILER_CLANG
LOWerts/include/internal/ethread_inline.h61
LOWerts/include/internal/ethr_mutex.h41 *
LOWerts/include/internal/ethr_mutex.h81# define ETHR_MTX_HARD_DEBUG_WSQ
LOWerts/include/internal/ethr_mutex.h101# define ETHR_MTX_Q_LOCK_SPINLOCK__
LOWerts/include/internal/ethr_mutex.h421#endif
LOWerts/include/internal/ethr_mutex.h521 ethr_atomic32_add(&(MTXB)->non_exclusive, (NO)); \
LOWerts/include/internal/ethr_mutex.h541# define ETHR_MTX_CHK_EXCL_IS_EXCL(MTXB)
LOWerts/include/internal/ethr_atomics.h181#undef ETHR_AMC_NO_ATMCS__
LOWerts/include/internal/ethr_atomics.h201# define ETHR_NATMC32_ADDR_FUNC__(VAR) \
LOWerts/include/internal/ethr_atomics.h221# ifdef ETHR_TRY_INLINE_FUNCS
LOWerts/include/internal/ethr_atomics.h241#undef ETHR_NEED_NATMC32_ADDR
LOWerts/include/internal/ethr_atomics.h261# define ETHR_NATMC_ADDR_FUNC__ ethr_native_atomic32_addr
LOWerts/include/internal/ethr_atomics.h301# else /* locked fallback */
LOWerts/include/internal/ethr_atomics.h321
LOWerts/include/internal/ethr_atomics.h341# elif ETHR_SIZEOF_PTR == 4
LOWerts/include/internal/ethr_atomics.h361
LOWerts/include/internal/ethr_atomics.h381# define ETHR_AMC_NO_ATMCS__ 1
LOWerts/include/internal/ethr_atomics.h421#endif
LOWerts/include/internal/ethr_atomics.h441#if !defined(ETHR_DW_ATMC_INLINE__) || defined(ETHR_ATOMIC_IMPL__)
LOWerts/include/internal/ethr_atomics.h481# define ETHR_UNUSUAL_SINT32_VAL__ ((ethr_sint32_t) 0x81818181)
LOWerts/include/internal/ethr_atomics.h501# ifndef ETHR_COMPILER_BARRIER
LOWerts/include/internal/ethr_atomics.h541#endif
LOWerts/include/internal/ethr_atomics.h621 && (defined(ETHR_DW_ATMC_INLINE__) || defined(ETHR_ATOMIC_IMPL__)))
LOWerts/include/internal/ethr_atomics.h641# endif
LOWerts/include/internal/ethr_atomics.h661# define ETHR_HAVE_DW_NATMC_CMPXCHG_RELB 1
LOWerts/include/internal/ethr_atomics.h681# endif
LOWerts/include/internal/ethr_atomics.h701# define ETHR_HAVE_DW_NATMC_SET_ACQB 1
LOWerts/include/internal/ethr_atomics.h721# endif
LOWerts/include/internal/ethr_atomics.h741# define ETHR_HAVE_DW_NATMC_READ_WB 1
LOWerts/include/internal/ethr_atomics.h761# endif
LOWerts/include/internal/ethr_atomics.h781# define ETHR_HAVE_DW_NATMC_INIT_RB 1
LOWerts/include/internal/ethr_atomics.h801# endif
LOWerts/include/internal/ethr_atomics.h821# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_CMPXCHG
LOWerts/include/internal/ethr_atomics.h841# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_CMPXCHG_RELB
LOWerts/include/internal/ethr_atomics.h861# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_SET_WB
LOWerts/include/internal/ethr_atomics.h881# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_READ
LOWerts/include/internal/ethr_atomics.h901# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_READ_RELB
LOWerts/include/internal/ethr_atomics.h921# ifdef ETHR_HAVE_ETHR_NATIVE_ATOMIC64_INIT_WB
LOWerts/include/internal/ethr_atomics.h961 ETHR_DW_NATMC_FUNC__(read)(VAR, VAL)
LOWerts/include/internal/ethr_atomics.h981#define ETHR_DW_NATMC_CMPXCHG_FALLBACK_READ__(VAR, VAL) \
LOWerts/include/internal/ethr_atomics.h1041 ETHR_SU_DW_NATMC_FUNC__(read)(VAR)
LOWerts/include/internal/ethr_atomics.h2781# error "Missing native atomic implementation"
LOWerts/include/internal/ethr_atomics.h2801# define ETHR_HAVE_NATMC_CMPXCHG_RELB 1
2277 more matches not shown…
Decorative Section Separators120 hits · 345 pts
SeverityFileLineSnippet
MEDIUMlib/dialyzer/doc/warnings.txt1##----------------------------------------------------------------------------
MEDIUMlib/dialyzer/doc/warnings.txt5##----------------------------------------------------------------------------
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1306# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1316# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1326# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1336# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt55# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt64# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt144# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt193# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt220# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt262# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt304# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt342# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt353# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt383# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt485# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt760# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt775# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt804# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt983# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt998# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1013# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1026# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1044# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1054# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1067# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1090# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1122# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1151# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1161# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1173# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1185# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1212# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1229# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1254# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1264# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1294# ================================================
MEDIUMlib/stdlib/uc_spec/IndicSyllabicCategory.txt1402# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt20# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt445# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt748# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt756# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt813# ================================================
MEDIUMlib/stdlib/uc_spec/emoji-data.txt830# ================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt27# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt29# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt56# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt58# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt64# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt202# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt206# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt211# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt228# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt233# ================================================================================
MEDIUMlib/stdlib/uc_spec/SpecialCasing.txt254# ================================================================================
MEDIUMlib/stdlib/uc_spec/CaseFolding.txt31# ================================================================================
MEDIUMlib/stdlib/uc_spec/CaseFolding.txt33# ================================================================================
MEDIUMlib/stdlib/uc_spec/CaseFolding.txt55# =================================================================
MEDIUMlib/stdlib/uc_spec/CaseFolding.txt62# =================================================================
60 more matches not shown…
Self-Referential Comments8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMerts/etc/win32/msys_tools/make_bootstrap_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUMerts/etc/win32/msys_tools/make_local_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUMerts/etc/win32/wsl_tools/make_bootstrap_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUMerts/etc/win32/wsl_tools/make_local_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUMerts/etc/win32/cygwin_tools/make_bootstrap_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUMerts/etc/win32/cygwin_tools/make_local_ini.sh23# Create a local init-file for erlang in the build environment.
MEDIUM.github/workflows/reusable-release.yaml182 # Create a release for 26 and 27
MEDIUM.github/scripts/sync-github-releases.sh86## This function is used to loop over the pagianated results from github tags
Slop Phrases8 hits · 10 pts
SeverityFileLineSnippet
LOW…or/test/nif_SUITE_data/nif_api_2_4/erl_nif_api_funcs.h31** And don't forget to increase ERL_NIF_MINOR_VERSION in erl_nif.h
LOWerts/emulator/asmjit/x86/x86assembler.h487//! // Let's just emit 'sub zsp, 0' for now, but don't forget to use LONG form.
LOWerts/emulator/asmjit/x86/x86assembler.h503//! a.long_().sub(zsp, stack_size); // Patch the code; don't forget to use LONG form.
LOWerts/emulator/ryu/update.sh170Don't forget to push to ${ORIGIN_REPO} as well:
LOWerts/emulator/beam/erl_lock_count.h265 * reference. Don't forget to specify the lock type in \c flags! */
LOWerts/emulator/beam/erl_nif_api_funcs.h31** And don't forget to increase ERL_NIF_MINOR_VERSION in erl_nif.h
LOW.github/workflows/main.yaml260 ## and then make sure to use that sha instead of env.OTP_SBOM_VERSION
LOW.github/scripts/restore-from-prebuilt.sh137 ## If you update this, make sure to update the update after the loop as well
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippet
LOWerts/emulator/ryu/to_chars.h34 // Step 5: Print the decimal representation.
LOWerts/emulator/ryu/d2s.c111 // Step 2: Determine the interval of valid decimal representations.
LOWerts/emulator/ryu/d2s.c119 // Step 3: Convert to a decimal power base using 128-bit arithmetic.
LOWerts/emulator/ryu/d2s.c195 // Step 4: Find the shortest decimal representation in the interval of valid representations.
LOWerts/emulator/ryu/d2s.c337 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.
LOWerts/emulator/beam/external.c6793 * If we are sending an alias message, we need to check if it supports
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippet
LOW.github/scripts/sync-github-releases.sh134 ## Check if we need to patch the body of the release
LOW.github/scripts/sync-github-releases.sh138 ## Check if we need to reformat the body
LOW.github/scripts/renovate-vendored-deps.sh62 # Check if update script exists
LOW.github/scripts/create-openvex-pr.sh35# Check if PR is closed
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWerts/etc/unix/etp.py293
LOWerts/etc/unix/etp.py308
LOWerts/etc/unix/etp.py426
LOWerts/etc/unix/etp.py517
LOWerts/etc/unix/etp-thr.py23
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWlib/asn1/test/asn1_SUITE_data/Null.py18 name "Jane Doe",
LOWlib/asn1/test/asn1_SUITE_data/XSeq.py19 president "Jane Doe",
LOWlib/asn1/test/asn1_SUITE_data/XSeq.py20 vicePresident "John Doe",
LOWlib/stdlib/test/zip_SUITE_data/test.txt1Lorem Ipsum osv osv
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMerts/emulator/asmjit/core/emitter.h134//! often. To make the experience of using AsmJit seamless it offers validation features that can be controlled
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWerts/etc/unix/etp.py615def erts_lookup_function_info(valobj):