Repository Analysis

Kong/kong

🦍 The API and AI Gateway

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-28
Last Push
43,490
Stars
Lua
Language
355,721
Lines of Code
1562
Files
90
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 10MEDIUM 37LOW 43

Pattern Findings

90 matches across 7 categories. Click a row to expand file-level details.

Decorative Section Separators36 hits · 106 pts
SeverityFileLineSnippet
MEDIUMkong/templates/kong_yml.lua2# ------------------------------------------------------------------------------
MEDIUMkong/templates/kong_yml.lua5# ------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh27#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh37#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh45#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh55#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh65#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh75#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh160#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh168#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh174#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh402#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh409#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh416#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh423#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh95#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh119#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh140#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh197#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh210#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh255#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh314#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh344#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh367#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh376#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh390#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh458#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh489#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh497#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh530#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh550#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh569#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh577#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh610#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh628#-------------------------------------------------------------------------------
MEDIUMscripts/release-lib.sh648#-------------------------------------------------------------------------------
Cross-Language Confusion10 hits · 70 pts
SeverityFileLineSnippet
HIGHscripts/explain_manifest/suites.py36 expect("/etc/kong/kong.logrotate", "logrotate config should have 0644 permissions").file_mode.equals("0644")
HIGHscripts/explain_manifest/suites.py42 .rpath.equals("/usr/local/openresty/luajit/lib:/usr/local/kong/lib:/usr/local/openresty/lualib")
HIGHscripts/explain_manifest/suites.py45 .has_dwarf_info.equals(True) \
HIGHscripts/explain_manifest/suites.py46 .has_ngx_http_request_t_DW.equals(True)
HIGHscripts/explain_manifest/suites.py135 .arch.equals("AARCH64")
HIGHscripts/explain_manifest/suites.py138 .arch.equals("AARCH64")
HIGHscripts/explain_manifest/suites.py157 .uid.equals(kong_uid) \
HIGHscripts/explain_manifest/suites.py158 .gid.equals(0)
HIGHscripts/explain_manifest/suites.py168 .uid.equals(kong_uid) \
HIGHscripts/explain_manifest/suites.py169 .gid.equals(kong_gid)
Fake / Example Data27 hits · 27 pts
SeverityFileLineSnippet
LOWspec/03-plugins/29-acme/06-hybrid_mode_spec.lua21 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/03-access_spec.lua31 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/03-access_spec.lua169 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/03-access_spec.lua252 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua301 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua358 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua410 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua467 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/05-redis_storage_spec.lua519 account_email = "test@test.com",
LOWspec/03-plugins/29-acme/07-shorthand_fields_spec.lua70 account_email = "test@test.com",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua10 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua20 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua31 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua43 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua54 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua65 name = "John Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua77 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua89 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua101 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua112 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua124 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua136 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua148 name = "Jane Doe",
LOWspec/03-plugins/16-jwt/01-jwt_parser_spec.lua160 name = "Jane Doe",
LOWkong/pdk/request.lua819 -- body.name -- "John Doe"
LOWkong/pdk/service/request.lua642 -- name = "John Doe",
LOWkong/pdk/service/request.lua648 -- -- { "name": "John Doe", "age": 42, "numbers":[1, 2, 3] }
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippet
LOWspec/helpers/http_mock/template.lua1return [[
LOWkong/templates/kong_yml.lua1return [[
LOWkong/templates/kong_yml.lua41# tags:
LOWkong/templates/kong_yml.lua61# - username: example-user
LOWkong/templates/kong_yml.lua81# consumer: example-user
LOW.devcontainer/devcontainer.json21 // Set *default* container specific settings.json values on container create.
LOWscripts/build-wasm-test-filters.sh1#!/bin/bash
LOWscripts/upgrade-tests/test-upgrade-path.sh1#!/bin/bash
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippet
LOWscripts/explain_manifest/expect.py207
LOWscripts/explain_manifest/expect.py208
LOWscripts/explain_manifest/main.py63
LOWscripts/explain_manifest/main.py108
LOWscripts/explain_manifest/explain.py113
LOWscripts/explain_manifest/explain.py193
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/buildifier.yml43 # This is to leverage this workaround:
Unused Imports2 hits · 2 pts
SeverityFileLineSnippet
LOWscripts/explain_manifest/expect.py14
LOWscripts/explain_manifest/main.py5