Repository Analysis

ktorio/ktor

Framework for quickly creating connected applications in Kotlin with minimal effort

0.8 Likely human-written View on GitHub
0.8
Adjusted Score
0.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
14,419
Stars
Kotlin
Language
287,735
Lines of Code
2424
Files
73
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 10HIGH 13MEDIUM 11LOW 39

Pattern Findings

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

Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippet
CRITICAL…st-server/src/main/kotlin/test/server/tests/Cookies.kt25 val text = call.request.cookies.rawCookies.entries.joinToString()
CRITICAL…tor-test-base/jvm/src/io/ktor/test/junit/Assertions.kt19 org.junit.jupiter.api.Assertions.assertTrue(predicate(item), message)
CRITICAL…jvm/test/io/ktor/tests/server/netty/NettyEngineTest.kt417 call.respond(object : io.ktor.http.content.OutgoingContent.WriteChannelContent() {
CRITICAL…m/test/io/ktor/tests/server/netty/NettySpecificTest.kt555 val headers = io.netty.handler.codec.http2.DefaultHttp2Headers().also {
CRITICAL…m/test/io/ktor/tests/server/netty/NettySpecificTest.kt561 io.netty.handler.codec.http2.DefaultHttp2HeadersEncoder().encodeHeaders(streamId, headers, encoded)
CRITICAL…o/ktor/tests/server/tomcat/jakarta/TomcatEngineTest.kt115 private fun org.apache.catalina.startup.Tomcat.addAttributesFilter() {
CRITICAL…m/test/io/ktor/tests/server/tomcat/TomcatEngineTest.kt113 private fun org.apache.catalina.startup.Tomcat.addAttributesFilter() {
CRITICAL…c/io/ktor/openapi/ir/inference/CallReceiveInference.kt13 val packageFqName = call.symbol.owner.parent.kotlinFqName.asString()
CRITICAL…c/io/ktor/openapi/ir/inference/CallRespondInference.kt23 val packageFqName = call.symbol.owner.parent.kotlinFqName.asString()
CRITICAL…src/io/ktor/openapi/ir/inference/ParameterInference.kt60 val packageFqName = call.symbol.owner.parent.kotlinFqName.asString()
Cross-File Repetition13 hits · 65 pts
SeverityFileLineSnippet
HIGH…-server-auth/jvm/test/io/ktor/tests/auth/DigestTest.kt0digest username="mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html",
HIGH…-server-auth/jvm/test/io/ktor/tests/auth/DigestTest.kt0digest username="mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html",
HIGH…-server-auth/jvm/test/io/ktor/tests/auth/DigestTest.kt0digest username="mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html",
HIGH…-server-auth/jvm/test/io/ktor/tests/auth/DigestTest.kt0digest username="mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html",
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
HIGH…est/io/ktor/client/plugins/logging/OkHttpFormatTest.kt0<-- 200 ok http://localhost/ \(\d+ms, 0-byte body\)
Over-Commented Block37 hits · 37 pts
SeverityFileLineSnippet
LOW.gitpod.yml1## Learn more about this file at 'https://www.gitpod.io/docs/references/gitpod-yml'
LOW.gitpod.yml21## The 'image' section defines which Docker image Gitpod should use.
LOW.gitpod.yml41## or how Gitpod can start development servers. With Gitpod, there are three
LOW.gitpod.yml61# # and to keep your codebase DRY.
LOW.gitpod.yml101## the OpenVSX.org registry to be installed upon workspace startup. OpenVSX
LOW…ommon/test/io/ktor/tests/server/http/UrlEncodedTest.kt61 }
LOW…ommon/test/io/ktor/tests/server/http/UrlEncodedTest.kt81//
LOW…ommon/test/io/ktor/tests/server/http/UrlEncodedTest.kt101//
LOW…ommon/test/io/ktor/tests/server/http/UrlEncodedTest.kt121// @Test
LOW…tor-client-curl/desktop/interop/include/curl/mprintf.h41#ifdef __MINGW_PRINTF_FORMAT /* mingw-w64 3.0.0+. Needs stdio.h. */
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h61
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h121
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h681#define CURLE_SSL_PEER_CERTIFICATE CURLE_PEER_FAILED_VERIFICATION
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h701#define CURLE_FTP_QUOTE_ERROR CURLE_QUOTE_ERROR
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h841#endif
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h1081#define CURLPROTO_SFTP (1L << 5)
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h1101#define CURLPROTO_GOPHER (1L << 25)
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h2341#define CURL_RTSPREQ_PLAY 5L
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h2361 CURL_NETRC_LAST = 3
LOW…t/ktor-client-curl/desktop/interop/include/curl/curl.h3181#define CURL_VERSION_ASYNCHDNS (1<<7) /* Asynchronous DNS resolves */
LOW…ktor-client-curl/desktop/interop/include/curl/system.h61# define CURL_TYPEOF_CURL_OFF_T __int64
LOW…ktor-client-curl/desktop/interop/include/curl/system.h81# endif
LOW…ktor-client-curl/desktop/interop/include/curl/system.h101# endif
LOW…ktor-client-curl/desktop/interop/include/curl/system.h121# ifndef __LP64
LOW…ktor-client-curl/desktop/interop/include/curl/system.h141# define CURL_SUFFIX_CURL_OFF_T i64
LOW…ktor-client-curl/desktop/interop/include/curl/system.h161# define CURL_SUFFIX_CURL_OFF_TU UL
LOW…ktor-client-curl/desktop/interop/include/curl/system.h181#elif defined(__MVS__)
LOW…ktor-client-curl/desktop/interop/include/curl/system.h201# ifdef _LONG_LONG
LOW…ktor-client-curl/desktop/interop/include/curl/system.h221# define CURL_FORMAT_CURL_OFF_T "ld"
LOW…ktor-client-curl/desktop/interop/include/curl/system.h241 defined(__sparcv8plus))
LOW…ktor-client-curl/desktop/interop/include/curl/system.h261# define CURL_TYPEOF_CURL_OFF_T long long
LOW…ktor-client-curl/desktop/interop/include/curl/system.h281# define CURL_FORMAT_CURL_OFF_TU "llu"
LOW…ktor-client-curl/desktop/interop/include/curl/system.h301# include <inttypes.h>
LOW…ktor-client-curl/desktop/interop/include/curl/system.h321 defined(__sparc__) || defined(__mips__) || defined(__sh__) || \
LOW…ktor-client-curl/desktop/interop/include/curl/system.h341# define CURL_FORMAT_CURL_OFF_T "ld"
LOW…ktor-client-curl/desktop/interop/include/curl/system.h361# define CURL_SUFFIX_CURL_OFF_TU ULL
LOW…ktor-client-curl/desktop/interop/include/curl/urlapi.h81 CURLUPART_ZONEID /* added in 7.65.0 */
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMswitch-base-branch.sh11# ============================================================================
MEDIUMswitch-base-branch.sh13# ============================================================================
MEDIUMswitch-base-branch.sh26# ============================================================================
MEDIUMswitch-base-branch.sh28# ============================================================================
MEDIUMswitch-base-branch.sh41# ============================================================================
MEDIUMswitch-base-branch.sh43# ============================================================================
MEDIUMswitch-base-branch.sh236# ============================================================================
MEDIUMswitch-base-branch.sh238# ============================================================================
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM…or-client-core/common/src/io/ktor/client/HttpClient.kt29 * # Creating a client
MEDIUM…or-client-core/common/src/io/ktor/client/HttpClient.kt341 * # Creating a client
MEDIUM…or-client-core/common/src/io/ktor/client/HttpClient.kt658 * # Creating a client
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWswitch-base-branch.sh195 # Check if rebase was successful
LOW.github/workflows/automations.yml49 # Check if the PR should be merged with fast-forward when: