Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
907 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | eslint.config.ts | 441 | 'no-import-assign': [2], |
| LOW | eslint.config.ts | 461 | // 'no-jquery/no-clone': [2], |
| LOW | eslint.config.ts | 481 | // 'no-jquery/no-find-collection': [0], |
| LOW | eslint.config.ts | 501 | // 'no-jquery/no-live': [2], |
| LOW | eslint.config.ts | 521 | // 'no-jquery/no-prop': [2], |
| LOW | main_timezones.go | 1 | // Copyright 2025 The Gitea Authors. All rights reserved. |
| LOW | routers/web/org/teams.go | 321 | ctx.Data["PageIsOrgTeamsNew"] = true |
| LOW | routers/web/healthcheck/check.go | 21 | const ( |
| LOW | routers/web/user/home.go | 361 | // ---------------------------------------------------- |
| LOW | routers/web/user/home.go | 441 | |
| LOW | routers/web/repo/view_readme.go | 21 | "gitea.dev/modules/setting" |
| LOW | routers/common/compare.go | 41 | } |
| LOW | routers/api/v1/api.go | 1 | // Copyright 2015 The Gogs Authors. All rights reserved. |
| LOW | routers/api/v1/api.go | 21 | // - AccessToken : |
| LOW | routers/api/v1/api.go | 41 | // type: apiKey |
| LOW | routers/api/v1/misc/label_templates.go | 21 | // - application/json |
| LOW | routers/api/v1/misc/signing.go | 21 | return |
| LOW | routers/api/v1/misc/signing.go | 41 | |
| LOW | routers/api/v1/misc/signing.go | 61 | // schema: |
| LOW | routers/api/v1/misc/signing.go | 81 | // summary: Get signing-key.pub for given repository |
| LOW | routers/api/v1/misc/markup.go | 21 | // parameters: |
| LOW | routers/api/v1/misc/markup.go | 41 | // Markdown render markdown document to HTML |
| LOW | routers/api/v1/misc/markup.go | 61 | form := web.GetForm(ctx).(*api.MarkdownOption) |
| LOW | routers/api/v1/misc/gitignore.go | 21 | // produces: |
| LOW | routers/api/v1/misc/licenses.go | 41 | // swagger:operation GET /licenses/{name} miscellaneous getLicenseTemplateInfo |
| LOW | routers/api/v1/settings/settings.go | 21 | // responses: |
| LOW | routers/api/v1/notify/user.go | 21 | // summary: List users's notification threads |
| LOW | routers/api/v1/notify/user.go | 41 | // type: array |
| LOW | routers/api/v1/notify/user.go | 101 | // produces: |
| LOW | routers/api/v1/notify/repo.go | 41 | } |
| LOW | routers/api/v1/notify/repo.go | 61 | // in: path |
| LOW | routers/api/v1/notify/repo.go | 81 | // items: |
| LOW | routers/api/v1/notify/repo.go | 141 | // - application/json |
| LOW | routers/api/v1/notify/repo.go | 161 | // type: array |
| LOW | routers/api/v1/notify/threads.go | 21 | // summary: Get notification thread by ID |
| LOW | routers/api/v1/notify/threads.go | 61 | // parameters: |
| LOW | routers/api/v1/org/org.go | 61 | func ListMyOrgs(ctx *context.APIContext) { |
| LOW | routers/api/v1/org/org.go | 81 | |
| LOW | routers/api/v1/org/org.go | 101 | // type: integer |
| LOW | routers/api/v1/org/org.go | 121 | // - application/json |
| LOW | routers/api/v1/org/org.go | 181 | |
| LOW | routers/api/v1/org/org.go | 241 | // consumes: |
| LOW | routers/api/v1/org/org.go | 301 | // - application/json |
| LOW | routers/api/v1/org/org.go | 321 | // Don't show Mail, when User is not logged in |
| LOW | routers/api/v1/org/org.go | 341 | // - name: body |
| LOW | routers/api/v1/org/org.go | 361 | } |
| LOW | routers/api/v1/org/org.go | 381 | // required: true |
| LOW | routers/api/v1/org/org.go | 421 | func Delete(ctx *context.APIContext) { |
| LOW | routers/api/v1/org/org.go | 441 | return |
| LOW | routers/api/v1/org/org.go | 461 | // type: string |
| LOW | routers/api/v1/org/org.go | 541 | // --- |
| LOW | routers/api/v1/org/avatar.go | 21 | // produces: |
| LOW | routers/api/v1/org/avatar.go | 61 | // - application/json |
| LOW | routers/api/v1/org/action.go | 21 | ) |
| LOW | routers/api/v1/org/action.go | 81 | // - application/json |
| LOW | routers/api/v1/org/action.go | 141 | // in: path |
| LOW | routers/api/v1/org/action.go | 181 | // parameters: |
| LOW | routers/api/v1/org/action.go | 201 | // parameters: |
| LOW | routers/api/v1/org/action.go | 241 | } |
| LOW | routers/api/v1/org/action.go | 261 | // - name: variablename |
| 713 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | web_src/js/external-render-frontend.ts | 43 | async function initFrontendExternalRender() { |
| LOW | web_src/js/features/repo-settings-branches.ts | 7 | export function initRepoSettingsBranchesDrag() { |
| LOW | web_src/js/features/repo-issue-pull.ts | 7 | export function initRepoPullRequestUpdate(el: HTMLElement) { |
| LOW | web_src/js/features/repo-issue-pull.ts | 21 | function onCommitStatusChecksToggle(btn: HTMLElement) { |
| LOW | web_src/js/features/repo-issue-pull.ts | 28 | async function initRepoPullRequestMergeForm(box: HTMLElement) { |
| LOW | web_src/js/features/common-fetch-action.ts | 70 | export async function handleFetchActionSuccessJson(el: HTMLElement, respJson: any) { |
| LOW | web_src/js/features/common-fetch-action.ts | 157 | function prepareFormFetchActionOpts(formEl: HTMLFormElement, opts: SubmitFormFetchActionOpts = {}): FetchActionOpts { |
| LOW | web_src/js/features/common-fetch-action.ts | 234 | export async function performFetchActionTrigger(el: HTMLElement, triggerType: FetchActionTriggerType) { |
| LOW | web_src/js/features/common-fetch-action.ts | 254 | export function execPseudoSelectorCommands(el: Element, fullCommand: string): PseudoSelectorCommandResult { |
| LOW | web_src/js/features/common-fetch-action.ts | 285 | async function handleFetchActionSuccessSync(el: Element, successSync: string, respText: string) { |
| LOW | web_src/js/features/common-fetch-action.ts | 300 | async function fetchActionReloadOutdatedElements() { |
| LOW | web_src/js/features/common-fetch-action.ts | 326 | function initFetchActionTriggerEvery(el: HTMLElement, trigger: string) { |
| LOW | web_src/js/features/repo-issue-list.ts | 13 | function initRepoIssueListCheckboxes() { |
| LOW | web_src/js/features/repo-issue-list.ts | 99 | function initDropdownUserRemoteSearch(el: Element) { |
| LOW | web_src/js/features/repo-branch.ts | 9 | function initRepoCreateBranchButton() { |
| LOW | web_src/js/features/repo-branch.ts | 26 | function initRepoRenameBranchButton() { |
| LOW | web_src/js/features/common-form.ts | 6 | export function initGlobalFormDirtyLeaveConfirm() { |
| LOW | web_src/js/features/common-form.ts | 15 | export function initGlobalEnterQuickSubmit() { |
| LOW | web_src/js/features/common-form.ts | 34 | export function initGlobalComboMarkdownEditor() { |
| LOW | web_src/js/features/repo-issue-sidebar.ts | 12 | function initRepoIssueBranchSelector(elSidebar: HTMLElement) { |
| LOW | web_src/js/features/repo-issue-sidebar.ts | 52 | export function initRepoIssueSidebarDependency(elSidebar: HTMLElement) { |
| LOW | web_src/js/features/repo-issue-sidebar.ts | 86 | export function initRepoPullRequestAllowMaintainerEdit(elSidebar: HTMLElement) { |
| LOW | web_src/js/features/common-actions-permissions.ts | 4 | export function initActionsPermissionsForm(): void { |
| LOW | web_src/js/features/common-actions-permissions.ts | 9 | function initRepoActionsPermissionsForm(form: HTMLFormElement) { |
| LOW | web_src/js/features/common-actions-permissions.ts | 14 | function initOwnerActionsPermissionsForm(form: HTMLFormElement) { |
| LOW | web_src/js/features/common-actions-permissions.ts | 18 | function initActionsPermissionTable(form: HTMLFormElement) { |
| LOW | web_src/js/features/common-actions-permissions.ts | 27 | function initActionsOverrideOwnerConfig(form: HTMLFormElement) { |
| LOW | web_src/js/features/repo-issue.ts | 91 | export function initRepoIssueFilterItemLabel() { |
| LOW | web_src/js/features/repo-issue.ts | 96 | export function initRepoIssueCommentDelete() { |
| LOW | web_src/js/features/repo-issue.ts | 153 | export function initRepoIssueCodeCommentCancel() { |
| LOW | web_src/js/features/repo-issue.ts | 200 | export function initRepoPullRequestReview() { |
| LOW | web_src/js/features/repo-issue.ts | 302 | export function initRepoIssueReferenceIssue() { |
| LOW | web_src/js/features/repo-issue.ts | 435 | export function initRepoIssueBranchSelect() { |
| LOW | web_src/js/features/repo-issue.ts | 471 | function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) { |
| LOW | web_src/js/features/repo-issue.ts | 510 | export function initRepoCommentFormAndSidebar() { |
| LOW | web_src/js/features/repo-legacy.ts | 22 | function initRepoBranchTagSelector() { |
| LOW | web_src/js/features/repo-release.ts | 24 | function getReleaseFormExistingTags(elForm: HTMLFormElement): Array<string> { |
| LOW | web_src/js/features/repo-new.ts | 8 | function initRepoNewTemplateSearch(form: HTMLFormElement) { |
| LOW | web_src/js/features/user-auth-webauthn.ts | 215 | export function initUserAuthWebAuthnRegister() { |
| LOW | web_src/js/features/stopwatch.ts | 66 | async function updateStopwatchWithCallback(callback: (timeout: number) => void, timeout: number) { |
| LOW | web_src/js/features/repo-editor.ts | 238 | export function renderPreviewPanelContent(previewPanel: Element, htmlContent: string) { |
| LOW | web_src/js/features/common-issue-list.ts | 10 | export function parseIssueListQuickGotoLink(repoLink: string, searchText: string) { |
| LOW | web_src/js/features/common-issue-list.ts | 29 | export function initCommonIssueListQuickGoto() { |
| LOW | web_src/js/features/repo-settings.ts | 11 | function initRepoSettingsCollaboration() { |
| LOW | web_src/js/features/repo-settings.ts | 51 | function initRepoSettingsSearchTeamBox() { |
| LOW | web_src/js/features/common-button.ts | 7 | export function initGlobalButtonClickOnEnter(): void { |
| LOW | web_src/js/features/repo-migrate.ts | 4 | export function initRepoMigrationStatusChecker() { |
| LOW | web_src/js/features/repo-issue-sidebar-combolist.ts | 8 | export function syncIssueMainContentTimelineItems(oldMainContent: Element, newMainContent: Element) { |
| LOW | web_src/js/features/repo-issue-content.ts | 126 | export async function initRepoIssueContentHistory() { |
| LOW | web_src/js/features/notification.ts | 55 | async function updateNotificationCountWithCallback(callback: (timeout: number, newCount: number) => void, timeout: numbe |
| LOW | web_src/js/features/imagediff.ts | 31 | function getDefaultSvgBoundsIfUndefined(text: string, src: string): Bounds | null { |
| LOW | web_src/js/features/common-page.ts | 12 | function initHeadNavbarContentToggle() { |
| LOW | web_src/js/features/dropzone.ts | 26 | export function generateMarkdownLinkForAttachment(file: Partial<CustomDropzoneFile>, {width, dppx}: {width?: number, dpp |
| LOW | web_src/js/features/repo-common.ts | 39 | export function initRepoActivityTopAuthorsChart() { |
| LOW | web_src/js/features/repo-common.ts | 46 | export function substituteRepoOpenWithUrl(tmpl: string, url: string): string { |
| LOW | web_src/js/features/repo-common.ts | 54 | function initCloneSchemeUrlSelection(parent: Element) { |
| LOW | web_src/js/features/pull-view-file.ts | 15 | function refreshViewedFilesSummary() { |
| LOW | web_src/js/features/pull-view-file.ts | 27 | export function initViewedCheckboxListenerFor() { |
| LOW | web_src/js/features/pull-view-file.ts | 72 | export function initExpandAndCollapseFilesButton() { |
| LOW | web_src/js/features/repo-diff-commit.ts | 48 | export function initRepoDiffCommitBranchesAndTags() { |
| 34 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | routers/web/repo/setting/protected_branch.go | 129 | // RuleName changed. We need to check if there is a rule with the same name. |
| LOW | routers/private/serv.go | 248 | // So now we need to check if the key is a deploy key |
| LOW | tests/integration/org_test.go | 198 | // Now we need to check if the restrictedUser can access the repo |
| LOW | tests/integration/migrate_test.go | 74 | // Step 0: verify the repo is available |
| LOW | tests/integration/migrate_test.go | 77 | // Step 1: get the Gitea migration form |
| LOW | tests/integration/migrate_test.go | 80 | // Step 2: load the form |
| LOW | tests/integration/migrate_test.go | 88 | // Step 4: submit the migration to only migrate issues |
| LOW | tests/integration/migrate_test.go | 100 | // Step 5: a redirection displays the migrated repository |
| LOW | tests/integration/migrate_test.go | 103 | // Step 6: check the repo was created |
| LOW | tests/integration/auth_oauth2_test.go | 188 | // Step 1: initiate login |
| LOW | tests/integration/auth_oauth2_test.go | 191 | // Step 2: extract the UUID state that Gitea embedded in the redirect URL. |
| LOW | tests/integration/auth_oauth2_test.go | 198 | // Step 3: simulate the provider redirecting back. |
| LOW | models/user/user.go | 1447 | // Now we need to check if they in some organization together |
| LOW | models/actions/run.go | 41 | IsForkPullRequest bool // If this is triggered by a PR from a forked repository or an untrusted |
| LOW | modules/web/router.go | 238 | // the following code block is a slow-path for replacing all repeated slashes "//" to one single "/" |
| LOW | modules/markup/markdown/math/block_parser.go | 57 | // Now we need to check if the ending block is on the segment... |
| LOW | modules/public/mime_types.go | 39 | // The purpose of this function is to bypass the unstable behavior of Golang's mime.TypeByExtension |
| LOW | modules/lfs/pointer_scanner_nogogit.go | 91 | // Now we need to check if the pointerBuf is an LFS pointer |
| LOW | services/pull/patch.go | 315 | // No conflicts detected so we need to check if the patch is empty... |
| LOW | services/pull/lfs.go | 111 | // Now we need to check if the pointerBuf is an LFS pointer |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/integration/api_repo_files_change_test.go | 40 | Name: "John Doe", |
| LOW | tests/integration/api_repo_file_delete_test.go | 29 | Name: "John Doe", |
| LOW | tests/integration/api_repo_file_delete_test.go | 33 | Name: "Jane Doe", |
| LOW | tests/integration/user_test.go | 361 | "email": "user@example.com", |
| LOW | tests/integration/api_repo_file_update_test.go | 36 | Name: "John Doe", |
| LOW | tests/integration/api_repo_file_update_test.go | 86 | Name: "John Doe", |
| LOW | tests/integration/api_repo_file_create_test.go | 40 | Name: "John Doe", |
| LOW | tests/integration/api_repo_file_create_test.go | 109 | Name: "John Doe", |
| LOW | modules/repository/commits_test.go | 138 | Name: "John Doe", |
| LOW | modules/repository/commits_test.go | 153 | assert.Equal(t, "John Doe", pushCommit.AuthorName) |
| LOW | modules/repository/commits_test.go | 155 | assert.Equal(t, "John Doe", pushCommit.CommitterName) |
| LOW | modules/repository/commits_test.go | 163 | Name: "John Doe", |
| LOW | modules/packages/swift/metadata_test.go | 100 | authorName := "John Doe" |
| LOW | modules/packages/swift/metadata_test.go | 202 | Expected: "John Doe", |
| LOW | modules/typesniffer/typesniffer_test.go | 25 | assert.True(t, DetectContentType([]byte("lorem ipsum")).IsText()) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | models/asymkey/gpg_key_commit_verification.go | 140 | // Now we drop to the more nuanced trust models... |
| MEDIUM | modules/auth/password/hash/hash.go | 127 | // seamless backwards compatibility with the original configuration. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker/rootless/usr/local/bin/docker-setup.sh | 22 | # Set INSTALL_LOCK to true only if SECRET_KEY is not empty and |
| LOW | contrib/upgrade.sh | 13 | # Check if gitea service is running |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/integration/linguist_test.go | 32 | lockContent := "# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand." |