Repository Analysis

zerotier/ZeroTierOne

A Smart Ethernet Switch for Earth

3.3 Likely human-written View on GitHub
3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,786
Stars
C++
Language
473,486
Lines of Code
1908
Files
1755
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 87LOW 1668

Pattern Findings

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

Over-Commented Block1642 hits · 1335 pts
SeverityFileLineSnippet
LOWversion.h41#endif
LOWselftest.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWselftest.cpp21#include "node/Packet.hpp"
LOWselftest.cpp41#include <vector>
LOWone.cpp21#include <time.h>
LOWone.cpp41#include <dirent.h>
LOWone.cpp61#include <linux/capability.h>
LOWone.cpp81#include <algorithm>
LOWnonfree/controller/EmbeddedNetworkController.hpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/CV2.hpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/CV1.hpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/DB.hpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/CV2.cpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/CV2.cpp281 // return info;
LOWnonfree/controller/CV2.cpp301 // if (r.size() == 0) {
LOWnonfree/controller/CV2.cpp321 // "(nonce, nonce_expiration, network_id, member_id) VALUES "
LOWnonfree/controller/CV2.cpp341 // "SELECT oc.client_id, oc.authorization_endpoint, oc.issuer, oc.provider, oc.sso_impl_version "
LOWnonfree/controller/CV2.cpp361 // provider = r.at(0)[3].as<std::optional<std::string>>().value_or("");
LOWnonfree/controller/CV2.cpp381 // OSUtils::ztsnprintf(url, sizeof(authenticationURL),
LOWnonfree/controller/CV2.cpp401 // info.issuerURL.c_str(),
LOWnonfree/controller/CV1.cpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/ConnectionPool.hpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/EmbeddedNetworkController.cpp1/* (c) ZeroTier, Inc.
LOWnonfree/controller/EmbeddedNetworkController.cpp21#include <memory>
LOWinclude/ZeroTierDebug.h21#include <unistd.h>
LOWinclude/ZeroTierDebug.h41#define ZT_RESET "\x1B[0m"
LOWinclude/ZeroTierDebug.h61#ifdef __FreeBSD__
LOWinclude/ZeroTierDebug.h81#endif
LOWinclude/ZeroTierOne.h21// clang-format off
LOWinclude/ZeroTierOne.h41#pragma comment(lib, "ZeroTierOne_x64d.lib")
LOWinclude/ZeroTierOne.h281 * Packet characteristics flag: TCP SYN flag
LOWinclude/ZeroTierOne.h301#define ZT_REMOTE_TRACE_FIELD__LOCAL_PHYADDR "localPhyAddr"
LOWinclude/ZeroTierOne.h321#define ZT_REMOTE_TRACE_FIELD__CREDENTIAL_TIMESTAMP "credTs"
LOWinclude/ZeroTierOne.h341#define ZT_REMOTE_TRACE_EVENT__NETWORK_CONFIG_REQUEST_SENT 0x2005
LOWext/arm32-neon-salsa2012-asm/salsa2012.h1#ifndef ZT_SALSA2012_ARM32NEON_ASM
LOWext/hiredis-0.14.1/win32.h1#ifndef _WIN32_HELPER_INCLUDE
LOWext/hiredis-0.14.1/win32.h41#endif
LOWext/hiredis-0.14.1/sdsalloc.h41#define s_realloc realloc
LOWext/hiredis-0.14.1/net.c41#include <netinet/tcp.h>
LOWext/hiredis-0.14.1/test.c1#include "fmacros.h"
LOWext/hiredis-0.14.1/test.c741 }
LOWext/hiredis-0.14.1/test.c761// __test_callback_flags <<= 8;
LOWext/hiredis-0.14.1/test.c781// redisFree(c);
LOWext/hiredis-0.14.1/test.c801//
LOWext/hiredis-0.14.1/test.c821// redisCommandWithCallback(c,__test_reply_callback,(void*)3,"PING");
LOWext/hiredis-0.14.1/fmacros.h1#ifndef __HIREDIS_FMACRO_H
LOWext/hiredis-0.14.1/read.h41 * error that occurred. REDIS_ERR_IO means there was an I/O error and you
LOWext/hiredis-0.14.1/include/hiredis/win32.h1#ifndef _WIN32_HELPER_INCLUDE
LOWext/hiredis-0.14.1/include/hiredis/win32.h41#endif
LOWext/hiredis-0.14.1/include/hiredis/sdsalloc.h41#define s_realloc realloc
LOWext/hiredis-0.14.1/include/hiredis/fmacros.h1#ifndef __HIREDIS_FMACRO_H
LOWext/hiredis-0.14.1/include/hiredis/read.h41 * error that occurred. REDIS_ERR_IO means there was an I/O error and you
LOWext/inja/inja.hpp41#endif
LOWext/inja/inja.hpp61#include <sstream>
LOWext/inja/inja.hpp81// #include "node.hpp"
LOWext/inja/inja.hpp901#include <string>
LOWext/ed25519-amd64-asm/sc25519.h1#ifndef SC25519_H
LOWext/ed25519-amd64-asm/ge25519.h1#ifndef GE25519_H
LOWext/ed25519-amd64-asm/fe25519.h1#ifndef FE25519_H
LOWext/ed25519-amd64-asm/index_heap.h1#ifndef INDEX_HEAP_H
1582 more matches not shown…
Decorative Section Separators66 hits · 135 pts
SeverityFileLineSnippet
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh169# ----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh178# --------------------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh480# -------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh529# ---------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh575# ----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh598# --------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh622# ------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh646# ------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh679# -------------------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh691# --------------------------------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh712# ----------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh731# --------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh740# ------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh776# -----------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh789# -----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh801# -----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh812# ---------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh838# ---------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh886# -------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh924# ------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1014# --------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1030# --------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1095# --------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1147# -------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1177# ---------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1207# -----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1232# ------------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1261# ----------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1282# -------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1295# -----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1308# ----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1333# -----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1350# ---------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1483# -----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1495# ---------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1512# ------------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1523# ---------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1646# ----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1663# ---------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1697# --------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1725# ---------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1841# ------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1877# ----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1905# ------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1918# ------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1953# -----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1979# ----------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1992# ------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2012# ------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2057# ----------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2077# -------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2156# ---------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2173 # ---------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2195# -------------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2207# -----------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2227# -------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2248# -----------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2291# ------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2328# -----------------------------
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2388# ---------------------------------
6 more matches not shown…
AI Slop Vocabulary9 hits · 24 pts
SeverityFileLineSnippet
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh331# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh5319# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh9271 # This code stresses the "libraries are programs" paradigm to its
MEDIUM….0/api/include/opentelemetry/trace/span_startoptions.h45 // more nuanced parent identification:
MEDIUM…de/opentelemetry/nostd/internal/absl/base/attributes.h41// are not defined as such in any file). To utilize the following
MEDIUM…clude/opentelemetry/nostd/internal/absl/base/options.h42// Diamond dependency problems can be avoided if all packages utilize the same
MEDIUM…i-only/include/opentelemetry/trace/span_startoptions.h45 // more nuanced parent identification:
MEDIUM…de/opentelemetry/nostd/internal/absl/base/attributes.h41// are not defined as such in any file). To utilize the following
MEDIUM…clude/opentelemetry/nostd/internal/absl/base/options.h42// Diamond dependency problems can be avoided if all packages utilize the same
Self-Referential Comments12 hits · 21 pts
SeverityFileLineSnippet
MEDIUMext/libpqxx-7.7.3/tools/template2mak.py83 # This file is generated automatically by libpqxx's {script} script, and
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh1402# This file is a library for parsing options in your shell scripts along
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2594# This function is only a basic sanity check; it will hardly flush out
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2604# This function implements the same check as func_lalib_p without
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2627# This function is only a basic sanity check; it will hardly flush out
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2637# This function is only a basic sanity check; it will hardly flush out
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2662# This function is only a basic sanity check; it will hardly flush out
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh2802# Create a libtool object file (analogous to a ".la" file),
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh7570 # Create the object directory.
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh10249 # Create the old-style object.
MEDIUMext/libpqxx-7.7.3/config/ltmain.sh10269 # Create an invalid libtool object if no PIC, so that we don't
MEDIUM…pts/semantic-convention/templates/registry/weaver.yaml4# This file is the main file for weaver,
Unused Imports9 hits · 9 pts
SeverityFileLineSnippet
LOWext/libpqxx-7.7.3/tools/template2mak.py19
LOWext/libpqxx-7.7.3/tools/template2mak.py19
LOWext/libpqxx-7.7.3/tools/template2mak.py19
LOWext/libpqxx-7.7.3/tools/test_all.py12
LOWext/libpqxx-7.7.3/tools/m4esc.py10
LOWext/libpqxx-7.7.3/tools/m4esc.py10
LOWext/libpqxx-7.7.3/tools/m4esc.py10
LOWext/opentelemetry-cpp-1.21.0/docs/public/conf.py34
LOWext/opentelemetry-cpp-1.21.0/docs/public/conf.py35
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippet
LOW…rometheus-cpp-lite-1.0/core/include/prometheus/gauge.h113 /// Example usage:
LOW…metheus-cpp-lite-1.0/core/include/prometheus/counter.h98 /// Example usage:
LOW…ometheus-cpp-lite-1.0/core/include/prometheus/family.h329 /// Example usage:
LOW…theus-cpp-lite-1.0/core/include/prometheus/histogram.h128 /// Example usage:
LOW…metheus-cpp-lite-1.0/core/include/prometheus/summary.h128 /// Example usage:
Redundant / Tautological Comments7 hits · 6 pts
SeverityFileLineSnippet
LOWext/libpqxx-7.7.3/config/ltmain.sh623# Set func_arith_result to the result of evaluating TERMs.
LOWext/libpqxx-7.7.3/config/ltmain.sh647# Set func_basename_result to FILE with everything up to and including
LOWext/libpqxx-7.7.3/config/ltmain.sh813# Set func_len_result to the length of STRING. STRING may not
LOWext/libpqxx-7.7.3/config/ltmain.sh1031# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
LOWext/libpqxx-7.7.3/config/ltmain.sh4003 # Check if any of the arguments is a wrapper script.
LOWext/libpqxx-7.7.3/config/ltmain.sh9972 # Loop over the list of objects to be linked.
LOWpkg/qnap/zerotier/qpkg.cfg46# Set value to 1 means to open the QPKG's Web UI inside QTS desktop instead of new window.
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippet
LOWext/libpqxx-7.7.3/tools/test_all.py261 except Exception as error:
LOWext/libpqxx-7.7.3/tools/test_all.py416 except Exception as error:
LOWext/libpqxx-7.7.3/tools/test_all.py437 except Exception as error:
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWext/opentelemetry-cpp-1.21.0/tools/check_copyright.sh34# make sure to filter *\.md to avoid hiding *.cmd
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOW…xt/include/opentelemetry/ext/http/server/http_server.h120 class HttpRequestHandler : public std::pair<std::string, HttpRequestCallback *>