Repository Analysis

jqlang/jq

Command-line JSON processor

2.1 Likely human-written View on GitHub
2.1
Adjusted Score
2.1
Raw Score
100%
Time Factor
2026-05-24
Last Push
34,777
Stars
C
Language
55,094
Lines of Code
98
Files
116
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 116

Pattern Findings

116 matches across 3 categories. Click a row to expand file-level details.

Over-Commented Block113 hits · 110 pts
SeverityFileLineSnippet
LOWsrc/bytecode.c1#include <stdio.h>
LOWsrc/jv_dtoa.c201
LOWsrc/jv_dtoa.c221#endif
LOWsrc/jv_dtoa.c241#define IEEE_Arith
LOWsrc/jv_dtoa.c261#define DBL_MAX_EXP 1024
LOWsrc/jv_dtoa.c281#ifndef LONG_MAX
LOWsrc/jv_dtoa.c301#if defined(IEEE_8087) + defined(IEEE_MC68k) + defined(VAX) + defined(IBM) != 1
LOWsrc/jv_dtoa.c341/* Quick_max = floor((P-1)*log(FLT_RADIX)/log(10) - 1) */
LOWsrc/jv_dtoa.c361#define Bletch 0x10
LOWsrc/jv_dtoa.c381#else
LOWsrc/jv_dtoa.c401#define Flt_Rounds 0
LOWsrc/jv_dtoa.c421#define LSB 1
LOWsrc/jv_dtoa.c441#define Exp_1 0x40800000
LOWsrc/jv_dtoa.c461#define ROUND_BIASED
LOWsrc/jv_dtoa.c1381#else
LOWsrc/linker.c1#include <assert.h>
LOWsrc/util.c21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
LOWsrc/util.c41# include <alloca.h>
LOWsrc/util.c461static const unsigned char *find_string(const unsigned char *, int *, const char * const *, const char * const *, int);
LOWsrc/util.c481#define S_YEAR (1 << 0)
LOWsrc/jv_parse.c1#include <stdio.h>
LOWsrc/jv.c81typedef enum {
LOWsrc/jq_test.c1#include <assert.h>
LOWsrc/parser.h121 NONOPT = 303 /* NONOPT */
LOWsrc/parser.h141#define AS 269
LOWsrc/parser.h161#define SETPLUS 289
LOWsrc/execute.c1#include <assert.h>
LOWsrc/lexer.c1#line 2 "src/lexer.c"
LOWsrc/lexer.c21#endif
LOWsrc/lexer.c41#ifdef yy_scan_bytes
LOWsrc/lexer.c61#else
LOWsrc/lexer.c81#endif
LOWsrc/lexer.c101#ifdef yylex_init
LOWsrc/lexer.c121#else
LOWsrc/lexer.c141#endif
LOWsrc/lexer.c161#ifdef yyset_out
LOWsrc/lexer.c181#else
LOWsrc/lexer.c201#endif
LOWsrc/lexer.c221#ifdef yyget_lloc
LOWsrc/lexer.c241#else
LOWsrc/lexer.c301#endif
LOWsrc/lexer.c321#ifndef SIZE_MAX
LOWsrc/lexer.c821 static int try_exit(int closing, int state, yyscan_t yyscanner);
LOWsrc/lexer.c941extern "C" int yywrap ( yyscan_t yyscanner );
LOWsrc/jv_aux.c1#include <assert.h>
LOWsrc/compile.h81
LOWsrc/main.c1#include <assert.h>
LOWsrc/main.c21extern void jv_tsd_dtoa_ctx_init();
LOWsrc/jv.h1#ifndef JV_H
LOWsrc/jv.h101#define JV_ARRAY_2(e1,e2) (jv_array_append(JV_ARRAY_1(e1),e2))
LOWsrc/jv.h181#define JV_OBJECT_5(k1,v1,k2,v2,k3) (jv_object_set(JV_OBJECT_4((k1),(v1),(k2),(v2)),(k3),jv_null()))
LOWsrc/util.h1#ifndef UTIL_H
LOWsrc/builtin.c1#if __SIZEOF_POINTER__==4
LOWsrc/builtin.c21#ifdef HAVE_LIBONIG
LOWsrc/builtin.c101 } else if (jv_get_kind(a) == JV_KIND_OBJECT && jv_get_kind(b) == JV_KIND_OBJECT) {
LOWsrc/builtin.c221}
LOWsrc/lexer.h1#ifndef jq_yyHEADER_H
LOWsrc/lexer.h21#ifdef yy_create_buffer
LOWsrc/lexer.h41#else
LOWsrc/lexer.h61#endif
53 more matches not shown…
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWdocs/build_manpage.py213
LOWdocs/build_manpage.py67
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs/build_manpage.py213def convert_manual_to_markdown():