AI Slop Code Risk Monitor

casdoor/casdoor

SlopCodeMonitor badge for casdoor/casdoor Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD

3.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for casdoor/casdoor, a Go project with 14,720 GitHub stars. SynthScan examined 294,486 lines of code across 1288 source files, recording 1014 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 3.5 (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.

3.5
Adjusted Signal
3.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
14.7K
Stars
Go
Language
294.5K
Lines of Code
1.3K
Files
1.0K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 15.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 977 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

Are imports declared and package/API names verified? 35 finding(s).

Agent Over-Engineering Ratio 1.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 80 finding(s).

PR Review Velocity Impact 15.9/100 · LOW

Which changes need focused human review? 1014 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 2LOW 1012

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 1014 distinct pattern matches across 5 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.

Over-Commented Block898 hits · 898 pts
SeverityFileLineSnippetContext
LOWmain.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/theme_filter.go1// Copyright 2025 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/branding.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/auto_signin_filter.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/mcp_util.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/cors_filter.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/uploaded_file_filter.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/uploaded_file_filter.go61COMMENT
LOWrouters/uploaded_file_filter.go81// - "sandbox" puts the document in an opaque origin and, withoutCOMMENT
LOWrouters/authz_filter.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/static_filter.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/lightweight_auth_filter.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/static_filter_util.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/record.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/request_body_filter.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/base_path.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/session_provider.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/timeout_filter.go1// Copyright 2024 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/base.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/forward_auth_filter.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/content_type_filter.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/frontend_cdn.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/router.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWrouters/field_validation_filter.go1// Copyright 2025 The Casdoor Authors. All Rights Reserved.COMMENT
LOWfaceId/provider.go1// Copyright 2025 The Casdoor Authors. All Rights Reserved.COMMENT
LOWfaceId/provider_test.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWfaceId/aliyun.go1// Copyright 2025 The Casdoor Authors. All Rights Reserved.COMMENT
LOWfaceId/local_uniface.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWfaceId/local_uniface_test.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/okta.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/provider.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/kwai.go1// Copyright 2024 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/custom.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/dingtalk.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/wecom_internal.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/infoflow_internal.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/oidc.go1// Copyright 2026 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/qq.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/qq.go101// "city": "安道尔城",COMMENT
LOWidp/google.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/alipay.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/douyin.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/lark.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/telegram.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/gitlab.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/adfs.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/linkedin.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/bilibili.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/wecom_third_party.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/twitter.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/twitter.go121//{COMMENT
LOWidp/azuread_b2c.go1// Copyright 2023 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/weibo.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/wechat.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/wechat.go161}COMMENT
LOWidp/facebook.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/facebook.go101 token := oauth2.Token{COMMENT
LOWidp/wechat_mobile.go1// Copyright 2025 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/wechat_miniprogram.go1// Copyright 2022 The Casdoor Authors. All Rights Reserved.COMMENT
LOWidp/gitee.go1// Copyright 2021 The Casdoor Authors. All Rights Reserved.COMMENT
838 more matches not shown…
Hyper-Verbose Identifiers78 hits · 78 pts
SeverityFileLineSnippetContext
LOWweb-old/craco.config.js74 function ignoreSourcemapsloaderWarnings(warning) {CODE
LOWweb-old/public/ProviderHintRedirect.js48 function isProviderVisibleForSignIn(providerItem) {CODE
LOWweb-old/public/AuthCallbackHandler.js47 function storeReactFallbackPayload(payload) {CODE
LOWweb-old/src/Setting.js796export function isProviderVisibleForSignUp(providerItem) {CODE
LOWweb-old/src/Setting.js804export function isProviderVisibleForSignIn(providerItem) {CODE
LOWweb-old/src/Setting.js820export function getAllPromptedProviderItems(application) {CODE
LOWweb-old/src/Setting.js824export function getAllPromptedSignupItems(application) {CODE
LOWweb-old/src/Setting.js1566export function getCryptoAlgorithmOptions(cryptoAlgorithm) {CODE
LOWweb-old/src/Setting.js1904export function getApplicationDisplayName(application) {CODE
LOWweb-old/src/Setting.js1961export function isDefaultOrganizationSelected(account) {CODE
LOWweb-old/src/Setting.js2185export function getDefaultHtmlEmailContent() {CODE
LOWweb-old/src/Setting.js2228export function getDefaultInvitationHtmlEmailContent() {CODE
LOWweb-old/src/ProviderEditPage.js47function isDefaultProviderDisplayName(displayName) {CODE
LOWweb-old/src/ProviderEditPage.js61function getAutoProviderDisplayName(category, type, subType) {CODE
LOWweb-old/src/OpenClawSessionGraphViewer.js234function OpenClawSessionGraphCanvas(props) {CODE
LOWweb-old/src/OpenClawSessionGraphUtils.js20function parseOpenClawBehaviorPayload(message) {CODE
LOWweb-old/src/OpenClawSessionGraphUtils.js209export function formatOpenClawSessionGraphTimestamp(timestamp) {CODE
LOWweb-old/src/OpenClawSessionGraphUtils.js409export function buildOpenClawFlowElements(graph) {CODE
LOWweb-old/src/auth/Util.js222export async function WechatOfficialAccountModal(application, provider, method) {CODE
LOWweb-old/src/auth/Web3Auth.js133export function checkEthereumSignedTypedData(token) {CODE
LOWweb-old/src/auth/GoogleLoginButton.js35export function GoogleOneTapLoginVirtualButton(prop) {CODE
LOWweb-old/src/auth/Obfuscator.js18export function getRandomKeyForObfuscator(obfuscatorType) {CODE
LOWweb-old/src/auth/Obfuscator.js62export function encryptByPasswordObfuscator(passwordObfuscatorType, passwordObfuscatorKey, password) {CODE
LOWweb-old/src/provider/LogProviderFields.js22function getStorageProviderOptions(providers, owner) {CODE
LOWweb-old/src/provider/IDVerificationProviderFields.js21export function renderIDVerificationProviderFields(provider, updateProviderField) {CODE
LOWweb-old/src/provider/StorageProviderFields.js21export function renderStorageProviderFields(provider, updateProviderField) {CODE
LOWweb-old/src/provider/EmailProviderFields.js26export function renderEmailProviderFields(provider, updateProviderField, renderEmailMappingInput, account) {CODE
LOWweb-old/src/provider/OAuthProviderFields.js24export function renderOAuthProviderFields(provider, updateProviderField, renderUserMappingInput, certs = []) {CODE
LOWweb-old/src/provider/CaptchaProviderFields.js21export function renderCaptchaProviderFields(provider, providerName) {CODE
LOWweb-old/src/provider/NotificationProviderFields.js24export function renderNotificationProviderFields(provider, updateProviderField, getReceiverRow) {CODE
LOWweb-old/src/provider/PaymentProviderFields.js23export function renderPaymentProviderFields(provider, updateProviderField, certs) {CODE
LOWweb-old/src/provider/FaceIDProviderFields.js21export function renderFaceIdProviderFields(provider, updateProviderField) {CODE
LOWweb-old/src/backend/ApplicationBackend.js27export function getApplicationsByOrganization(owner, organization, page = "", pageSize = "", field = "", value = "", sorCODE
LOWweb-old/src/backend/UserWebauthnBackend.js17export function registerWebauthnCredential() {CODE
LOWweb-old/src/backend/UserWebauthnBackend.js64export function deleteUserWebAuthnCredential(credentialID) {CODE
LOWweb-old/src/backend/EntryBackend.js38export function getOpenClawSessionTranscriptUrl(owner, name) {CODE
LOWweb-old/src/backend/EntryBackend.js42export function getOpenClawSessionTranscript(owner, name) {CODE
LOWweb-old/src/backend/PermissionBackend.js27export function getPermissionsBySubmitter() {CODE
LOWweb-old/src/table/TransactionTableColumns.js22export function getTransactionTableColumns(options = {}) {CODE
LOWweb/public/ProviderHintRedirect.js63 function isProviderVisibleForSignIn(providerItem) {CODE
LOWweb/public/AuthCallbackHandler.js65 function storeReactFallbackPayload(payload) {CODE
LOWweb/src/auth/Obfuscator.ts18export function getRandomKeyForObfuscator(obfuscatorType) {CODE
LOWweb/src/auth/Obfuscator.ts62export function encryptByPasswordObfuscator(passwordObfuscatorType, passwordObfuscatorKey, password) {CODE
LOWweb/src/backend/UserWebauthnBackend.ts17export function registerWebauthnCredential() {CODE
LOWweb/src/backend/UserWebauthnBackend.ts64export function deleteUserWebAuthnCredential(credentialID) {CODE
LOWweb/src/backend/PermissionBackend.ts27export function getPermissionsBySubmitter() {CODE
LOWweb/src/backend/EntryBackend.ts38export function getOpenClawSessionTranscriptUrl(owner, name) {CODE
LOWweb/src/backend/EntryBackend.ts42export function getOpenClawSessionTranscript(owner, name) {CODE
LOWweb/src/backend/ApplicationBackend.ts27export function getApplicationsByOrganization(owner, organization, page: any = "", pageSize: any = "", field: any = "", CODE
LOWweb/src/components/entry/OpenClawSessionGraphViewer.tsx341export function OpenClawSessionGraphViewer({entry, provider}: ViewerProps) {CODE
LOW…b/src/components/common/FaceRecognitionCommonModal.tsx64export function FaceRecognitionCommonModal({visible, onOk, onCancel}: FaceRecognitionCommonModalProps) {CODE
LOWweb/src/components/common/Loading.tsx5function alignSpinToDocumentTimeline(element: Element | null) {CODE
LOW…omponents/application/ApplicationAuthenticationTab.tsx10export function ApplicationAuthenticationTab({application, updateField}: ApplicationTabProps) {CODE
LOWweb/src/components/application/ApplicationPreview.tsx26export function ApplicationSignupSigninPreview({application}: {application: any}) {CODE
LOW…mponents/application/ApplicationUiCustomizationTab.tsx50function getDefaultSigninMethodRule(name: string): string {CODE
LOW…mponents/application/ApplicationUiCustomizationTab.tsx203export function ApplicationUiCustomizationTab({application, updateField}: ApplicationTabProps) {CODE
LOW…/components/application/ApplicationReverseProxyTab.tsx18export function ApplicationReverseProxyTab({application, updateField, certs}: ApplicationReverseProxyTabProps) {CODE
LOWweb/src/hooks/use-application-chrome.ts174export function getOrganizationCookieChrome() {CODE
LOWweb/src/lib/openclaw-graph.ts29function parseOpenClawBehaviorPayload(message: any) {CODE
LOWweb/src/lib/openclaw-graph.ts218export function formatOpenClawSessionGraphTimestamp(timestamp: any): string {CODE
18 more matches not shown…
Fake / Example Data35 hits · 40 pts
SeverityFileLineSnippetContext
LOWidp/okta.go141 "name" :"John Doe",CODE
LOWidp/casdoor.go103 "email": "admin@example.com",CODE
LOW⚡util/string_test.go101 {"Should be return lorem_ipsum", "Lorem Ipsum", "lorem_ipsum"},CODE
LOW⚡util/string_test.go102 {"Should be return Lorem Ipsum", "lorem Ipsum", "lorem_ipsum"},CODE
LOW⚡util/string_test.go103 {"Should be return lorem_ipsum", "lorem ipsum", "loremipsum"},CODE
LOWutil/string_test.go145 {"Scenery three", []string{"test", "lorem ipsum"}, "test/lorem ipsum"},CODE
LOWutil/string_test.go163 {"Scenery three", "lorem ipsum", "80a751fde577028640c419000e33eba6"},CODE
LOWswagger/swagger-ui.js2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amCODE
LOWswagger/swagger-ui-es-bundle-core.js2module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[CODE
LOWswagger/swagger.json9173 "placeholder": {CODE
LOWswagger/swagger.json9218 "placeholder": {CODE
LOWswagger/swagger-ui-standalone-preset.js2!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amCODE
LOWweb-old/src/WebhookEditPage.js72 "email": "admin@example.com",CODE
LOW⚡web-old/src/table/SigninTable.js232 dataIndex: "placeholder",CODE
LOW⚡web-old/src/table/SigninTable.js233 key: "placeholder",CODE
LOW⚡web-old/src/table/SigninTable.js242 this.updateField(table, index, "placeholder", e.target.value);CODE
LOW⚡web-old/src/table/SignupTable.js284 dataIndex: "placeholder",CODE
LOW⚡web-old/src/table/SignupTable.js285 key: "placeholder",CODE
LOW⚡web-old/src/table/SignupTable.js294 this.updateField(table, index, "placeholder", e.target.value);CODE
LOW…mponents/application/ApplicationUiCustomizationTab.tsx345 key: "placeholder",CODE
LOW…mponents/application/ApplicationUiCustomizationTab.tsx482 key: "placeholder",CODE
LOWweb/src/lib/webhook-preview.ts50 "email": "admin@example.com",CODE
LOWobject/syncer_googleworkspace_test.go33 FullName: "John Doe",CODE
LOWobject/syncer_googleworkspace_test.go55 if originalUser.DisplayName != "John Doe" {CODE
LOWobject/syncer_googleworkspace_test.go56 t.Errorf("Expected DisplayName to be 'John Doe', got '%s'", originalUser.DisplayName)CODE
LOWobject/syncer_googleworkspace_test.go79 FullName: "Jane Doe",CODE
LOWobject/syncer_googleworkspace_test.go166 Host: "admin@example.com",CODE
LOWobject/application.go60 Placeholder string `json:"placeholder"`CODE
LOWobject/application.go71 Placeholder string `json:"placeholder"`CODE
LOWobject/init.go185 Email: "admin@example.com",CODE
LOWobject/syncer_scim_test.go35 DisplayName: "John Doe",CODE
LOWobject/syncer_scim_test.go39 Formatted: "John Doe",CODE
LOWobject/syncer_scim_test.go54 StreetAddress: "123 Main St",CODE
LOWobject/syncer_scim_test.go78 if originalUser.DisplayName != "John Doe" {CODE
LOWobject/syncer_scim_test.go79 t.Errorf("Expected DisplayName to be 'John Doe', got '%s'", originalUser.DisplayName)CODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMobject/device_auth_store.go92// ── in-memory implementation (default) ──────────────────────────────────────COMMENT
MEDIUMobject/device_auth_store.go104// ── Redis implementation ─────────────────────────────────────────────────────COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWobject/saml_sp.go256 // block.Bytes are DER encoded so the following code block should happily accept itCOMMENT