Repository Analysis

gogs/gogs

The painless way to host your own Git service

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
47,568
Stars
Go
Language
196,233
Lines of Code
810
Files
63
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 16LOW 45

Pattern Findings

63 matches across 9 categories. Click a row to expand file-level details.

Over-Commented Block30 hits · 30 pts
SeverityFileLineSnippet
LOWmockgen.yaml1force: true
LOWweb/src/pages/repo/Commit.tsx281 }, []);
LOWweb/src/pages/repo/Commit.search.ts1// Search-param schema for the commit diff route. Defined here (and not in
LOWinternal/database/users.go1421
LOWinternal/database/mocks_gen.go201// method Authenticate on an instance of MockProvider.
LOWinternal/database/database.go121 return db, nil
LOWinternal/database/mocks_test.go1// Code generated by go-mockgen 2.1.1; DO NOT EDIT.
LOWinternal/database/mocks_test.go381// LoginSourceFileStoreSetGeneralFuncCall is an object that describes an
LOWinternal/database/mocks_test.go401func (c LoginSourceFileStoreSetGeneralFuncCall) Results() []interface{} {
LOWinternal/context/auth.go121 // GetUserByUsername returns the user with given username. It returns
LOWinternal/context/store.go21 // database.ErrUserNotExist when not found.
LOWinternal/route/user/setting.go741// SettingsStore is the data layer carrier for user settings endpoints. This
LOWinternal/route/lfs/store.go41 // GetUserByID returns the user with given ID. It returns
LOWinternal/route/lfs/mocks_test.go21 // controlling the behavior of the method AuthenticateUser.
LOWinternal/route/lfs/mocks_test.go41 GetLFSObjectsByOIDsFunc *StoreGetLFSObjectsByOIDsFunc
LOWinternal/route/lfs/mocks_test.go321 // Arg1 is the value of the 2nd argument passed to this method
LOWinternal/route/lfs/mocks_test.go541
LOWinternal/route/lfs/mocks_test.go661 // Arg0 is the value of the 1st argument passed to this method
LOWinternal/route/lfs/mocks_test.go881// of method GetLFSObjectByOID on an instance of MockStore.
LOWinternal/route/repo/store.go21 // returns database.ErrRepoNotExist when not found.
LOWinternal/route/repo/store.go41 //
LOWpublic/plugins/codemirror-5.17.0/mode/markdown/test.js801 MT("emStrongMixed",
LOWpublic/plugins/codemirror-5.17.0/mode/erlang/erlang.js461
LOWpublic/plugins/codemirror-5.17.0/mode/tcl/index.html21 <li><a href="../index.html">Language modes</a>
LOWpublic/plugins/codemirror-5.17.0/mode/tcl/index.html41## ## Start Setup. ## ##
LOWpublic/plugins/codemirror-5.17.0/mode/sas/sas.js1// CodeMirror, copyright (c) by Marijn Haverbeke and others
LOW…plugins/codemirror-5.17.0/mode/coffeescript/index.html21 <li><a class=active href="#">CoffeeScript</a>
LOW…plugins/codemirror-5.17.0/mode/coffeescript/index.html41# **Underscore.coffee
LOWpublic/plugins/codemirror-5.17.0/mode/rpm/index.html61 indentUnit: 4
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply need
Decorative Section Separators7 hits · 21 pts
SeverityFileLineSnippet
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html54# --------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html123# --------------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html296# ---------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html405# ------------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html464# ----------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html597# -----------------
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html681# ---------------------
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALpublic/js/semantic-2.4.2.min.js11!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.
CRITICALpublic/js/jquery-3.7.1.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippet
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html106# Create a safe reference to the Underscore object for use below.
MEDIUM…plugins/codemirror-5.17.0/mode/coffeescript/index.html407# Create a function bound to a given object (assigning `this`, and arguments,
MEDIUMpublic/plugins/codemirror-5.17.0/mode/puppet/index.html55# Create a subdirectory in /etc for config files
MEDIUMpublic/plugins/codemirror-5.17.0/mode/puppet/index.html63# Create an example backup file, useful for reference
MEDIUMpublic/plugins/codemirror-5.17.0/mode/puppet/index.html91# Create the base backup directory
MEDIUMpublic/plugins/codemirror-5.17.0/mode/ruby/index.html97# Create a string of the polynomial in sort-of-readable form.
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMpublic/plugins/highlight-9.18.0/highlight.pack.js2!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod
MEDIUMpublic/plugins/highlight-9.18.0/highlight.pack.js2!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod
MEDIUMpublic/plugins/highlight-9.18.0/highlight.pack.js2!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nod
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippet
LOWinternal/database/organizations_test.go118 org1, err := usersStore.Create(ctx, "org1", "org1@example.com", CreateUserOptions{FullName: "Acme Corp"})
LOWpublic/plugins/codemirror-5.17.0/mode/textile/test.js80 'user@example.com');
LOWpublic/plugins/codemirror-5.17.0/mode/rst/index.html419 Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_
LOWpublic/plugins/codemirror-5.17.0/mode/rst/index.html419 Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_
LOWpublic/plugins/codemirror-5.17.0/mode/rst/index.html437 Lorem ipsum [Ref]_ dolor sit amet.
LOWpublic/plugins/codemirror-5.17.0/mode/rst/index.html437 Lorem ipsum [Ref]_ dolor sit amet.
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippet
LOWpublic/plugins/codemirror-5.17.0/mode/dart/dart.js124 function tokenInterpolationIdentifier(stream, state) {
LOWpublic/plugins/codemirror-5.17.0/mode/markdown/test.js42 function FormatTokenTypeOverrideTest(name) { test.mode(name, modeFormattingOverride, Array.prototype.slice.call(argume
LOW…lugins/codemirror-5.17.0/mode/powershell/powershell.js282 function tokenHereStringInterpolation(stream, state) {
LOWpublic/plugins/codemirror-5.17.0/mode/slim/slim.js265 function startAttributeWrapperMode(state, endQuote, tokenize) {
LOWpublic/plugins/codemirror-5.17.0/mode/sass/sass.js93 function buildInterpolationTokenizer(currentTokenizer) {
LOWpublic/js/gogs.js1342function initRepositoryCollaboration() {
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippet
LOWconf/locale/locale_en-GB.ini386delete_token_success=Personal access token has been removed successfully! Don't forget to update your application as wel
LOWconf/locale/locale_en-US.ini434delete_token_success = Personal access token has been removed successfully! Don't forget to update your application as w
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWpublic/plugins/codemirror-5.17.0/mode/ruby/index.html102 # Assign exponents to each term, making pairs of coeff and exponent,