⚡️ Express inspired web framework written in Go
This report presents the forensic synthetic code analysis of gofiber/fiber, a Go project with 39,952 GitHub stars. SynthScan v2.0 examined 159,691 lines of code across 414 source files, recording 286 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 286 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | res.go | 155 | r.c.fasthttp.Response.Header.Del(field) | CODE |
| CRITICAL | res.go | 390 | r.c.fasthttp.Response.Header.SetCookie(fcookie) | CODE |
| CRITICAL | res.go | 440 | accepts := r.c.fasthttp.Request.Header.PeekAll(HeaderAccept) | CODE |
| CRITICAL | res.go | 448 | r.c.fasthttp.Response.Header.SetContentType(h.MediaType) | CODE |
| CRITICAL | res.go | 479 | r.c.fasthttp.Response.Header.SetContentType(h.MediaType) | CODE |
| CRITICAL | res.go | 539 | return defaultString(r.c.app.toString(r.c.fasthttp.Response.Header.Peek(key)), defaultValue) | CODE |
| CRITICAL | res.go | 643 | r.c.fasthttp.Response.Header.SetContentType(MIMETextJavaScriptCharsetUTF8) | CODE |
| CRITICAL | res.go | 832 | r.c.fasthttp.Response.Header.Add("Link", h) | CODE |
| CRITICAL | res.go | 839 | if !r.c.fasthttp.Request.Header.IsHTTP11() { | CODE |
| CRITICAL | res.go | 1076 | r.c.fasthttp.Response.Header.Set(key, val) | CODE |
| CRITICAL | res.go | 1080 | r.c.fasthttp.Response.Header.SetCanonical(utils.UnsafeBytes(key), utils.UnsafeBytes(val)) | CODE |
| CRITICAL⚡ | res.go | 1109 | r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=" + charset[0]) | CODE |
| CRITICAL⚡ | res.go | 1113 | r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=utf-8") | CODE |
| CRITICAL⚡ | res.go | 1115 | r.c.fasthttp.Response.Header.SetContentType(mimeType) | CODE |
| CRITICAL | res.go | 1160 | r.c.fasthttp.Response.Header.Del(HeaderVary) | CODE |
| CRITICAL | res.go | 1171 | r.c.fasthttp.Response.Header.Del(HeaderVary) | CODE |
| CRITICAL⚡ | req.go | 54 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAccept)) | CODE |
| CRITICAL⚡ | req.go | 60 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptCharset)) | CODE |
| CRITICAL⚡ | req.go | 66 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptEncoding)) | CODE |
| CRITICAL⚡ | req.go | 73 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage)) | CODE |
| CRITICAL⚡ | req.go | 80 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage)) | CODE |
| CRITICAL | req.go | 389 | return defaultString(r.c.app.toString(r.c.fasthttp.Request.Header.Cookie(key)), defaultValue) | CODE |
| CRITICAL | req.go | 848 | ct := r.c.app.toString(r.c.fasthttp.Request.Header.ContentType()) | CODE |
| CRITICAL | req.go | 957 | return r.c.app.toString(r.c.fasthttp.Request.Header.RequestURI()) | CODE |
| CRITICAL | req.go | 1055 | return r.c.app.toString(r.c.fasthttp.Request.Header.Protocol()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | req_interface_gen.go | 21 | AcceptsLanguages(offers ...string) string | COMMENT |
| LOW | req_interface_gen.go | 41 | // RequestCtx returns *fasthttp.RequestCtx that carries a deadline | COMMENT |
| LOW | req_interface_gen.go | 61 | // If a default value is given, it will return that value if the form value does not exist. | COMMENT |
| LOW | req_interface_gen.go | 81 | Get(key string, defaultValue ...string) string | COMMENT |
| LOW | req_interface_gen.go | 101 | Port() string | COMMENT |
| LOW | req_interface_gen.go | 121 | // IPs returns a string slice of IP addresses specified in the X-Forwarded-For request header. | COMMENT |
| LOW | req_interface_gen.go | 141 | // OriginalURL contains the original request URL. | COMMENT |
| LOW | req_interface_gen.go | 161 | Query(key string, defaultValue ...string) string | COMMENT |
| LOW | req_interface_gen.go | 181 | // Queries()["filters[customer][name]"] == "Alice" | COMMENT |
| LOW | register.go | 41 | // return c.Next() | COMMENT |
| LOW | domain.go | 221 | // DomainParam returns the value of a domain parameter from the context. | COMMENT |
| LOW | domain.go | 241 | COMMENT | |
| LOW | color.go | 1 | // ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ | COMMENT |
| LOW | color.go | 21 | // Optional. Default: "\u001b[92m" | COMMENT |
| LOW | router_skip.go | 1 | // ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ | COMMENT |
| LOW | res.go | 21 | "github.com/valyala/bytebufferpool" | COMMENT |
| LOW | res.go | 41 | // When set to true, enables byte range requests. | COMMENT |
| LOW | res.go | 821 | // This is a HTTP/2+ feature but all browsers will either understand it or safely ignore it. | COMMENT |
| LOW | ctx_interface_gen.go | 21 | // BaseURL returns (protocol + host + base path). | COMMENT |
| LOW | ctx_interface_gen.go | 41 | // The close of the Done channel may happen asynchronously, | COMMENT |
| LOW | ctx_interface_gen.go | 61 | Response() *fasthttp.Response | COMMENT |
| LOW | ctx_interface_gen.go | 81 | // Returned value is only valid within the handler. Do not store any references. | COMMENT |
| LOW | ctx_interface_gen.go | 101 | RequestID() string | COMMENT |
| LOW | ctx_interface_gen.go | 121 | // Never inlined: inlining it would push Route over the inlining budget. | COMMENT |
| LOW | ctx_interface_gen.go | 141 | SaveFileToStorage(fileheader *multipart.FileHeader, path string, storage Storage) error | COMMENT |
| LOW | ctx_interface_gen.go | 161 | // Reset is a method to reset context fields by given request when to use server handlers. | COMMENT |
| LOW | ctx_interface_gen.go | 181 | // ErrorHandler) have completely finished using this context. Calling it while | COMMENT |
| LOW | ctx_interface_gen.go | 201 | // signalReleased records that the request handler is done touching an abandoned, | COMMENT |
| LOW | ctx_interface_gen.go | 241 | // Repeated field lines are combined into one comma-joined list | COMMENT |
| LOW | ctx_interface_gen.go | 261 | AcceptsJSON() bool | COMMENT |
| LOW | ctx_interface_gen.go | 281 | // Returned value is only valid within the handler. Do not store any references. | COMMENT |
| LOW | ctx_interface_gen.go | 301 | FormFile(key string) (*multipart.FileHeader, error) | COMMENT |
| LOW | ctx_interface_gen.go | 321 | // Host contains the host derived from the X-Forwarded-Host or Host HTTP header. | COMMENT |
| LOW | ctx_interface_gen.go | 341 | // spoofing if your app is behind a proxy. | COMMENT |
| LOW | ctx_interface_gen.go | 361 | Is(extension string) bool | COMMENT |
| LOW | ctx_interface_gen.go | 381 | Params(key string, defaultValue ...string) string | COMMENT |
| LOW | ctx_interface_gen.go | 401 | // Queries()["field1"] == "value2" | COMMENT |
| LOW | ctx_interface_gen.go | 421 | // Stale returns the inverse of Fresh, indicating if the client's cached response is considered stale. | COMMENT |
| LOW | ctx_interface_gen.go | 441 | ClearCookie(key ...string) | COMMENT |
| LOW | ctx_interface_gen.go | 461 | // If the header is not specified or there is no proper format, text/plain is used. | COMMENT |
| LOW | ctx_interface_gen.go | 481 | // JSONP sends a JSON response with JSONP support. | COMMENT |
| LOW | ctx_interface_gen.go | 501 | // From this point onward the body argument must not be changed. | COMMENT |
| LOW | ctx_interface_gen.go | 521 | SendStatus(status int) error | COMMENT |
| LOW | ctx_interface_gen.go | 541 | // Writef appends f & a into response body writer. | COMMENT |
| LOW | group.go | 41 | if err := grp.app.hooks.executeOnGroupNameHooks(*grp); err != nil { | COMMENT |
| LOW | group.go | 201 | newGrp := &Group{Prefix: prefix, app: grp.app, parentGroup: grp} | COMMENT |
| LOW | app.go | 41 | type Handler = func(Ctx) error | COMMENT |
| LOW | app.go | 181 | // Default: "" | COMMENT |
| LOW | app.go | 201 | // | COMMENT |
| LOW | app.go | 221 | // cases in order to access the handler values (e.g. request bodies) in an | COMMENT |
| LOW | app.go | 241 | COMMENT | |
| LOW | app.go | 261 | ViewsLayout string `json:"views_layout"` | COMMENT |
| LOW | app.go | 281 | ReadTimeout time.Duration `json:"read_timeout"` | COMMENT |
| LOW | app.go | 301 | ReadBufferSize int `json:"read_buffer_size"` | COMMENT |
| LOW | app.go | 321 | COMMENT | |
| LOW | app.go | 341 | // When set to true, causes the default date header to be excluded from the response. | COMMENT |
| LOW | app.go | 361 | COMMENT | |
| LOW | app.go | 381 | COMMENT | |
| LOW | app.go | 401 | COMMENT | |
| LOW | app.go | 421 | MsgPackEncoder utils.MsgPackMarshal `json:"-"` | COMMENT |
| 157 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bind_test.go | 699 | c.Request().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 728 | c.Request().Header.Add("Name", "Jane Doe") | CODE |
| LOW | bind_test.go | 741 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten | CODE |
| LOW | bind_test.go | 770 | c.Request().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 957 | c.Response().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 986 | c.Response().Header.Add("Name", "Jane Doe") | CODE |
| LOW | bind_test.go | 999 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten | CODE |
| LOW | bind_test.go | 1028 | c.Response().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1189 | c.Request().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1210 | c.Request().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1237 | c.Response().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1258 | c.Response().Header.Add("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1910 | c.Request().Header.SetCookie("Name", "John Doe") | CODE |
| LOW | bind_test.go | 1939 | c.Request().Header.SetCookie("Name", "Jane Doe") | CODE |
| LOW | bind_test.go | 1952 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten | CODE |
| LOW | bind_test.go | 1983 | c.Request().Header.SetCookie("Name", "John Doe") | CODE |
| LOW | bind_test.go | 2170 | c.Request().Header.SetCookie("Name", "John Doe") | CODE |
| LOW | bind_test.go | 2193 | c.Request().Header.SetCookie("Name", "John Doe") | CODE |
| LOW | internal/schemehost/schemehost_test.go | 58 | "user@example.com", "user:pass@example.com", "example.com/path", | CODE |
| LOW | docs/middleware/session.md | 161 | if email == "admin@example.com" && password == "secret" { | CODE |
| LOW | docs/middleware/session.md | 774 | if email != "user@example.com" || password != "password" { | CODE |
| LOW | docs/middleware/session.md | 807 | return email == "user@example.com" && password == "password" | CODE |
| LOW | docs/api/ctx.md | 2073 | user := User{"John Doe"} | CODE |
| LOW | docs/api/ctx.md | 2077 | // => {"Name":"John Doe"} | COMMENT |
| LOW | docs/client/request.md | 470 | Name: "John Doe", | CODE |
| LOW | docs/client/request.md | 493 | "Name": "John Doe" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | redirect_test.go | 704 | // Step 1: Make the initial request to the source route | COMMENT |
| LOW | redirect_test.go | 722 | // Step 2: Make the second request to the target route with the cookie | COMMENT |
| LOW | redirect_test.go | 770 | // Step 1: Make the initial request | COMMENT |
| LOW | redirect_test.go | 787 | // Step 2: Make the second request with the cookie | COMMENT |
| LOW | helpers.go | 348 | // Step 2: first subtag must match (or be '*') | COMMENT |
| LOW | docs/guide/validation.md | 13 | ### Step 1: Install a validator | COMMENT |
| LOW | docs/guide/validation.md | 19 | ### Step 2: Wire it into the app config | COMMENT |
| LOW | docs/guide/validation.md | 45 | ### Step 3: Bind and validate in one call | COMMENT |
| LOW | docs/guide/validation.md | 69 | ### Step 4: Shape the error response | COMMENT |
| LOW | docs/guide/validation.md | 106 | ### Step 5: Add your own rules | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | redirect_test.go | 704 | // Step 1: Make the initial request to the source route | COMMENT |
| LOW | redirect_test.go | 722 | // Step 2: Make the second request to the target route with the cookie | COMMENT |
| LOW | redirect_test.go | 770 | // Step 1: Make the initial request | COMMENT |
| LOW | redirect_test.go | 787 | // Step 2: Make the second request with the cookie | COMMENT |
| LOW | helpers.go | 348 | // Step 2: first subtag must match (or be '*') | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .golangci.yml | 269 | # finding at report time instead so it is robust to cache state. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | req.go | 1114 | // Example usage: | COMMENT |
| LOW | extractors/extractors.go | 9 | // Example usage: | COMMENT |