AI Slop Code Risk Monitor

suitenumerique/docs

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

Docs is an open-source text editor: web-native, made for real-time collaboration, cleanly structured documents and sub-documents with full ownership of your data. Built to scale with Django and React.

12.1 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for suitenumerique/docs, a Python project with 16,960 GitHub stars. SynthScan examined 182,126 lines of code across 1048 source files, recording 1740 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 12.1 (Moderate 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.

12.1
Adjusted Signal
12.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
17.0K
Stars
Python
Language
182.1K
Lines of Code
1.0K
Files
1.7K
Pattern Hits
2026-10-31
Scan Date
0.10
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 35.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 5.6/100 · LOW

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

Agent Over-Engineering Ratio 38.2/100 · MEDIUM

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

PR Review Velocity Impact 47.6/100 · MEDIUM

Which changes need focused human review? 1740 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 9HIGH 91MEDIUM 38LOW 1602

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 1740 distinct pattern matches across 21 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.

Hyper-Verbose Identifiers1429 hits · 1348 pts
SeverityFileLineSnippetContext
LOWdocumentation/resource_server.md83 def create_document_from_markdown(self, request):CODE
LOW…press/src/features/auth/api/useUserReconciliations.tsx34export function useUserReconciliationsQuery(CODE
LOW…end/apps/impress/src/features/docs/doc-export/utils.ts53export function collectInterlinkingDocIds(blocks: unknown[]): string[] {CODE
LOW…end/apps/impress/src/features/docs/doc-export/utils.ts346export function odtRegisterParagraphStyleForBlock(CODE
LOW…ps/impress/src/features/docs/doc-export/utils_print.ts165function createPrintOnlyStyleElement() {CODE
LOW…/src/features/docs/doc-share/api/useDocInvitations.tsx69export function useDocInvitationsInfinite(params: DocInvitationsParams) {CODE
LOW…rc/features/docs/doc-share/api/useDocAccessRequest.tsx54export function useCreateDocAccessRequest(CODE
LOWsrc/backend/demo/tests/test_commands_create_demo.py19def collaboration_server_fixture():CODE
LOWsrc/backend/demo/tests/test_commands_create_demo.py39def test_commands_create_demo(collaboration_server):CODE
LOWsrc/backend/demo/tests/test_commands_create_demo.py82def test_commands_create_demo_without_collaboration_server(collaboration_server):CODE
LOWsrc/backend/demo/management/commands/create_demo.py30def random_true_with_probability(probability):CODE
LOWsrc/backend/core/signals.py45def document_access_post_save(sender, instance, created, **kwargs): # pylint: disable=unused-argumentCODE
LOWsrc/backend/core/signals.py68def document_access_post_delete(sender, instance, **kwargs): # pylint: disable=unused-argumentCODE
LOWsrc/backend/core/signals.py81def document_accesses_bulk_changed(CODE
LOWsrc/backend/core/signals.py109def invalidate_bulk_changed_caches(user_ids, removed_document_ids):CODE
LOWsrc/backend/core/models.py246 def _delete_user_shared_documents_accesses(self):CODE
LOWsrc/backend/core/models.py268 def _delete_documents_single_owner(self):CODE
LOWsrc/backend/core/models.py305 def _clear_user_created_documents(self):CODE
LOWsrc/backend/core/models.py313 def _handle_onboarding_documents_access(self):CODE
LOWsrc/backend/core/models.py348 def _duplicate_onboarding_sandbox_document(self):CODE
LOWsrc/backend/core/models.py399 def _convert_valid_invitations(self):CODE
LOWsrc/backend/core/models.py556 def process_reconciliation_request(self):CODE
LOWsrc/backend/core/models.py665 def prepare_documentaccess_reconciliation(self):CODE
LOWsrc/backend/core/models.py699 def prepare_document_favorite_reconciliation(self):CODE
LOWsrc/backend/core/models.py723 def prepare_linktrace_reconciliation(self):CODE
LOWsrc/backend/core/models.py743 def prepare_thread_reconciliation(self):CODE
LOWsrc/backend/core/models.py758 def prepare_comment_reconciliation(self):CODE
LOWsrc/backend/core/models.py773 def prepare_reaction_reconciliation(self):CODE
LOWsrc/backend/core/models.py785 def send_reconciliation_confirm_email(CODE
LOWsrc/backend/core/models.py810 def send_reconciliation_done_email(self, language=None):CODE
LOWsrc/backend/core/models.py888 def send_reconciliation_error_email(CODE
LOWsrc/backend/core/models.py994 def annotate_user_has_link_trace(self, user):CODE
LOWsrc/backend/core/models.py1128 def get_self_and_ancestors_paths(self):CODE
LOWsrc/backend/core/models.py1142 def get_nb_accesses_cache_key(self):CODE
LOWsrc/backend/core/models.py1229 def invalidate_nb_accesses_cache(self):CODE
LOWsrc/backend/core/models.py1267 def compute_ancestors_links_paths_mapping(self):CODE
LOWsrc/backend/core/models.py1294 def ancestors_link_definition(self):CODE
LOWsrc/backend/core/models.py1309 def ancestors_link_definition(self, definition):CODE
LOWsrc/backend/core/models.py1907 def send_ask_for_access_email(self, email, language=None):CODE
LOWsrc/backend/core/models.py2159 def is_notification_in_cooldown(self):CODE
LOWsrc/backend/core/malware_detection.py17def malware_detection_callback(file_path, status, error_info, **kwargs):CODE
LOWsrc/backend/core/choices.py90def get_equivalent_link_definition(ancestors_links):CODE
LOWsrc/backend/core/tasks/mail.py29def send_mention_notification_mail(mention_id):CODE
LOWsrc/backend/core/tasks/user_reconciliation.py84def user_reconciliation_csv_import_job(job_id):CODE
LOWsrc/backend/core/tasks/documents.py17def sync_service_restorations_in_cascade(document_id):CODE
LOWsrc/backend/core/tasks/access.py20def reset_service_connections_in_cascade(document_id, user_id=None, after_path=None):CODE
LOWsrc/backend/core/tasks/access.py121def reset_service_connections_on_commit(document_id, user_id=None):CODE
LOWsrc/backend/core/tasks/search.py34def batch_indexer_throttle_acquire(timeout: int = 0, atomic: bool = True):CODE
LOWsrc/backend/core/tasks/search.py54def batch_document_indexer_task(timestamp):CODE
LOWsrc/backend/core/tasks/search.py70def subtree_document_indexer_task(document_ids):CODE
LOWsrc/backend/core/tasks/search.py95def trigger_subtree_document_indexer(document_ids):CODE
LOWsrc/backend/core/tasks/search.py117def trigger_batch_document_indexer(document_id, updated_at):CODE
LOWsrc/backend/core/external_api/viewsets.py30 def _get_resource_server_actions(self, resource_name):CODE
LOW…nd/core/tests/test_api_utils_ai_user_rate_throttles.py33def test_api_utils_ai_user_rate_throttle_minute_limit(mock_time):CODE
LOW…nd/core/tests/test_api_utils_ai_user_rate_throttles.py69def test_ai_user_rate_throttle_hour_limit(mock_time):CODE
LOW…nd/core/tests/test_api_utils_ai_user_rate_throttles.py106def test_api_utils_ai_user_rate_throttle_day_limit(mock_time):CODE
LOW⚡src/backend/core/tests/test_models_document_accesses.py56def test_models_document_accesses_several_null_users():CODE
LOW⚡src/backend/core/tests/test_models_document_accesses.py62def test_models_document_accesses_user_and_team_set():CODE
LOW⚡src/backend/core/tests/test_models_document_accesses.py71def test_models_document_accesses_user_and_team_empty():CODE
LOWsrc/backend/core/tests/test_models_document_accesses.py15def test_models_document_accesses_str():CODE
1369 more matches not shown…
Cross-File Repetition72 hits · 360 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/core/tests/test_models_users.py0it should be possible to create several documents at the same time without causing any race conditions or data integritySTRING
HIGH…tests/documents/test_api_documents_create_for_owner.py0it should be possible to create several documents at the same time without causing any race conditions or data integritySTRING
HIGH…/tests/documents/test_api_documents_children_create.py0it should be possible to create several documents at the same time without causing any race conditions or data integritySTRING
HIGH…kend/core/tests/documents/test_api_documents_create.py0it should be possible to create several documents at the same time without causing any race conditions or data integritySTRING
HIGH…l_api/test_external_api_documents_attachment_upload.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…end/core/tests/external_api/test_external_api_users.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…_api/test_external_api_documents_link_configuration.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…core/tests/external_api/test_external_api_documents.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…s/external_api/test_external_api_documents_accesses.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…external_api/test_external_api_documents_invitation.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…s/external_api/test_external_api_documents_favorite.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…e/tests/external_api/test_external_api_documents_ai.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…external_api/test_external_api_documents_media_auth.py0tests for the resource server api for documents accesses. not testing external api endpoints that are already tested in STRING
HIGH…end/core/tests/external_api/test_external_api_users.py0by default the "favorite" action is not permitted on the external api. delete to the endpoint must return 403.STRING
HIGH…core/tests/external_api/test_external_api_documents.py0by default the "favorite" action is not permitted on the external api. delete to the endpoint must return 403.STRING
HIGH…s/external_api/test_external_api_documents_favorite.py0by default the "favorite" action is not permitted on the external api. delete to the endpoint must return 403.STRING
HIGH…tests/documents/test_api_documents_create_for_owner.py0tests for documents api endpoint in impress's core app: children createSTRING
HIGH…kend/core/tests/documents/test_api_documents_create.py0tests for documents api endpoint in impress's core app: children createSTRING
HIGH…/tests/documents/test_api_documents_children_create.py0tests for documents api endpoint in impress's core app: children createSTRING
HIGH…ore/tests/documents/test_api_documents_ai_translate.py0anonymous users should not be able to request ai transform if the link reach and role don't allow it.STRING
HIGH…nd/core/tests/documents/test_api_documents_ai_proxy.py0anonymous users should not be able to request ai transform if the link reach and role don't allow it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_transform.py0anonymous users should not be able to request ai transform if the link reach and role don't allow it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_translate.py0authenticated users should be able to request ai proxy to a document if the link reach and role permit it.STRING
HIGH…nd/core/tests/documents/test_api_documents_ai_proxy.py0authenticated users should be able to request ai proxy to a document if the link reach and role permit it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_transform.py0authenticated users should be able to request ai proxy to a document if the link reach and role permit it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_translate.py0users who are not related to a document can't request ai transform if the link reach and role don't allow it.STRING
HIGH…nd/core/tests/documents/test_api_documents_ai_proxy.py0users who are not related to a document can't request ai transform if the link reach and role don't allow it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_transform.py0users who are not related to a document can't request ai transform if the link reach and role don't allow it.STRING
HIGH…ore/tests/documents/test_api_documents_ai_translate.py0throttling per document should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utSTRING
HIGH…nd/core/tests/documents/test_api_documents_ai_proxy.py0throttling per document should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utSTRING
HIGH…ore/tests/documents/test_api_documents_ai_transform.py0throttling per document should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utSTRING
HIGH…ore/tests/documents/test_api_documents_ai_translate.py0throttling per user should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utils_STRING
HIGH…nd/core/tests/documents/test_api_documents_ai_proxy.py0throttling per user should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utils_STRING
HIGH…ore/tests/documents/test_api_documents_ai_transform.py0throttling per user should be triggered on the ai transform endpoint. for full throttle class test see: `test_api_utils_STRING
HIGH…re/tests/documents/test_api_documents_children_list.py0tests for documents api endpoint in impress's core app: listSTRING
HIGH…ackend/core/tests/documents/test_api_documents_list.py0tests for documents api endpoint in impress's core app: listSTRING
HIGH…nd/core/tests/documents/test_api_documents_trashbin.py0tests for documents api endpoint in impress's core app: listSTRING
HIGH…ore/tests/documents/test_api_documents_list_filters.py0tests for documents api endpoint in impress's core app: listSTRING
HIGH…re/tests/documents/test_api_documents_children_list.py0anonymous users should be allowed to retrieve the descendants of a public document.STRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0anonymous users should be allowed to retrieve the descendants of a public document.STRING
HIGH…sts/documents/test_api_documents_search_descendants.py0anonymous users should be allowed to retrieve the descendants of a public document.STRING
HIGH…re/tests/documents/test_api_documents_children_list.py0anonymous users should not be able to retrieve a document that is not public.STRING
HIGH…sts/documents/test_api_documents_search_descendants.py0anonymous users should not be able to retrieve a document that is not public.STRING
HIGH…nd/core/tests/documents/test_api_documents_retrieve.py0anonymous users should not be able to retrieve a document that is not public.STRING
HIGH…re/tests/documents/test_api_documents_children_list.py0authenticated users should be able to retrieve the descendants of a public/authenticated document to which they are not STRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0authenticated users should be able to retrieve the descendants of a public/authenticated document to which they are not STRING
HIGH…sts/documents/test_api_documents_search_descendants.py0authenticated users should be able to retrieve the descendants of a public/authenticated document to which they are not STRING
HIGH…re/tests/documents/test_api_documents_children_list.py0authenticated users should be allowed to retrieve the descendants of a document who has a public or authenticated ancestSTRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0authenticated users should be allowed to retrieve the descendants of a document who has a public or authenticated ancestSTRING
HIGH…sts/documents/test_api_documents_search_descendants.py0authenticated users should be allowed to retrieve the descendants of a document who has a public or authenticated ancestSTRING
HIGH…re/tests/documents/test_api_documents_children_list.py0authenticated users should not be allowed to retrieve a document that is restricted and to which they are not related.STRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0authenticated users should not be allowed to retrieve a document that is restricted and to which they are not related.STRING
HIGH…sts/documents/test_api_documents_search_descendants.py0authenticated users should not be allowed to retrieve a document that is restricted and to which they are not related.STRING
HIGH…nd/core/tests/documents/test_api_documents_retrieve.py0authenticated users should not be allowed to retrieve a document that is restricted and to which they are not related.STRING
HIGH…re/tests/documents/test_api_documents_children_list.py0authenticated users should be allowed to retrieve a restricted document to which they are related via a team whatever thSTRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0authenticated users should be allowed to retrieve a restricted document to which they are related via a team whatever thSTRING
HIGH…sts/documents/test_api_documents_search_descendants.py0authenticated users should be allowed to retrieve a restricted document to which they are related via a team whatever thSTRING
HIGH…nd/core/tests/documents/test_api_documents_retrieve.py0authenticated users should be allowed to retrieve a restricted document to which they are related via a team whatever thSTRING
HIGH…re/tests/documents/test_api_documents_children_list.py0authenticated users should be allowed to retrieve a document if they are related to one of its ancestors whatever the roSTRING
HIGH…ackend/core/tests/documents/test_api_documents_tree.py0authenticated users should be allowed to retrieve a document if they are related to one of its ancestors whatever the roSTRING
12 more matches not shown…
Self-Referential Comments31 hits · 93 pts
SeverityFileLineSnippetContext
MEDIUM…files/docker-entrypoint-initdb.d/01_create_app_user.sh4# Create a non-superuser for the application to test migrations.COMMENT
MEDIUM.github/workflows/crowdin_download.yml68 # Create a new PRCOMMENT
MEDIUM…/backend/core/tests/test_models_user_reconciliation.py359 # Create a reconciliation entry where only one email has been checkedCOMMENT
MEDIUM…core/tests/external_api/test_external_api_documents.py163 # Create a parent document firstCOMMENT
MEDIUM…core/tests/external_api/test_external_api_documents.py204 # Create a parent document firstCOMMENT
MEDIUM…core/tests/external_api/test_external_api_documents.py243 # Create a parent document firstCOMMENT
MEDIUM…core/tests/external_api/test_external_api_documents.py282 # Create a fake Markdown fileCOMMENT
MEDIUM…core/tests/external_api/test_external_api_documents.py368 # Create a document the user should NOT have access toCOMMENT
MEDIUMsrc/backend/core/tests/commands/test_clean_document.py46 # Create a root document with subdocumentsCOMMENT
MEDIUMsrc/backend/core/tests/commands/test_clean_document.py313 # Create a root document with subdocumentsCOMMENT
MEDIUM…/core/tests/documents/test_api_document_invitations.py547 # Create a new invitation to the same document with the exact same email addressCOMMENT
MEDIUM…nd/core/tests/documents/test_api_documents_trashbin.py378 # Create a new user with no owner access to any documentCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py30 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py64 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py121 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py163 # Create a fake Markdown fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py223 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py272 # Create an empty fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py307 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py346 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py521 # Create a fake DOCX fileCOMMENT
MEDIUM…tests/documents/test_api_documents_create_with_file.py572 # Create a file with Unicode characters in the nameCOMMENT
MEDIUM…ests/documents/test_api_documents_formatted_content.py104 # Create an access as a reader. This should unlock the access.COMMENT
MEDIUM…backend/core/tests/documents/test_api_documents_all.py47 # Create a document tree: parent -> child -> grandchildCOMMENT
MEDIUM…backend/core/tests/documents/test_api_documents_all.py406 # Create a document treeCOMMENT
MEDIUM…d/core/tests/documents/test_api_documents_duplicate.py1000 # Create a complex tree:COMMENT
MEDIUM…/tests/documents/test_api_documents_children_create.py336 # Create a fake DOCX fileCOMMENT
MEDIUM…/tests/documents/test_api_documents_children_create.py386 # Create a fake DOCX fileCOMMENT
MEDIUM…ests/documents/test_api_documents_attachment_upload.py293 # Create a temporary file larger than the allowed sizeCOMMENT
MEDIUM…ackend/core/tests/documents/test_api_documents_move.py495 # Create a hierarchy: parent -> child -> grandchildCOMMENT
MEDIUMsrc/backend/core/api/viewsets.py1198 # Create a child documentCOMMENT
Hallucination Indicators9 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALsrc/backend/core/validators.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/core/tasks/user_reconciliation.py8from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/core/tests/test_models_document_accesses.py6from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/core/tests/test_models_documents.py14from django.core.exceptions import ValidationErrorCODE
CRITICAL…d/core/tests/test_utils_create_tree_node_with_retry.py5from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/core/tests/test_models_users.py10from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/core/utils/treebeard.py7from django.core.exceptions import ValidationError as DjangoValidationErrorCODE
CRITICALsrc/backend/core/api/viewsets.py18from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/backend/core/api/__init__.py4from django.core.exceptions import ValidationErrorCODE
Cross-Language Confusion15 hits · 72 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/demo/management/commands/create_demo.py222 queue.push(CODE
HIGHsrc/backend/demo/management/commands/create_demo.py258 queue.push(document)CODE
HIGHsrc/backend/demo/management/commands/create_demo.py275 queue.push(CODE
HIGHsrc/backend/demo/management/commands/create_demo.py284 queue.push(CODE
HIGHsrc/backend/demo/management/commands/create_demo.py307 queue.push(CODE
HIGHsrc/backend/core/models.py2161 (same document and thread, the document body when the thread is null) withinSTRING
HIGHsrc/backend/core/tests/test_services_search_indexers.py519 indexer.push(sample_data)CODE
HIGH…backend/core/management/commands/generate_volumetry.py291 self.docs_queue.push(CODE
HIGH…backend/core/management/commands/generate_volumetry.py309 self.docs_queue.push(worst_user)CODE
HIGH…backend/core/management/commands/generate_volumetry.py329 self.docs_queue.push(CODE
HIGH…backend/core/management/commands/generate_volumetry.py373 self.rel_queue.push(CODE
HIGH…backend/core/management/commands/generate_volumetry.py382 self.rel_queue.push(CODE
HIGH…backend/core/management/commands/generate_volumetry.py411 self.rel_queue.push(CODE
HIGH…backend/core/management/commands/generate_volumetry.py438 self.rel_queue.push(model(user_id=uid, document_id=doc_id))CODE
HIGHsrc/backend/core/services/search_indexers.py184 self.push(serialized_batch)CODE
Over-Commented Block65 hits · 60 pts
SeverityFileLineSnippetContext
LOWdocumentation/installation/compose.md241 ...COMMENT
LOWdocumentation/examples/compose/compose.yaml121COMMENT
LOWdocumentation/examples/compose/minio/compose.yaml21# networks:COMMENT
LOWdocumentation/examples/compose/keycloak/README.md41 # Uncomment and set your values if using our nginx proxy exampleCOMMENT
LOWdocumentation/examples/compose/keycloak/compose.yaml21 # environment:COMMENT
LOWdocumentation/assets/diagrams/render.sh1#!/usr/bin/env bashCOMMENT
LOWbin/generate-jwt-private-key.sh1#!/usr/bin/env bashCOMMENT
LOW…tures/docs/doc-presenter/components/PresenterSlide.tsx21 slide: PresenterSlideData;COMMENT
LOWsrc/yhub-server/__tests__/api.spec.ts1// src/api.ts — the custom REST endpoints. What is covered here isCOMMENT
LOWsrc/yhub-server/__tests__/server.spec.ts1// server.ts — the composition root: it builds the persistence plugins and wiresCOMMENT
LOWsrc/yhub-server/src/migration.ts1// Migration off the legacy Django document store (see README.md).COMMENT
LOWsrc/yhub-server/src/migration.ts41// may sit on another provider with credentials of its own, and the backend'sCOMMENT
LOWsrc/yhub-server/src/migration.ts161// Both keys are derived from the prefix yhub itself resolved, so they cannotCOMMENT
LOWsrc/yhub-server/src/migration.ts581// 'ok' — history storedCOMMENT
LOWsrc/yhub-server/src/api.ts41// the stream, which is what makes it an answer about the content rather thanCOMMENT
LOWsrc/yhub-server/src/api.ts261 }),COMMENT
LOWsrc/yhub-server/src/api.ts361 // Appended as posted, which is what yhub's PATCH does since 0.9.1: theCOMMENT
LOWsrc/yhub-server/src/api.ts441 return jsonResponse(400, { error: 'Unknown branch' });COMMENT
LOWsrc/yhub-server/src/config.ts41export const REDIS_PREFIX = process.env.REDIS_PREFIX || 'yhub';COMMENT
LOWsrc/yhub-server/src/config.ts61// The name of the backend's session cookie (`SESSION_COOKIE_NAME` on theCOMMENT
LOWsrc/yhub-server/src/config.ts81// state, no ordering between them — so one process can run both (the default)COMMENT
LOWsrc/yhub-server/src/config.ts101export const TASK_CONCURRENCY = intEnv('YHUB_TASK_CONCURRENCY', 5, 1);COMMENT
LOWsrc/yhub-server/src/config.ts121// belongs to.COMMENT
LOWsrc/yhub-server/src/config.ts141// early is more useful than holding the connection until kubelet times out.COMMENT
LOWsrc/yhub-server/src/config.ts161// freshly-converted snapshot (typically KBs); anything bigger belongs on theCOMMENT
LOWsrc/yhub-server/src/config.ts181// on the first open of a legacy document, its seed from S3 (10s on its own),COMMENT
LOWsrc/yhub-server/src/config.ts201export const ACCESS_CACHE_TTL_MS = intEnv('YHUB_ACCESS_CACHE_TTL_MS', 0, 0);COMMENT
LOWsrc/yhub-server/src/server.ts81 typeof (err as { code: unknown }).code === 'string'COMMENT
LOWsrc/yhub-server/src/server.ts181 if (payload.admin !== true) {COMMENT
LOWsrc/yhub-server/src/server.ts421 // discovers the bucket's region when it is not given one; passed onlyCOMMENT
LOWsrc/backend/core/api/viewsets.py2221 key = f"{url_params['pk']:s}/{url_params['attachment']:s}"COMMENT
LOWsrc/backend/impress/settings.py1301 # configuration below installs it and turns this on. Deliberately not readCOMMENT
LOWsrc/backend/impress/settings.py1681 # SecurityCOMMENT
LOWsrc/helm/impress/values.yaml1# Default values for impress.COMMENT
LOWsrc/helm/impress/values.yaml61 path: /collaboration/ws/COMMENT
LOWsrc/helm/impress/values.yaml81 ##COMMENT
LOWsrc/helm/impress/values.yaml121 ## The routes yhub serves to browsers, guarded by the same documentCOMMENT
LOWsrc/helm/impress/values.yaml161COMMENT
LOWsrc/helm/impress/values.yaml201 ## @param ingressMetrics.tls.secretName Secret name for TLS configCOMMENT
LOWsrc/helm/impress/values.yaml221## of the component, read from the Secret its PROMETHEUS_API_KEY comes fromCOMMENT
LOWsrc/helm/impress/values.yaml361 ## @skip backend.envFrom List of environment variables taken from Secrets or configMaps, common to backend and celery COMMENT
LOWsrc/helm/impress/values.yaml461COMMENT
LOWsrc/helm/impress/values.yaml481 ## @extra backend.probes.startup.initialDelaySeconds [nullable] Configure initial delay for backend startup probeCOMMENT
LOWsrc/helm/impress/values.yaml541 ## @param backend.celery.resources Resource requirements for the celery containerCOMMENT
LOWsrc/helm/impress/values.yaml641 <<: *commonEnvVarsCOMMENT
LOWsrc/helm/impress/values.yaml661 service:COMMENT
LOWsrc/helm/impress/values.yaml841 ## @extra yProvider.envVars.FROM_CONFIGMAP.configMapKeyRef.name Name of a ConfigMap when configuring env vars from a CCOMMENT
LOWsrc/helm/impress/values.yaml861 dpAnnotations: {}COMMENT
LOWsrc/helm/impress/values.yaml881 ## @extra yProvider.probes.readiness.path Configure path for yProvider HTTP readiness probeCOMMENT
LOWsrc/helm/impress/values.yaml921 pdb:COMMENT
LOWsrc/helm/impress/values.yaml961 ## @param jwtKeys.keySize Size, in bits, of the generated RSA keysCOMMENT
LOWsrc/helm/impress/values.yaml981COMMENT
LOWsrc/helm/impress/values.yaml1001 ## @param jwtKeys.job.securityContext.seccompProfile.type Seccomp profile type for the job containersCOMMENT
LOWsrc/helm/impress/values.yaml1041 env: []COMMENT
LOWsrc/helm/impress/values.yaml1061## bucket it reads old documents *out of*. Not the backend's `AWS_S3_*`,COMMENT
LOWsrc/helm/impress/values.yaml1081 command: []COMMENT
LOWsrc/helm/impress/values.yaml1101 path: /metrics/yhubCOMMENT
LOWsrc/helm/impress/values.yaml1121 ## into postgres. One process runs both by default. Enabling this splits themCOMMENT
LOWsrc/helm/impress/values.yaml1181 ## @extra yhub.envVars.REDIS Required, redis/valkey url holding the live document state (e.g. redis://valkey:6379/0)COMMENT
LOWsrc/helm/impress/values.yaml1201 ## @extra yhub.envVars.LEGACY_S3_BUCKET_NAME Name of the legacy Django media bucket (default: impress-media-storage)COMMENT
5 more matches not shown…
Structural Annotation Overuse30 hits · 56 pts
SeverityFileLineSnippetContext
LOW⚡documentation/installation/scalingo.md34## Step 1: Create Your AppCOMMENT
LOW⚡documentation/installation/scalingo.md38## Step 2: Provision AddonsCOMMENT
LOW⚡documentation/installation/scalingo.md46## Step 3: Configure Environment VariablesCOMMENT
LOWdocumentation/installation/scalingo.md153## Step 4: DeployCOMMENT
LOWdocumentation/installation/scalingo.md169## Step 5: Create superuserCOMMENT
LOWdocumentation/installation/compose.md50## Step 1: Prepare your working environment:COMMENT
LOWdocumentation/installation/compose.md68## Step 2: ConfigurationCOMMENT
LOWdocumentation/installation/compose.md228## Step 3: Reverse proxy and SSL/TLSCOMMENT
LOWdocumentation/installation/compose.md257## Step 4: Create the schema of the collaboration serverCOMMENT
LOWdocumentation/installation/compose.md272## Step 5: Start DocsCOMMENT
LOWdocumentation/installation/compose.md282## Step 6: Run the database migration and create Django admin userCOMMENT
LOW⚡documentation/installation/compose.md301### Step 1: Edit the images tag with the desired versionCOMMENT
LOW⚡documentation/installation/compose.md303### Step 2: Pull the imagesCOMMENT
LOW⚡documentation/installation/compose.md309### Step 3: Restart your containersCOMMENT
LOW⚡documentation/installation/compose.md315### Step 4: Run the database migrationsCOMMENT
LOWdocumentation/examples/compose/minio/README.md8### Step 1: Prepare your working environment:COMMENT
LOWdocumentation/examples/compose/minio/README.md27### Step 3: Expose MinIO instanceCOMMENT
LOWdocumentation/examples/compose/minio/README.md71### Step 4: Start the serviceCOMMENT
LOWdocumentation/examples/compose/minio/README.md85### Step 1: Configure `mc` to connect to your MinIO Server with your root userCOMMENT
LOWdocumentation/examples/compose/minio/README.md93### Step 2: Create a new bucket with versioning enabledCOMMENT
LOW⚡documentation/examples/compose/nginx-proxy/README.md12### Step 1: Prepare your working environment:COMMENT
LOW⚡documentation/examples/compose/nginx-proxy/README.md19### Step 2: Edit `DEFAULT_EMAIL` in the compose file.COMMENT
LOW⚡documentation/examples/compose/nginx-proxy/README.md23### Step 3: Create docker networkCOMMENT
LOW⚡documentation/examples/compose/nginx-proxy/README.md31### Step 4: Start serviceCOMMENT
LOWdocumentation/examples/compose/keycloak/README.md8### Step 1: Prepare your working environment:COMMENT
LOWdocumentation/examples/compose/keycloak/README.md27### Step 3: Expose keycloak instance on httpsCOMMENT
LOW⚡documentation/examples/compose/keycloak/README.md58### Step 4: Start the serviceCOMMENT
LOW⚡documentation/examples/compose/keycloak/README.md68### Step 1: Create a New RealmCOMMENT
LOW⚡documentation/examples/compose/keycloak/README.md75#### Step 2: Create a New ClientCOMMENT
LOW⚡documentation/examples/compose/keycloak/README.md85#### Step 3: Get Client CredentialsCOMMENT
Fake / Example Data35 hits · 43 pts
SeverityFileLineSnippetContext
LOW…press/src/features/service-worker/plugins/ApiPlugin.ts239 creator: 'dummy-id',CODE
LOW…tend/apps/e2e/__tests__/app-impress/doc-header.spec.ts57 const editor = await writeInEditor({ page, text: 'Lorem ipsum' });CODE
LOW…tend/apps/e2e/__tests__/app-impress/doc-header.spec.ts61 await writeInEditor({ page, text: 'Lorem ipsum 2' });CODE
LOW…ontend/apps/e2e/__tests__/app-impress/doc-grid.spec.ts40 full_name: 'John Doe',CODE
LOW…tend/apps/e2e/__tests__/app-impress/doc-import.spec.ts59 name: 'Lorem Ipsum import Document',CODE
LOW⚡…d/apps/e2e/__tests__/app-impress/assets/test_import.md3# Lorem Ipsum import DocumentCOMMENT
LOW⚡…d/apps/e2e/__tests__/app-impress/assets/test_import.md7Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt, nisl nisl aliquamCODE
LOW⚡…d/apps/e2e/__tests__/app-impress/assets/test_import.md7Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt, nisl nisl aliquamCODE
LOW⚡…d/apps/e2e/__tests__/app-impress/assets/test_import.md11* **Bold text**: Lorem ipsum dolor sit amet.COMMENT
LOW⚡…d/apps/e2e/__tests__/app-impress/assets/test_import.md11* **Bold text**: Lorem ipsum dolor sit amet.COMMENT
LOW…d/apps/e2e/__tests__/app-impress/assets/test_import.md39> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt.CODE
LOW…d/apps/e2e/__tests__/app-impress/assets/test_import.md39> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt.CODE
LOW…d/apps/e2e/__tests__/app-impress/assets/test_import.md60Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt, nisl nisl aliquamCODE
LOW…d/apps/e2e/__tests__/app-impress/assets/test_import.md60Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl eget ultricies tincidunt, nisl nisl aliquamCODE
LOW⚡…/frontend/servers/y-provider/__tests__/convert.test.ts29const expectedMarkdown = '# Example document\n\nLorem ipsum dolor sit amet.';CODE
LOW⚡…/frontend/servers/y-provider/__tests__/convert.test.ts29const expectedMarkdown = '# Example document\n\nLorem ipsum dolor sit amet.';CODE
LOW⚡…/frontend/servers/y-provider/__tests__/convert.test.ts31 '<h1>Example document</h1><p>Lorem ipsum dolor sit amet.</p>';CODE
LOW⚡…/frontend/servers/y-provider/__tests__/convert.test.ts31 '<h1>Example document</h1><p>Lorem ipsum dolor sit amet.</p>';CODE
LOW…/frontend/servers/y-provider/__tests__/convert.test.ts57 text: 'Lorem ipsum dolor sit amet.',CODE
LOW…/frontend/servers/y-provider/__tests__/convert.test.ts57 text: 'Lorem ipsum dolor sit amet.',CODE
LOW…kend/core/tests/test_services_find_document_indexer.py480 token = "fake-token"CODE
LOW⚡src/backend/core/tests/test_api_users.py392 factories.UserFactory(email="john.doe@example.com", full_name="John Doe")CODE
LOWsrc/backend/core/tests/test_api_users.py53 user = factories.UserFactory(email="user@example.com", full_name="Example User")CODE
LOWsrc/backend/core/tests/test_api_users.py88 user = factories.UserFactory(email="user@example.com", full_name="Example User")CODE
LOWsrc/backend/core/tests/test_api_users.py128 user = factories.UserFactory(email="user@example.com", full_name="Example User")CODE
LOWsrc/backend/core/tests/test_api_users.py173 user = factories.UserFactory(email="user@example.com", full_name="Example User")CODE
LOWsrc/backend/core/tests/test_api_users.py283 user = factories.UserFactory(email="user@example.com")CODE
LOWsrc/backend/core/tests/test_api_users.py421 user = factories.UserFactory(email="user@example.com", full_name="Example User")CODE
LOW⚡…d/core/tests/serializers/test_user_light_serializer.py14 email="test@test.com",CODE
LOW⚡…d/core/tests/serializers/test_user_light_serializer.py15 full_name="John Doe",CODE
LOW⚡…d/core/tests/serializers/test_user_light_serializer.py20 assert serializer.data["full_name"] == "John Doe"CODE
LOWsrc/backend/core/tests/authentication/test_backends.py271 user = UserFactory(full_name="John Doe", short_name="John")CODE
LOWsrc/backend/core/tests/authentication/test_backends.py310 full_name="John Doe", short_name="John", email="john.doe@example.com"CODE
LOWsrc/backend/core/tests/authentication/test_backends.py352 full_name="John Doe", short_name="John", email="john.doe@example.com"CODE
LOWsrc/backend/core/tests/authentication/test_backends.py423 assert user.full_name == "John Doe"CODE
Modern Structural Boilerplate13 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/backend/conftest.py41logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/metrics.py32logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/malware_detection.py13logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/tasks/user_reconciliation.py18logger = logging.getLogger(__name__)CODE
LOW⚡src/backend/core/utils/users.py12logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/utils/treebeard.py10logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/api/viewsets.py103logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/authentication/backends.py20logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/services/yhub_services.py41logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/services/search_indexers.py22logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/services/jwt_services.py18logger = logging.getLogger(__name__)CODE
LOWsrc/backend/core/services/converter_services.py14logger = logging.getLogger(__name__)CODE
LOWsrc/backend/impress/__init__.py5__all__ = ["celery_app"]CODE
Excessive Try-Catch Wrapping10 hits · 11 pts
SeverityFileLineSnippetContext
LOWsrc/backend/conftest.py113 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/backend/conftest.py158 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/backend/core/metrics.py121 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWsrc/backend/core/metrics.py222 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWsrc/backend/core/management/commands/index.py44 except Exception as err:CODE
LOW…agement/commands/update_files_content_type_metadata.py83 except Exception as exc: # noqaCODE
LOWsrc/backend/core/api/viewsets.py1721 except Exception:CODE
LOWsrc/backend/core/api/serializers.py325 except Exception:CODE
LOWsrc/backend/core/services/ai_services/blocknote.py74 except Exception as exc: # pylint: disable=broad-except #noqa: BLE001CODE
MEDIUMsrc/backend/core/services/ai_services/blocknote.py70def run_async_gen():CODE
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWsrc/backend/core/models.py2295 # Check if an identity already exists for the provided emailCOMMENT
LOWsrc/backend/core/external_api/permissions.py29 # Check if the user is authenticatedCOMMENT
LOW…ackend/core/tests/documents/test_api_documents_list.py424 # Check if the "is_favorite" annotation is correctly set for the favorited documentsCOMMENT
LOWsrc/backend/core/api/viewsets.py2262 # Check if the attachment is ready. Use the process-global S3 clientCOMMENT
LOWsrc/backend/core/api/viewsets.py2307 # Check if the attachment is readyCOMMENT
LOWsrc/backend/core/api/permissions.py84 # Check if resource_id is passed in the contextCOMMENT
LOWsrc/backend/core/api/permissions.py92 # Check if the user has access to manage invitations (Owner/Admin roles)COMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/core/api/permissions.py136except KeyError:CODE
HIGHsrc/backend/core/services/jwt_services.py162except KeyError:CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…nd/core/tests/test_services_converter_orchestration.py31 # Verify the orchestrationCOMMENT
MEDIUMsrc/backend/impress/settings.py1042 # Y provider microserviceCOMMENT
MEDIUMsrc/backend/impress/settings.py1052 # DocSpec API microserviceCOMMENT
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…core/tests/external_api/test_external_api_documents.py326CODE
LOW…d/core/tests/documents/test_api_documents_abilities.py332CODE
LOW…/core/tests/documents/test_api_document_accesses_me.py351CODE
LOW…agement/commands/update_files_content_type_metadata.py19CODE
LOWsrc/backend/core/api/viewsets.py1494CODE
LOWsrc/backend/core/api/viewsets.py2492CODE
LOWsrc/backend/core/api/__init__.py12CODE
LOWsrc/backend/core/services/ai_services/blocknote.py134CODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…kend/core/tests/documents/test_api_documents_update.py343# =============================================================================COMMENT
MEDIUM…kend/core/tests/documents/test_api_documents_update.py345# =============================================================================COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md170Remember that for your contributions to go through the CI, your commits have to be signed off with `git commit --signofCODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/backend/core/api/viewsets.py464 DocumentViewSet API. This view set provides CRUD operations and additional actions for managing documents. STRING
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWgitlint/gitlint_emoji.py5CODE
LOWsrc/backend/core/apps.py20CODE
LOW…e/tests/external_api/test_external_api_documents_ai.py18CODE
LOWsrc/backend/impress/__init__.py3CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/backend/core/tests/test_services_ai_services.py274CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…apps/impress/src/features/help/components/HelpMenu.tsx44 * The onboarding can be disable, so we need to check if it's enabled before displaying the help menu.COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/loadtest/dashboards/generate.py12CODE