Developer-friendly asynchrony for Django
This report summarizes scanner evidence for django/channels, a Python project with 6,363 GitHub stars. SynthScan examined 6,519 lines of code across 69 source files, recording 66 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 14.4 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 55 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 45 finding(s).
Which changes need focused human review? 66 finding(s).
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.
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.
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.
The scanner identified 66 distinct pattern matches across 8 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_inmemorychannel.py | 74 | async def test_process_local_send_receive(channel_layer): | CODE |
| LOW | tests/test_layers.py | 68 | def test_backend_import_error_not_hidden(self): | CODE |
| LOW | tests/test_layers.py | 108 | def test_channel_and_group_name_validation(method, channel_name, expected_valid): | CODE |
| LOW | tests/test_layers.py | 122 | def test_group_name_length_error_message(name): | CODE |
| LOW | tests/test_layers.py | 140 | def test_channel_name_length_error_message(name): | CODE |
| LOW | tests/test_layers.py | 152 | def test_deprecated_valid_channel_name(): | CODE |
| LOW | tests/test_layers.py | 169 | def test_deprecated_valid_group_name(): | CODE |
| LOW | tests/test_generic_http.py | 95 | async def test_async_http_consumer_future(): | CODE |
| LOW | tests/test_generic_http.py | 131 | def receive_awaitable_callable(): | CODE |
| LOW | tests/test_routing.py | 22 | async def test_protocol_type_router(): | CODE |
| LOW | tests/test_routing.py | 184 | async def test_url_router_nesting_path(): | CODE |
| LOW | tests/test_http.py | 88 | async def test_session_samesite_invalid(samesite_invalid): | CODE |
| LOW | tests/test_http.py | 174 | async def test_session_save_update_error(): | CODE |
| LOW | tests/test_generic_websocket.py | 59 | async def test_multiple_websocket_consumers_with_sessions(): | CODE |
| LOW | tests/test_generic_websocket.py | 100 | async def test_websocket_consumer_subprotocol(): | CODE |
| LOW | tests/test_generic_websocket.py | 123 | async def test_websocket_consumer_groups(): | CODE |
| LOW | tests/test_generic_websocket.py | 159 | async def test_async_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 201 | async def test_async_websocket_consumer_subprotocol(): | CODE |
| LOW | tests/test_generic_websocket.py | 224 | async def test_async_websocket_consumer_groups(): | CODE |
| LOW | tests/test_generic_websocket.py | 261 | async def test_async_websocket_consumer_specific_channel_layer(): | CODE |
| LOW | tests/test_generic_websocket.py | 299 | async def test_json_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 332 | async def test_async_json_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 365 | async def test_block_underscored_type_function_call(): | CODE |
| LOW | tests/test_generic_websocket.py | 401 | async def test_block_leading_dot_type_function_call(): | CODE |
| LOW | tests/test_generic_websocket.py | 492 | async def test_websocket_receive_with_none_text(): | CODE |
| LOW | tests/test_testing.py | 79 | async def test_websocket_communicator(): | CODE |
| LOW | tests/test_testing.py | 106 | async def test_websocket_incorrect_read_json(): | CODE |
| LOW | tests/test_testing.py | 125 | async def test_websocket_application(): | CODE |
| LOW | tests/security/test_auth.py | 99 | async def test_login_no_session_in_scope(): | CODE |
| LOW | tests/security/test_auth.py | 115 | async def test_login_no_user_in_scope(session): | CODE |
| LOW | tests/security/test_auth.py | 131 | async def test_login_user_as_argument(session, user_bob): | CODE |
| LOW | tests/security/test_auth.py | 236 | async def test_logout_not_logged_in(session): | CODE |
| LOW | tests/sample_project/tests/test_selenium.py | 30 | def test_real_time_create_message(self): | CODE |
| LOW | tests/sample_project/tests/test_selenium.py | 55 | def test_real_time_delete_message(self): | CODE |
| LOW | tests/sample_project/tests/selenium_mixin.py | 127 | def wait_for_websocket_connection(self, substring="WebSocket connected", timeout=5): | CODE |
| LOW | tests/sample_project/tests/selenium_mixin.py | 144 | def wait_for_websocket_message_handled(self, timeout=5): | CODE |
| LOW | channels/layers.py | 155 | def require_valid_channel_name(self, name, receive=False): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | channels/auth.py | 40 | except KeyError: | CODE |
| HIGH | channels/consumer.py | 63 | except StopConsumer: | CODE |
| HIGH | channels/utils.py | 58 | except asyncio.CancelledError: | CODE |
| HIGH | channels/routing.py | 130 | except Resolver404: | CODE |
| HIGH | channels/layers.py | 402 | except ChannelFull: | CODE |
| HIGH | channels/security/websocket.py | 32 | except UnicodeDecodeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .readthedocs.yaml | 21 | # Build documentation in the "docs/" directory with Sphinx | COMMENT |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/conf.py | 41 | # The encoding of source files. | COMMENT |
| LOW | docs/conf.py | 61 | # for a list of supported languages. | COMMENT |
| LOW | docs/conf.py | 81 | # If true, the current module name will be prepended to all description | COMMENT |
| LOW | docs/conf.py | 101 | # The theme to use for HTML and HTML Help pages. See the documentation for | COMMENT |
| LOW | docs/conf.py | 121 | # of the sidebar. | COMMENT |
| LOW | docs/conf.py | 141 | #html_last_updated_fmt = '%b %d, %Y' | COMMENT |
| LOW | docs/conf.py | 161 | #html_split_index = False | COMMENT |
| LOW | docs/conf.py | 201 | ('index', 'Channels.tex', u'Channels Documentation', | COMMENT |
| LOW | docs/conf.py | 241 | # Grouping the document tree into Texinfo files. List of tuples | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_http.py | 188 | # Create a session as normal: | COMMENT |
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/auth.py | 21 | CODE | |
| LOW | channels/sessions.py | 169 | CODE | |
| LOW | channels/utils.py | 32 | CODE | |
| LOW | channels/routing.py | 69 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/testing/__init__.py | 1 | CODE | |
| LOW | channels/testing/__init__.py | 2 | CODE | |
| LOW | channels/testing/__init__.py | 3 | CODE | |
| LOW | channels/testing/__init__.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/sessions.py | 47 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/testing/__init__.py | 6 | __all__ = [ | CODE |