Repository Analysis

cesanta/mongoose

Embedded web server, with TCP/IP network stack, MQTT and Websocket

5.1 Low AI signal View on GitHub
5.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-05-30
Last Push
12,830
Stars
C
Language
1,547,821
Lines of Code
2453
Files
11067
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 5LOW 11062

Pattern Findings

11067 matches across 6 categories. Click a row to expand file-level details.

Over-Commented Block11054 hits · 7912 pts
SeverityFileLineSnippet
LOWmongoose.h1// Copyright (c) 2004-2013 Sergey Lyubka
LOWmongoose.h21#define MONGOOSE_H
LOWmongoose.h41#define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX)
LOWmongoose.h61#include "mongoose_config.h" // keep this include
LOWmongoose.h101#include <string.h>
LOWmongoose.h121#include <stdlib.h>
LOWmongoose.h141#include <stdarg.h>
LOWmongoose.h161#define MG_ENABLE_DIRLIST 0
LOWmongoose.h181#endif
LOWmongoose.h201
LOWmongoose.h241#include <stddef.h>
LOWmongoose.h261
LOWmongoose.h281#include <sys/types.h>
LOWmongoose.h301#include <time.h>
LOWmongoose.h321#include <sys/socket.h>
LOWmongoose.h341
LOWmongoose.h361#define strdup(s) ((char *) mg_strdup(mg_str(s)).buf)
LOWmongoose.h381#endif
LOWmongoose.h401#ifndef MG_PATH_MAX
LOWmongoose.h421// #define TX_THREAD_USER_EXTENSION int bsd_errno;
LOWmongoose.h441#include <serrno.h>
LOWmongoose.h461#endif
LOWmongoose.h481#include <stdlib.h>
LOWmongoose.h501#endif
LOWmongoose.h521// behaviour). See config.h for user options
LOWmongoose.h541#endif
LOWmongoose.h561#if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP
LOWmongoose.h601// For mg_random()
LOWmongoose.h621// Protect from calls like std::snprintf in app code
LOWmongoose.h641#endif
LOWmongoose.h681#endif
LOWmongoose.h701
LOWmongoose.h721#include <time.h>
LOWmongoose.h761}
LOWmongoose.h781#define AF_INET FREERTOS_AF_INET
LOWmongoose.h801
LOWmongoose.h841struct timeval;
LOWmongoose.h881// again if the error code BSD_EWOULDBLOCK is returned.
LOWmongoose.h901#define MG_ENABLE_FREERTOS 0 // FreeRTOS RTOS
LOWmongoose.h921#define MG_ENABLE_SOCKET !MG_ENABLE_TCPIP
LOWmongoose.h941#define MG_ENABLE_SSI 0
LOWmongoose.h961
LOWmongoose.h981
LOWmongoose.h1001#else
LOWmongoose.h1041 } while (0)
LOWmongoose.h1061#endif
LOWmongoose.h1081#ifndef MG_TCPIP_GW6
LOWmongoose.h1101#endif
LOWmongoose.h1121// 1ea1f1e8 2 net.c:150:mg_close_conn 0 EV_ACCEPT
LOWmongoose.h1381 time_t mtime; // Modification time
LOWmongoose.h1501
LOWmongoose.h1521#if defined(__CC_ARM)
LOWmongoose.h2061#endif
LOWmongoose.h2081#define MG_UECC_SUPPORT_COMPRESSED_POINT 1
LOWmongoose.h2381} /* end of extern "C" */
LOWmongoose.h2401#elif defined(__aarch64__)
LOWmongoose.h2421#endif
LOWmongoose.h2661// Source: https://github.com/DavyLandman/portable8439
LOWmongoose.h2881#define MQTT_CMD_PUBREL 6
LOWmongoose.h2901#define MQTT_PROP_AUTHENTICATION_METHOD 0x15
10994 more matches not shown…
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippet
MEDIUM…12-xpresso-freertos-lwip-wifi/wifi/incl/port/osa/osa.h157 * -# Create a reader writer lock
MEDIUM…m-rw612-xpresso-freertos-lwip/wifi/incl/port/osa/osa.h157 * -# Create a reader writer lock
MEDIUM…-xpresso-freertos-lwip/lwip/codespell_changed_files.sh6# This file is subject to the terms and conditions of the GNU Lesser
MEDIUM…dm-rw612-xpresso-freertos-lwip/lwip/codespell_check.sh5# This file is subject to the terms and conditions of the GNU Lesser
MEDIUM…xpresso-freertos-builtin-wifi/wifi/incl/port/osa/osa.h157 * -# Create a reader writer lock
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOW…rw612-xpresso-freertos-lwip-wifi/lwip/src/core/netif.c281 * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after
LOW…frdm-rw612-xpresso-freertos-lwip/lwip/src/core/netif.c281 * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippet
LOW…sso-freertos-lwip-wifi/lwip/src/include/lwip/sockets.h215#define SO_DONTROUTE 0x0010 /* Unimplemented: just use interface addresses */
LOW…-xpresso-freertos-lwip/lwip/src/include/lwip/sockets.h215#define SO_DONTROUTE 0x0010 /* Unimplemented: just use interface addresses */
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOW…rtos-lwip-wifi/component/imu_adapter/fsl_adapter_imu.h89typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len);
LOW…-freertos-lwip/component/imu_adapter/fsl_adapter_imu.h88typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len);
LOW…s-builtin-wifi/component/imu_adapter/fsl_adapter_imu.h89typedef hal_imumc_return_status_t (*imumc_rx_callback_t)(void *param, uint8_t *data, uint32_t len);
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOW…-rw612-xpresso-freertos-lwip/lwip/src/apps/mdns/mdns.c614 * comparison. So if we get passed the class and type comparison we need to check if the