Repository Analysis

apache/answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

0.7 Likely human-written View on GitHub
0.7
Adjusted Score
0.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
15,536
Stars
Go
Language
263,646
Lines of Code
1047
Files
149
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 0LOW 147

Pattern Findings

149 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block134 hits · 134 pts
SeverityFileLineSnippet
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWdocker-compose.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.goreleaser.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWcrowdin.yml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.golangci.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWlicenserc.toml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.gitlab-ci.yml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/pnpm-workspace.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/HostingConnector/info.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/HostingConnector/i18n/zh_CN.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/HostingConnector/i18n/en_US.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/ThirdPartyConnector/info.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW…rc/plugins/builtin/ThirdPartyConnector/i18n/zh_CN.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW…rc/plugins/builtin/ThirdPartyConnector/i18n/en_US.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/SearchInfo/info.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/SearchInfo/i18n/zh_CN.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/plugins/builtin/SearchInfo/i18n/en_US.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOWui/src/services/client/timeline.ts21
LOWcmd/command.go41 // dumpDataPath dump data path
LOWplugin/vector_search.go121var (
LOWinternal/controller_admin/e_api_key_controller.go41
LOWinternal/controller_admin/plugin_controller.go61}
LOWinternal/controller_admin/siteinfo_controller.go61// @Description get site interface
LOWinternal/controller_admin/siteinfo_controller.go81 resp, err := sc.siteInfoService.GetSiteUsersSettings(ctx)
LOWinternal/controller_admin/siteinfo_controller.go101// @Security ApiKeyAuth
LOWinternal/controller_admin/siteinfo_controller.go121 handler.HandleResponse(ctx, err, resp)
LOWinternal/controller_admin/siteinfo_controller.go141// @Tags admin
LOWinternal/controller_admin/siteinfo_controller.go161}
LOWinternal/controller_admin/siteinfo_controller.go181// @Produce json
LOWinternal/controller_admin/siteinfo_controller.go201
LOWinternal/controller_admin/siteinfo_controller.go261// UpdateSeo update site seo information
LOWinternal/controller_admin/siteinfo_controller.go301// @Security ApiKeyAuth
LOWinternal/controller_admin/siteinfo_controller.go321// @Produce json
LOWinternal/controller_admin/siteinfo_controller.go421// @Description update site policies configuration
LOWinternal/controller_admin/siteinfo_controller.go441// @Tags admin
LOWinternal/controller_admin/siteinfo_controller.go461// @Param data body schema.SiteLoginReq true "login info"
LOWinternal/controller_admin/siteinfo_controller.go541// @Summary update smtp config
LOWinternal/controller_admin/siteinfo_controller.go561// @Security ApiKeyAuth
LOWinternal/controller_admin/siteinfo_controller.go621// GetAIProvider get AI provider configuration
LOWinternal/controller_admin/siteinfo_controller.go661// @Description get MCP configuration
LOWinternal/controller_admin/badge_controller.go41// @Summary list all badges by page
LOWinternal/controller_admin/user_backyard_controller.go181 }
LOWinternal/install/install_controller.go41 "github.com/segmentfault/pacman/errors"
LOWinternal/install/install_controller.go81// @Tags installation
LOWinternal/controller/dashboard_controller.go41// DashboardInfo godoc
LOWinternal/controller/reason_controller.go41// @Description get reasons by object type and action
LOWinternal/controller/answer_controller.go361// @Summary AnswerList
LOWinternal/controller/question_controller.go281// @Tags Question
LOWinternal/controller/question_controller.go801// @Summary fuzzy query similar questions based on title
LOWinternal/controller/question_controller.go861// @Summary list personal answers
LOWinternal/controller/question_controller.go881 resp, err := qc.questionService.PersonalAnswerPage(ctx, req)
LOWinternal/controller/question_controller.go901
LOWinternal/controller/user_controller.go461 handler.HandleResponse(ctx, err, errFields)
LOWinternal/controller/user_controller.go521// @Success 200 {object} handler.RespBody{data=schema.GetUserNotificationConfigResp}
LOWinternal/controller/user_controller.go641// @Produce json
LOWinternal/controller/badge_controller.go61// @Summary get badge info
LOWinternal/controller/lang_controller.go41
LOWinternal/controller/lang_controller.go61// @Tags Lang
LOWinternal/controller/vote_controller.go161 handler.HandleResponse(ctx, err, resp)
LOWinternal/controller/activity_controller.go41
74 more matches not shown…
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippet
LOWpkg/checker/question_link_test.go30 // Step 1: Test empty content
LOWpkg/checker/question_link_test.go36 // Step 2: Test content without link or ID
LOWpkg/checker/question_link_test.go42 // Step 3: Test content with valid question link
LOWpkg/checker/question_link_test.go54 // Step 4: Test content with valid question and answer link
LOWpkg/checker/question_link_test.go66 // Step 5: Test content with #questionID
LOWpkg/checker/question_link_test.go78 // Step 6: Test content with #answerID
LOWpkg/checker/question_link_test.go90 // Step 7: Test invalid question ID
LOWpkg/checker/question_link_test.go96 // Step 8: Test invalid answer ID
LOWpkg/checker/question_link_test.go108 // Step 9: Test content with multiple links and IDs
LOWpkg/checker/question_link_test.go131 // Step 11: Test URL with www prefix
LOWpkg/checker/question_link_test.go143 // Step 12: Test URL without protocol
LOWpkg/checker/question_link_test.go155 // Step 14: Test error id
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALinternal/schema/plugin_admin_schema.go98 Text: field.UIOptions.Action.Loading.Text.Translate(ctx),
CRITICALinternal/schema/plugin_user_schema.go75 Text: field.UIOptions.Action.Loading.Text.Translate(ctx),
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWui/src/components/InitialLoadingPlaceholder/index.tsx24function InitialLoadingPlaceholder() {