Repository Analysis

aria2/aria2

aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.

1.6 Likely human-written View on GitHub
1.6
Adjusted Score
1.6
Raw Score
100%
Time Factor
2026-05-15
Last Push
41,074
Stars
C++
Language
66,838
Lines of Code
618
Files
108
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 108

Pattern Findings

108 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block98 hits · 98 pts
SeverityFileLineSnippet
LOWtest/MockDHTMessageFactory.h1#ifndef D_MOCK_DHT_MESSAGE_FACTORY_H
LOWtest/MockBtMessageFactory.h1#ifndef D_MOCK_BT_MESSAGE_FACTORY_H
LOWdeps/wslay/examples/fork-echoserv.c41#include <unistd.h>
LOWdeps/wslay/lib/wslay_net.h21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
LOWdeps/wslay/lib/wslay_net.h41#ifdef HAVE_WINSOCK2_H
LOWdoc/manual-src/en/mkapiref.py1#!/usr/bin/env python3
LOWdoc/manual-src/en/mkapiref.py21# In addition, as a special exception, the copyright holders give
LOWsrc/alloca.c21 allocating any. It is a good idea to use alloca(0) in
LOWsrc/alloca.c61# if defined(CRAY) && defined(CRAY_STACKSEG_END)
LOWsrc/HttpInitiateConnectionCommand.h41
LOWsrc/TLSSession.h61 // Initializes SSL/TLS session. The |sockfd| is the underlying
LOWsrc/TLSSession.h81 virtual int checkDirection() = 0;
LOWsrc/download_helper.h81// Create RequestGroup objects using Metalink file specified by
LOWsrc/download_helper.h101// Creates UriListParser using given filename. If filename is "-",
LOWsrc/getaddrinfo.h41# include "config.h"
LOWsrc/getaddrinfo.h61
LOWsrc/getaddrinfo.h81#endif
LOWsrc/getaddrinfo.h101#ifdef AI_PASSIVE
LOWsrc/getaddrinfo.h121#endif
LOWsrc/getaddrinfo.h141
LOWsrc/getaddrinfo.h161# define getnameinfo my_getnameinfo
LOWsrc/getaddrinfo.h181 0x0100 /* Don't reject unassigned Unicode \
LOWsrc/getaddrinfo.h201#define EAI_OVERFLOW -12 /* Argument buffer overflow. */
LOWsrc/libssl_compat.h41# define LIBRESSL_IN_USE 1
LOWsrc/crypto_endian.h1/* Any copyright is dedicated to the Public Domain.
LOWsrc/crypto_endian.h101#if LITTLE_ENDIAN == BYTE_ORDER
LOWsrc/DHKeyExchange.h41#elif HAVE_LIBGMP
LOWsrc/paramed_string.h181 throw DL_ABORT_EX("Invalid loop range.");
LOWsrc/paramed_string.h201//
LOWsrc/WinTLSSession.h141 // client side session. This function returns TLS_ERR_OK if it
LOWsrc/WinTLSSession.h161
LOWsrc/LogFactory.h141#define A2_LOG_NOTICE(msg) A2_LOG(Logger::A2_NOTICE, msg)
LOWsrc/a2netcompat.h41# ifdef HAVE_WS2TCPIP_H
LOWsrc/a2netcompat.h61#ifdef HAVE_SYS_SOCKET_H
LOWsrc/a2netcompat.h81#ifdef HAVE_SYS_UIO_H
LOWsrc/a2netcompat.h141# define A2_IOV_MAX A2_DEFAULT_IOV_MAX
LOWsrc/FileEntry.h41#include <deque>
LOWsrc/FileEntry.h161 bool insertUri(const std::string& uri, size_t pos);
LOWsrc/message.h41
LOWsrc/message.h61#define MSG_NAME_RESOLUTION_COMPLETE \
LOWsrc/message.h81#define MSG_DELETING_REQUEST_SLOT "CUID#%" PRId64 " - Deleting request slot" \
LOWsrc/message.h101#define MSG_ACCEPT_FAILURE "CUID#%" PRId64 " - Error in accepting connection"
LOWsrc/message.h121#define MSG_INSUFFICIENT_CHECKSUM _("Insufficient checksums. checksumLength=%d, numChecksum=%d")
LOWsrc/message.h141#define MSG_URI_REQUIRED _("Specify at least one URL.")
LOWsrc/message.h161 " already exists.")
LOWsrc/message.h201#define MSG_GOOD_BYE_SEEDER "Client is in seed state: Good Bye Seeder;)"
LOWsrc/message.h221#define EX_NO_STATUS_HEADER _("No status header.")
LOWsrc/message.h241#define EX_FILE_READ _("Failed to read from the file %s, cause: %s")
LOWsrc/message.h261#define EX_SOCKET_CONNECT _("Failed to connect to the host %s, cause: %s")
LOWsrc/message.h281#define EX_INFOHASH_MISMATCH_IN_SEGFILE _("The infoHash in torrent file doesn't match to one in .aria2 file.")
LOWsrc/StreamPieceSelector.h41
LOWsrc/WebSocketSession.h61 // remote endpoint.
LOWsrc/DownloadEngine.h41#include <deque>
LOWsrc/a2time.h41#include <chrono>
LOWsrc/a2time.h61#endif // HAVE_ASCTIME_R
LOWsrc/Option.h61 // Returns true if name is defined. Otherwise returns false. Note
LOWsrc/SocketCore.h41#include <cstdlib>
LOWsrc/SocketCore.h361 // hostname, IP address or interface name like eth0. If the given
LOWsrc/SocketCore.h381// Set default ai_flags. hints.ai_flags is initialized with this
LOWsrc/getaddrinfo.c81
38 more matches not shown…
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWdoc/manual-src/en/mkapiref.py117
LOWdoc/manual-src/en/mkapiref.py162
LOWdoc/manual-src/en/mkapiref.py190
LOWdoc/manual-src/en/mkapiref.py69
LOWdoc/bash_completion/make_bash_completion.py67
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippet
LOWsrc/usage_text.h795 " command-line, don't forget to escape or quote it.\n" \
LOWsrc/RpcMethod.h63// subclass. If you add new RpcMethod subclass, don't forget to add it
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWdoc/manual-src/en/mkapiref.py35
Hyper-Verbose Identifiers2 hits · 1 pts
SeverityFileLineSnippet
LOWdoc/bash_completion/make_bash_completion.py51def output_value_case_file_comp(out, key, exts):
LOWdoc/bash_completion/make_bash_completion.py59def output_value_case_dir_comp(out, key):