The painless way to host your own Git service
This report summarizes scanner evidence for gogs/gogs, a Go project with 47,913 GitHub stars. SynthScan examined 193,809 lines of code across 810 source files, recording 73 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 53 finding(s).
Are imports declared and package/API names verified? 13 finding(s).
Are wrappers, guards, and repeated structures necessary? 13 finding(s).
Which changes need focused human review? 73 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 73 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mockgen.yaml | 1 | force: true | COMMENT |
| LOW | web/src/pages/repo/Commit.search.ts | 1 | // Search-param schema for the commit diff route. Defined here (and not in | COMMENT |
| LOW | internal/database/users.go | 1421 | COMMENT | |
| LOW | internal/database/mocks_gen.go | 201 | // method Authenticate on an instance of MockProvider. | COMMENT |
| LOW | internal/database/database.go | 121 | return db, nil | COMMENT |
| LOW | internal/database/mocks_test.go | 1 | // Code generated by go-mockgen 2.1.1; DO NOT EDIT. | COMMENT |
| LOW | internal/database/mocks_test.go | 381 | // LoginSourceFileStoreSetGeneralFuncCall is an object that describes an | COMMENT |
| LOW | internal/database/mocks_test.go | 401 | func (c LoginSourceFileStoreSetGeneralFuncCall) Results() []interface{} { | COMMENT |
| LOW | internal/context/auth.go | 101 | return false | COMMENT |
| LOW | internal/context/auth.go | 121 | // name already exists, or database.ErrEmailAlreadyUsed if the email has been | COMMENT |
| LOW | internal/context/store.go | 21 | // database.ErrUserNotExist when not found. | COMMENT |
| LOW | internal/route/user/setting.go | 741 | // SettingsStore is the data layer carrier for user settings endpoints. This | COMMENT |
| LOW | internal/route/lfs/store.go | 41 | // GetUserByID returns the user with given ID. It returns | COMMENT |
| LOW | internal/route/lfs/mocks_test.go | 21 | // controlling the behavior of the method AuthenticateUser. | COMMENT |
| LOW | internal/route/lfs/mocks_test.go | 41 | GetLFSObjectsByOIDsFunc *StoreGetLFSObjectsByOIDsFunc | COMMENT |
| LOW | internal/route/lfs/mocks_test.go | 321 | // Arg1 is the value of the 2nd argument passed to this method | COMMENT |
| LOW | internal/route/lfs/mocks_test.go | 541 | COMMENT | |
| LOW | internal/route/lfs/mocks_test.go | 661 | // Arg0 is the value of the 1st argument passed to this method | COMMENT |
| LOW | internal/route/lfs/mocks_test.go | 881 | // of method GetLFSObjectByOID on an instance of MockStore. | COMMENT |
| LOW | internal/route/repo/store.go | 21 | // returns database.ErrRepoNotExist when not found. | COMMENT |
| LOW | internal/route/repo/store.go | 41 | // | COMMENT |
| LOW | public/plugins/codemirror-5.17.0/mode/markdown/test.js | 801 | MT("emStrongMixed", | COMMENT |
| LOW | public/plugins/codemirror-5.17.0/mode/erlang/erlang.js | 461 | COMMENT | |
| LOW | public/plugins/codemirror-5.17.0/mode/tcl/index.html | 21 | <li><a href="../index.html">Language modes</a> | COMMENT |
| LOW | public/plugins/codemirror-5.17.0/mode/tcl/index.html | 41 | ## ## Start Setup. ## ## | COMMENT |
| LOW | public/plugins/codemirror-5.17.0/mode/sas/sas.js | 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others | COMMENT |
| LOW | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 21 | <li><a class=active href="#">CoffeeScript</a> | COMMENT |
| LOW | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 41 | # **Underscore.coffee | COMMENT |
| LOW | public/plugins/codemirror-5.17.0/mode/rpm/index.html | 61 | indentUnit: 4 | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | public/plugins/marked-4.3.0/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| CRITICAL | public/js/semantic-2.4.2.min.js | 11 | !function(p,h,v,b){p.site=p.fn.site=function(e){var s,l,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,c=[].slice. | CODE |
| CRITICAL | public/js/jquery-3.7.1.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 54 | # -------------- | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 123 | # -------------------- | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 296 | # --------------- | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 405 | # ------------------ | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 464 | # ---------------- | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 597 | # ----------------- | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 681 | # --------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 106 | # Create a safe reference to the Underscore object for use below. | COMMENT |
| MEDIUM | …plugins/codemirror-5.17.0/mode/coffeescript/index.html | 407 | # Create a function bound to a given object (assigning `this`, and arguments, | COMMENT |
| MEDIUM | public/plugins/codemirror-5.17.0/mode/puppet/index.html | 55 | # Create a subdirectory in /etc for config files | COMMENT |
| MEDIUM | public/plugins/codemirror-5.17.0/mode/puppet/index.html | 63 | # Create an example backup file, useful for reference | COMMENT |
| MEDIUM | public/plugins/codemirror-5.17.0/mode/puppet/index.html | 91 | # Create the base backup directory | COMMENT |
| MEDIUM | public/plugins/codemirror-5.17.0/mode/ruby/index.html | 97 | # Create a string of the polynomial in sort-of-readable form. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/database/organizations_test.go | 118 | org1, err := usersStore.Create(ctx, "org1", "org1@example.com", CreateUserOptions{FullName: "Acme Corp"}) | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/textile/test.js | 80 | 'user@example.com'); | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/rst/index.html | 419 | Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/rst/index.html | 419 | Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_ | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/rst/index.html | 437 | Lorem ipsum [Ref]_ dolor sit amet. | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/rst/index.html | 437 | Lorem ipsum [Ref]_ dolor sit amet. | CODE |
| LOW | public/plugins/dompurify-3.4.8/purify.min.js | 2 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| LOW | public/plugins/simplemde-1.10.1/simplemde.min.js | 7 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof defin | CODE |
| LOW | public/plugins/simplemde-1.10.1/simplemde.min.js | 14 | for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)!function(r){var i=e.getLine(r),o=i.search(/[ | CODE |
| LOW | public/js/semantic-2.4.2.min.js | 11 | !function(p,h,v,b){p.site=p.fn.site=function(e){var s,l,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,c=[].slice. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | public/plugins/highlight-9.18.0/highlight.pack.js | 2 | !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod | CODE |
| MEDIUM⚡ | public/plugins/highlight-9.18.0/highlight.pack.js | 2 | !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod | CODE |
| MEDIUM⚡ | public/plugins/highlight-9.18.0/highlight.pack.js | 2 | !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/dev/local_development.md | 19 | ## Step 1: Install dependencies | COMMENT |
| LOW | docs/dev/local_development.md | 96 | ## Step 2: Initialize your database | COMMENT |
| LOW | docs/dev/local_development.md | 124 | ## Step 3: Get the code | COMMENT |
| LOW | docs/dev/local_development.md | 134 | ## Step 4: Configure database settings | COMMENT |
| LOW | docs/dev/local_development.md | 148 | ## Step 5: Start the server | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | public/plugins/codemirror-5.17.0/mode/dart/dart.js | 124 | function tokenInterpolationIdentifier(stream, state) { | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/markdown/test.js | 42 | function FormatTokenTypeOverrideTest(name) { test.mode(name, modeFormattingOverride, Array.prototype.slice.call(argume | CODE |
| LOW | …lugins/codemirror-5.17.0/mode/powershell/powershell.js | 282 | function tokenHereStringInterpolation(stream, state) { | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/slim/slim.js | 265 | function startAttributeWrapperMode(state, endQuote, tokenize) { | CODE |
| LOW | public/plugins/codemirror-5.17.0/mode/sass/sass.js | 93 | function buildInterpolationTokenizer(currentTokenizer) { | CODE |
| LOW | public/js/gogs.js | 1342 | function initRepositoryCollaboration() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conf/locale/locale_en-GB.ini | 301 | delete_token_success=Personal access token has been removed successfully! Don't forget to update your application as wel | CODE |
| LOW | conf/locale/locale_en-US.ini | 350 | delete_token_success = Personal access token has been removed successfully! Don't forget to update your application as w | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | public/plugins/codemirror-5.17.0/mode/ruby/index.html | 102 | # Assign exponents to each term, making pairs of coeff and exponent, | COMMENT |