Repository Analysis

coolsnowwolf/lede

Lean's LEDE source

2.2 Likely human-written View on GitHub
2.2
Adjusted Score
2.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
31,455
Stars
C
Language
1,995,915
Lines of Code
3105
Files
4740
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 17LOW 4723

Pattern Findings

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

Over-Commented Block4688 hits · 4272 pts
SeverityFileLineSnippet
LOWtools/mklibs/include/elf.h121
LOWtools/mklibs/include/elf.h141#define ELFOSABI_NETBSD 2 /* NetBSD. */
LOWtools/mklibs/include/elf.h161#define ET_EXEC 2 /* Executable file */
LOWtools/mklibs/include/elf.h181#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */
LOWtools/mklibs/include/elf.h201#define EM_H8_300 46 /* Hitachi H8/300 */
LOWtools/mklibs/include/elf.h221#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
LOWtools/mklibs/include/elf.h241#define EM_V850 87 /* NEC v850 */
LOWtools/mklibs/include/elf.h301 (Solaris). */
LOWtools/mklibs/include/elf.h321#define SHT_REL 9 /* Relocation entries, no addends */
LOWtools/mklibs/include/elf.h341#define SHT_HIOS 0x6fffffff /* End OS-specific type */
LOWtools/mklibs/include/elf.h421#define SYMINFO_NUM 2
LOWtools/mklibs/include/elf.h441#define STB_LOOS 10 /* Start of OS-specific */
LOWtools/mklibs/include/elf.h561#define PT_SHLIB 5 /* Reserved */
LOWtools/mklibs/include/elf.h581#define PF_R (1 << 2) /* Segment is readable */
LOWtools/mklibs/include/elf.h641#define DT_RELASZ 8 /* Total size of Rela relocs */
LOWtools/mklibs/include/elf.h661#define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */
LOWtools/mklibs/include/elf.h681#define DT_CHECKSUM 0x6ffffdf8
LOWtools/mklibs/include/elf.h701#define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */
LOWtools/mklibs/include/elf.h721#define DT_VERDEF 0x6ffffffc /* Address of version definition
LOWtools/mklibs/include/elf.h741#define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */
LOWtools/mklibs/include/elf.h921
LOWtools/mklibs/include/elf.h1041#define ELF32_M_SYM(info) ((info) >> 8)
LOWtools/mklibs/include/elf.h1061#define R_68K_PC32 4 /* PC relative 32 bit */
LOWtools/mklibs/include/elf.h1081#define R_68K_NUM 23
LOWtools/mklibs/include/elf.h1101 block offset */
LOWtools/mklibs/include/elf.h1121#define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic
LOWtools/mklibs/include/elf.h1141
LOWtools/mklibs/include/elf.h1161#define R_SPARC_16 2 /* Direct 16 bit */
LOWtools/mklibs/include/elf.h1181#define R_SPARC_RELATIVE 22 /* Adjust by program base */
LOWtools/mklibs/include/elf.h1201#define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */
LOWtools/mklibs/include/elf.h1221#define R_SPARC_TLS_LDM_HI22 60
LOWtools/mklibs/include/elf.h1261
LOWtools/mklibs/include/elf.h1281/* The following are non-official names and should not be used. */
LOWtools/mklibs/include/elf.h1301#define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link */
LOWtools/mklibs/include/elf.h1321#define SHT_MIPS_OPTSYM 0x70000017
LOWtools/mklibs/include/elf.h1341/* Legal values for sh_flags field of Elf32_Shdr. */
LOWtools/mklibs/include/elf.h1401
LOWtools/mklibs/include/elf.h1421#define OEX_PRECISEFP OEX_FPDBUG
LOWtools/mklibs/include/elf.h1461#define R_MIPS_HI16 5 /* High 16 bit */
LOWtools/mklibs/include/elf.h1481#define R_MIPS_DELETE 27
LOWtools/mklibs/include/elf.h1501/* Special program header types. */
LOWtools/mklibs/include/elf.h1521#define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */
LOWtools/mklibs/include/elf.h1541#define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */
LOWtools/mklibs/include/elf.h1561/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */
LOWtools/mklibs/include/elf.h1621#define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */
LOWtools/mklibs/include/elf.h1661
LOWtools/mklibs/include/elf.h1681#define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */
LOWtools/mklibs/include/elf.h1701#define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */
LOWtools/mklibs/include/elf.h1721#define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */
LOWtools/mklibs/include/elf.h1741#define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */
LOWtools/mklibs/include/elf.h1761#define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
LOWtools/mklibs/include/elf.h1801
LOWtools/mklibs/include/elf.h1821#define R_ALPHA_SREL64 11 /* PC relative 64 bit */
LOWtools/mklibs/include/elf.h1861#define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/
LOWtools/mklibs/include/elf.h1881#define R_PPC_GOT16_LO 15
LOWtools/mklibs/include/elf.h1901#define R_PPC_SECTOFF_HI 35
LOWtools/mklibs/include/elf.h1921#define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */
LOWtools/mklibs/include/elf.h1941#define R_PPC_EMB_NADDR16_LO 103
LOWtools/mklibs/include/elf.h1961#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */
LOWtools/mklibs/include/elf.h1981#define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */
4628 more matches not shown…
Self-Referential Comments13 hits · 39 pts
SeverityFileLineSnippet
MEDIUMscripts/slugimage.pl202# Create an empty jffs2 block.
MEDIUMscripts/slugimage.pl620 # Define the skip region for the initial Sercomm header.
MEDIUMscripts/slugimage.pl629 # Define the skip region for the inline Sercomm header.
MEDIUMscripts/slugimage.pl1130 # Create an empty partition of the requested size.
MEDIUMscripts/mkits-qsdk-ipq-image.sh28# Create a default, fully populated DTS file
MEDIUMscripts/symlink-tree.sh2# Create a new openwrt tree with symlinks pointing at the current tree
MEDIUMscripts/dl_cleanup.py282 # Create a directory listing and parse the file names.
MEDIUMscripts/dl_cleanup.py298 # Create a map of programs
MEDIUMscripts/mkits-zyxel-fit.sh19# Create a default, fully populated DTS file
MEDIUMscripts/checkpatch.pl592#Create a search pattern for all these functions to speed up a loop below
MEDIUMscripts/checkpatch.pl613#Create a search pattern for all these strings to speed up a loop below
MEDIUMscripts/checkpatch.pl648#Create a search pattern for all these strings to speed up a loop below
MEDIUMscripts/mkits.sh202# Create a default, fully populated DTS file
Redundant / Tautological Comments16 hits · 23 pts
SeverityFileLineSnippet
LOW…t/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh32 # Check if the block devices exist
LOWscripts/brcmImage.pl78 local $/; # Set input to "slurp" mode.
LOWscripts/checkpatch.pl2613# Check if the commit log has what seems like a diff which can confuse patch
LOWscripts/checkpatch.pl2659# Check if MAINTAINERS is being updated. If so, there's probably no need to
LOWscripts/checkpatch.pl2764# Check if the commit log is in a possible stack dump
LOWscripts/checkpatch.pl2888# Check if it's the start of a commit log
LOWscripts/checkpatch.pl2898# Check if there is UTF-8 in a commit log when a mail header has explicitly
LOWscripts/checkpatch.pl3761 # Check if either of these lines are modified, else
LOW…ge/lean/mt/drivers/mt7603e/src/mt7603_wifi/ap/ap_cfg.c15891 DBGPRINT(RT_DEBUG_ERROR, ("###Set back to Normal BCN...\n"));
LOWpackage/base-files/files/lib/upgrade/nand.sh447# Check if passed file is a valid one for NAND sysupgrade.
LOWpackage/qca/qca-nss-ecm/files/disable_offloads.sh49 # Check if we can change features
LOWpackage/qca/qca-nss-ecm/files/disable_offloads.sh83 # Check if we can disable anything
LOWpackage/qca/qca-nss-ecm/files/disable_offloads.sh111 # Check if we can change settings
LOWpackage/qca/qca-nss-ecm/files/disable_offloads.sh132 # Check if we can change settings
LOWpackage/qca/qca-nss-ecm/files/disable_offloads.sh146 # Check if we can disable anything
LOW…/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh704 # Check if the interface already exists, and avoid failing in this case.
AI Slop Vocabulary5 hits · 10 pts
SeverityFileLineSnippet
MEDIUM…get/linux/pistachio/base-files/lib/upgrade/platform.sh19 # fact we don't even want to reboot as part of seamless
LOW…get/linux/pistachio/base-files/lib/upgrade/platform.sh21 # the next reboot to boot from that partition. Could just call
LOWtarget/linux/qualcommax/base-files/lib/upgrade/mmc.sh6# just add a device entry in platform.sh,
LOWscripts/xxdi.pl46# to '_', or, if this is stdin, just use "stdin" as the name.
MEDIUMpackage/boot/uboot-oxnas/src/board/ox820/ddr.h47#define C_CMD_RESET_DLL 0x00000100 // A8=1 Use in conjunction with C_CMD_MODE_DDR
Excessive Try-Catch Wrapping4 hits · 5 pts
SeverityFileLineSnippet
LOWscripts/dl_github_archive.py278 except Exception:
LOWscripts/dl_github_archive.py365 except Exception as e:
LOWscripts/dl_github_archive.py426 except Exception as ex:
MEDIUMscripts/flashing/jungo-image.py73 print("Error: No linux support for A0 stepping!")
Verbosity Indicators4 hits · 4 pts
SeverityFileLineSnippet
LOW…x86/files-5.4/drivers/net/ethernet/intel/igc/igc_mac.c544 /* Now we need to check if the user selected RX ONLY
LOW…lean/mt/drivers/mt7603e/src/mt7603_wifi/common/uapsd.c1184 At least one U-APSD packets exists so we need to check if
LOW…kage/lean/mt/drivers/mt7612e/src/mt76x2/common/uapsd.c1077 At least one U-APSD packets exists so we need to check if
LOWpackage/lean/mt/drivers/mt7612e/src/mt76x2/sta/sync.c1621 We need to check if SSID only set to any, then we can record the current SSID.
Unused Imports3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/dl_cleanup.py10
LOWscripts/cameo-imghdr.py10
LOWscripts/cameo-imghdr.py11
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/dl_cleanup.py221
LOWscripts/dl_github_archive.py133
LOWscripts/dl_github_archive.py254
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/size_compare.sh17### Usage:
LOWpackage/base-files/files/lib/upgrade/tar.sh3# Example usage:
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM…linux-firmware/brcm_firmware/ap6275s/nvram_ap6275s.txt93# ======================================================================================
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/dl_github_archive.py369 def _init_commit_ts_remote_get(self, url, attrpath):