a small, expressive orm -- supports postgresql, mysql, sqlite, now with asyncio
This report summarizes scanner evidence for coleifer/peewee, a Python project with 11,992 GitHub stars. SynthScan examined 75,758 lines of code across 141 source files, recording 1351 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 23.6 (Elevated 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? 936 finding(s).
Are imports declared and package/API names verified? 165 finding(s).
Are wrappers, guards, and repeated structures necessary? 1064 finding(s).
Which changes need focused human review? 1351 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 1351 distinct pattern matches across 14 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 | peewee.py | 3212 | def _generate_name_from_fields(self, model, fields): | CODE |
| LOW | peewee.py | 3233 | def _truncate_constraint_name(constraint, maxlen=64): | CODE |
| LOW | peewee.py | 3983 | def _build_on_conflict_target(self, on_conflict): | CODE |
| LOW | peewee.py | 3999 | def _build_on_conflict_update(self, on_conflict, query): | CODE |
| LOW | peewee.py | 4428 | def unregister_window_function(self, name): | CODE |
| LOW | peewee.py | 8054 | def _populate_unsaved_relations(self, field_dict): | CODE |
| LOW | peewee.py | 8391 | def _get_model_cursor_wrapper(self, cursor): | CODE |
| LOW | peewee.py | 8506 | def _get_model_cursor_wrapper(self, cursor): | CODE |
| LOW | peewee.py | 8742 | def _get_model_cursor_wrapper(self, cursor): | CODE |
| LOW | tests/sqlcipher_ext.py | 51 | def test_good_and_bad_passphrases(self): | CODE |
| LOW | tests/sqlcipher_ext.py | 111 | def test_configuration_via_pragma(self): | CODE |
| LOW⚡ | tests/prefetch_tests.py | 727 | def test_prefetch_unrelated_model_error(self): | CODE |
| LOW⚡ | tests/prefetch_tests.py | 736 | def test_prefetch_empty_subqueries_passthrough(self): | CODE |
| LOW⚡ | tests/prefetch_tests.py | 743 | def test_prefetch_materialize_unsupported(self): | CODE |
| LOW | tests/prefetch_tests.py | 163 | def test_prefetch_reverse_with_parent_join(self): | CODE |
| LOW | tests/prefetch_tests.py | 184 | def test_prefetch_multi_depth(self): | CODE |
| LOW | tests/prefetch_tests.py | 226 | def test_prefetch_multi_depth_no_join(self): | CODE |
| LOW | tests/prefetch_tests.py | 258 | def test_prefetch_with_group_by(self): | CODE |
| LOW | tests/prefetch_tests.py | 316 | def test_prefetch_adjacency_list(self): | CODE |
| LOW | tests/prefetch_tests.py | 359 | def test_prefetch_specific_model(self): | CODE |
| LOW | tests/prefetch_tests.py | 393 | def test_multiple_foreign_keys(self): | CODE |
| LOW | tests/prefetch_tests.py | 481 | def test_prefetch_through_manytomany(self): | CODE |
| LOW | tests/prefetch_tests.py | 530 | def test_prefetch_mark_dirty_regression(self): | CODE |
| LOW | tests/prefetch_tests.py | 697 | def test_join_prefetch_multiple_fks(self): | CODE |
| LOW | tests/signals.py | 62 | def test_save_positional_force_insert(self): | CODE |
| LOW | tests/signals.py | 160 | def test_subclass_instance_receive_signals(self): | CODE |
| LOW | tests/test_utils.py | 49 | def test_assert_query_count_decorator(self): | CODE |
| LOW | tests/test_utils.py | 68 | def test_assert_query_count_ctx_mgr(self): | CODE |
| LOW | tests/pwasyncio_stress.py | 150 | async def test_connection_isolation(): | CODE |
| LOW⚡ | tests/models.py | 2069 | def test_empty_insert_lands_defaults(self): | CODE |
| LOW⚡ | tests/models.py | 2076 | def test_default_present_on_create(self): | CODE |
| LOW⚡ | tests/models.py | 2081 | def test_defaults_from_cursor(self): | CODE |
| LOW⚡ | tests/models.py | 7499 | def test_model_graph_no_refs_no_backrefs_error(self): | CODE |
| LOW⚡ | tests/models.py | 7503 | def test_metadata_table_setter_error(self): | CODE |
| LOW⚡ | tests/models.py | 7507 | def test_metadata_table_deleter_resets(self): | CODE |
| LOW⚡ | tests/models.py | 7515 | def test_get_database_instance(self): | CODE |
| LOW | tests/models.py | 132 | def test_column_field_translation(self): | CODE |
| LOW | tests/models.py | 176 | def test_insert_many_defaults_nullable(self): | CODE |
| LOW | tests/models.py | 270 | def test_bulk_create_batching(self): | CODE |
| LOW | tests/models.py | 294 | def test_bulk_create_composite_key(self): | CODE |
| LOW | tests/models.py | 385 | def test_populate_unsaved_relations(self): | CODE |
| LOW | tests/models.py | 439 | def test_bulk_update_foreign_key(self): | CODE |
| LOW | tests/models.py | 471 | def test_bulk_update_integrityerror(self): | CODE |
| LOW | tests/models.py | 513 | def test_bulk_update_apply_dbvalue(self): | CODE |
| LOW | tests/models.py | 638 | def test_model_select_get_or_none(self): | CODE |
| LOW | tests/models.py | 684 | def test_get_or_create_self_referential_fk(self): | CODE |
| LOW | tests/models.py | 692 | def test_get_or_create_defaults(self): | CODE |
| LOW | tests/models.py | 862 | def test_join_empty_intermediate_model(self): | CODE |
| LOW | tests/models.py | 891 | def test_join_empty_relations(self): | CODE |
| LOW | tests/models.py | 942 | def test_join_outer_no_related(self): | CODE |
| LOW | tests/models.py | 961 | def test_join_outer_unselected_lazy_load(self): | CODE |
| LOW | tests/models.py | 976 | def test_join_outer_selected_miss_cached(self): | CODE |
| LOW | tests/models.py | 991 | def test_join_outer_unselected_null_fk(self): | CODE |
| LOW | tests/models.py | 1000 | def test_join_outer_unselected_intermediate(self): | CODE |
| LOW | tests/models.py | 1014 | def test_join_same_model_twice(self): | CODE |
| LOW | tests/models.py | 1043 | def test_join_multi_fk_rhs_predicate(self): | CODE |
| LOW | tests/models.py | 1109 | def test_alias_query_constructors(self): | CODE |
| LOW | tests/models.py | 1127 | def test_join_expression_attribute_name(self): | CODE |
| LOW | tests/models.py | 1324 | def test_join_from_cte_to_model(self): | CODE |
| LOW | tests/models.py | 1353 | def test_subquery_emulate_window(self): | CODE |
| 748 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/prefetch_tests.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 61 | # =========================================================================== | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 63 | # =========================================================================== | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 549 | # =========================================================================== | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 551 | # =========================================================================== | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 684 | # =========================================================================== | COMMENT |
| MEDIUM | tests/prefetch_tests.py | 686 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/models.py | 7739 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/models.py | 7741 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 40 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 42 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 2857 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 2859 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 3787 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 3789 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 4803 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 4805 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 5240 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 5242 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 5839 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 5841 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 6905 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 6907 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 7043 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 7045 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 7949 | # =========================================================================== | COMMENT |
| MEDIUM | tests/models.py | 7951 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/fields.py | 802 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/fields.py | 804 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 46 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 48 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 182 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 184 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 302 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 304 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1098 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1100 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1532 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1534 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1811 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 1813 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2424 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2426 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2690 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2692 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2904 | # =========================================================================== | COMMENT |
| MEDIUM | tests/fields.py | 2906 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 11 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/manytomany.py | 13 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/manytomany.py | 43 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 45 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 383 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 385 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 562 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 564 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 672 | # =========================================================================== | COMMENT |
| MEDIUM | tests/manytomany.py | 674 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/results.py | 165 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | tests/results.py | 167 | # =========================================================================== | COMMENT |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | peewee.py | 45 | except ImportError: | CODE |
| HIGH | peewee.py | 2416 | except IndexError: | CODE |
| HIGH | peewee.py | 3091 | except self.DefaultValuesException: | CODE |
| HIGH | peewee.py | 6184 | except (TypeError, ValueError): | CODE |
| HIGH | peewee.py | 6189 | except ValueError: | CODE |
| HIGH | peewee.py | 7984 | except DoesNotExist: | CODE |
| HIGH | peewee.py | 8480 | except self.model.DoesNotExist: | CODE |
| HIGH | peewee.py | 8184 | except (TypeError, ValueError): | CODE |
| HIGH | peewee.py | 3250 | except (TypeError, ValueError): | CODE |
| HIGH | peewee.py | 8779 | except Exception: | CODE |
| HIGH | peewee.py | 2995 | except KeyError: pass | CODE |
| HIGH | tests/pwasyncio_stress.py | 82 | except ValueError: | CODE |
| HIGH | tests/models.py | 7750 | except Exception as exc: | CODE |
| HIGH | tests/transactions.py | 86 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 134 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 229 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 379 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 471 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 369 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 406 | except ValueError: | CODE |
| HIGH | tests/transactions.py | 402 | except ValueError: | CODE |
| HIGH | tests/pwasyncio.py | 1209 | except Abort: | CODE |
| HIGH | tests/pwasyncio.py | 1318 | except RuntimeError: | CODE |
| HIGH | tests/pwasyncio.py | 1831 | except ValueError: | CODE |
| HIGH | tests/pwasyncio.py | 938 | except (InterfaceError, OperationalError, ProgrammingError, | CODE |
| HIGH | tests/pwasyncio.py | 1757 | except ValueError: | CODE |
| HIGH | tests/pwasyncio.py | 2128 | except ValueError: | CODE |
| HIGH | tests/pwasyncio.py | 1744 | except ValueError: | CODE |
| HIGH | tests/pwasyncio.py | 1804 | except ValueError: | CODE |
| HIGH | tests/migrations.py | 40 | except ImportError: | CODE |
| HIGH | tests/base.py | 317 | except: | CODE |
| HIGH | tests/schema.py | 1232 | except: | CODE |
| HIGH | examples/hexastore.py | 3 | except ImportError: | CODE |
| HIGH | examples/twitter/app.py | 260 | except IntegrityError: | CODE |
| HIGH | playhouse/db_url.py | 98 | except ImportError: | CODE |
| HIGH | playhouse/db_url.py | 106 | except ImportError: | CODE |
| HIGH | playhouse/db_url.py | 115 | except ImportError: | CODE |
| HIGH | playhouse/db_url.py | 128 | except ImportError: | CODE |
| HIGH | playhouse/db_url.py | 146 | except ImportError: | CODE |
| HIGH | playhouse/db_url.py | 62 | except ValueError: | CODE |
| HIGH | playhouse/pwasyncio.py | 132 | except LookupError: | CODE |
| HIGH | playhouse/pwasyncio.py | 1104 | except Exception: | CODE |
| HIGH | playhouse/pwasyncio.py | 158 | except RuntimeError: | CODE |
| HIGH | playhouse/pwasyncio.py | 1090 | except Exception: | CODE |
| HIGH | playhouse/pwasyncio.py | 1164 | except Exception: | CODE |
| HIGH | playhouse/dataset.py | 264 | except self.model_class.DoesNotExist: | CODE |
| HIGH | playhouse/sqlite_udf.py | 168 | except: | CODE |
| HIGH | playhouse/postgres_ext.py | 20 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | peewee.py | 6449 | # stored JSON null, the same cases `== None` matches. | COMMENT |
| HIGH | peewee.py | 578 | self.push() | CODE |
| HIGH | peewee.py | 703 | self.alias_manager.push() | CODE |
| HIGH | peewee.py | 4908 | for name, null, dt, df, ft, ident in cursor.fetchall()] | CODE |
| HIGH | peewee.py | 5173 | for name, null, dt, df, ft, extra in cursor.fetchall(): | CODE |
| HIGH | peewee.py | 5180 | name, dt, null, name in pks, table, df, ft, | CODE |
| HIGH | tests/fields.py | 2043 | self.assertFalse(Photo.album.null) | CODE |
| HIGH | tests/fields.py | 2048 | self.assertTrue(Photo.alt_album.null) | CODE |
| HIGH | tests/manytomany.py | 71 | self.assertFalse(note_field.null) | CODE |
| HIGH | tests/manytomany.py | 75 | self.assertFalse(user_field.null) | CODE |
| HIGH⚡ | tests/reflection.py | 125 | self.assertFalse(relmodel.col_types.null) | CODE |
| HIGH⚡ | tests/reflection.py | 126 | self.assertTrue(relmodel.col_types_nullable.null) | CODE |
| HIGH | tests/json_field.py | 911 | L = JM.select(JM.data.length()).scalar() | CODE |
| HIGH | tests/db_tests.py | 480 | self.database.execute_sql('create table foo (data text not null)') | CODE |
| HIGH | tests/db_tests.py | 500 | self.database.execute_sql('create table foo (data text not null)') | CODE |
| HIGH | tests/db_tests.py | 649 | data = [(c.name, c.null, c.primary_key, c.table) | CODE |
| HIGH | tests/db_tests.py | 658 | data = [(c.name, c.null, c.primary_key, c.table) | CODE |
| HIGH | tests/postgres.py | 869 | query = BJson.select(curr.length()).tuples() | CODE |
| HIGH⚡ | tests/postgres.py | 1211 | self.assertEqual(JDoc.select(JDoc.data.length()).scalar(), 3) | CODE |
| HIGH⚡ | tests/postgres.py | 1212 | self.assertEqual(JBDoc.select(JBDoc.data.length()).scalar(), 3) | CODE |
| HIGH⚡ | tests/migrations.py | 235 | self.assertFalse(column.null) | CODE |
| HIGH | tests/migrations.py | 253 | self.assertFalse(column.null) | CODE |
| HIGH | tests/migrations.py | 617 | self.assertFalse(karma.null) | CODE |
| HIGH⚡ | tests/sql.py | 3772 | am.push() | CODE |
| HIGH⚡ | tests/sql.py | 3787 | am.push() | CODE |
| HIGH | tests/schema_diff.py | 837 | # converges (unique) or silently comes out NOT NULL (null). | STRING |
| HIGH | tests/schema_diff.py | 851 | self.assertTrue(columns['editor_id'].null) | STRING |
| HIGH | tests/schema_diff.py | 852 | self.assertFalse(columns['user_id'].null) | STRING |
| HIGH | playhouse/reflection.py | 228 | nullable=column_data.null, | CODE |
| HIGH | playhouse/dataset.py | 474 | # CSV has no null, treat empty as NULL for non-text fields. | COMMENT |
| HIGH | playhouse/migrate.py | 350 | # present and the field is non-null, then we need to first add the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench.py | 1 | CODE | |
| LOW | pwiz.py | 9 | CODE | |
| LOW | pwiz.py | 12 | CODE | |
| LOW | runtests.py | 84 | CODE | |
| LOW | tests/sqlcipher_ext.py | 6 | CODE | |
| LOW | tests/sqlcipher_ext.py | 7 | CODE | |
| LOW | tests/prefetch_tests.py | 8 | CODE | |
| LOW | tests/signals.py | 1 | CODE | |
| LOW | tests/test_utils.py | 4 | CODE | |
| LOW | tests/pwasyncio_stress.py | 7 | CODE | |
| LOW | tests/models.py | 5 | CODE | |
| LOW | tests/models.py | 7 | CODE | |
| LOW | tests/models.py | 9 | CODE | |
| LOW | tests/models.py | 10 | CODE | |
| LOW | tests/models.py | 37 | CODE | |
| LOW | tests/fields.py | 18 | CODE | |
| LOW | tests/fields.py | 20 | CODE | |
| LOW | tests/base_models.py | 1 | CODE | |
| LOW | tests/db_url.py | 1 | CODE | |
| LOW | tests/manytomany.py | 5 | CODE | |
| LOW | tests/results.py | 6 | CODE | |
| LOW | tests/results.py | 12 | CODE | |
| LOW | tests/apsw_ext.py | 4 | CODE | |
| LOW | tests/shortcuts.py | 4 | CODE | |
| LOW | tests/shortcuts.py | 5 | CODE | |
| LOW | tests/hybrid.py | 1 | CODE | |
| LOW | tests/hybrid.py | 2 | CODE | |
| LOW | tests/reflection.py | 5 | CODE | |
| LOW | tests/reflection.py | 6 | CODE | |
| LOW | tests/json_field.py | 3 | CODE | |
| LOW | tests/transactions.py | 10 | CODE | |
| LOW | tests/pydantic_utils.py | 1 | CODE | |
| LOW | tests/pydantic_utils.py | 10 | CODE | |
| LOW | tests/pwasyncio.py | 2 | CODE | |
| LOW | tests/pwasyncio.py | 13 | CODE | |
| LOW | tests/pwasyncio.py | 15 | CODE | |
| LOW | tests/pwasyncio.py | 16 | CODE | |
| LOW | tests/sqliteq.py | 12 | CODE | |
| LOW | tests/pwiz_integration.py | 7 | CODE | |
| LOW | tests/pwiz_integration.py | 8 | CODE | |
| LOW | tests/with_related_tests.py | 1 | CODE | |
| LOW | tests/with_related_tests.py | 7 | CODE | |
| LOW | tests/sqlite.py | 5 | CODE | |
| LOW | tests/sqlite.py | 6 | CODE | |
| LOW | tests/sqlite.py | 25 | CODE | |
| LOW | tests/cockroachdb.py | 4 | CODE | |
| LOW | tests/cockroachdb.py | 5 | CODE | |
| LOW | tests/dataset.py | 9 | CODE | |
| LOW | tests/dataset.py | 16 | CODE | |
| LOW | tests/mysql_ext.py | 3 | CODE | |
| LOW | tests/db_tests.py | 15 | CODE | |
| LOW | tests/cysqlite_ext.py | 6 | CODE | |
| LOW | tests/cysqlite_ext.py | 7 | CODE | |
| LOW | tests/sqlite_changelog.py | 3 | CODE | |
| LOW | tests/sqlite_changelog.py | 9 | CODE | |
| LOW | tests/postgres.py | 8 | CODE | |
| LOW | tests/postgres.py | 10 | CODE | |
| LOW | tests/migrations.py | 11 | CODE | |
| LOW | tests/migrations.py | 13 | CODE | |
| LOW | tests/flask_utils.py | 5 | CODE | |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | peewee.py | 1107 | # Define the table and its alias. | COMMENT |
| MEDIUM | peewee.py | 7723 | # Create a repr and error class before finalizing. | COMMENT |
| MEDIUM | peewee.py | 8299 | # Define the table and its alias. | COMMENT |
| MEDIUM | tests/models.py | 3060 | # Create the subquery. | COMMENT |
| MEDIUM | tests/models.py | 5025 | # Define the recursive terms. | COMMENT |
| MEDIUM | tests/sqlite.py | 201 | # Create a row using the given test value. Verify we can read the value | COMMENT |
| MEDIUM | tests/dataset.py | 95 | # Create a new dataset instance with views enabled. | COMMENT |
| MEDIUM | tests/dataset.py | 639 | # Create a new table and load all data into it. | COMMENT |
| MEDIUM | tests/dataset.py | 708 | # Create a new table and load all data into it. | COMMENT |
| MEDIUM | tests/migrations.py | 198 | # Create a new tag model to represent the fields we added. | COMMENT |
| MEDIUM | tests/migrations.py | 563 | # Create a unique index on first and last names. | COMMENT |
| MEDIUM | tests/migrations.py | 625 | # Create a new tag model to represent the fields we added. | COMMENT |
| MEDIUM | tests/migrations.py | 641 | # Create a unique index. | COMMENT |
| MEDIUM | tests/migrations.py | 1039 | # Create a temporary table with the renamed column. | COMMENT |
| MEDIUM⚡ | tests/sql.py | 1430 | # Create an outer query and do grouping. | COMMENT |
| MEDIUM | tests/pool.py | 130 | # Create a test database with a very short stale timeout. | COMMENT |
| MEDIUM | tests/pool.py | 148 | # Create a test database with a very short stale timeout. | COMMENT |
| MEDIUM⚡ | tests/schema.py | 1304 | # Create a fake database that supports TRUNCATE. | COMMENT |
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | examples/anomaly_detection.py | 17 | # Create a user-defined aggregate function suitable for computing the standard | COMMENT |
| MEDIUM | examples/blog/app.py | 41 | # Create a Flask WSGI app and configure it using values from the module. | COMMENT |
| MEDIUM | playhouse/sqliteq.py | 223 | # Create the writer thread, optionally starting it. | COMMENT |
| MEDIUM⚡ | playhouse/migrate.py | 88 | # Create an index on the `pub_date` column. | STRING |
| MEDIUM⚡ | playhouse/migrate.py | 91 | # Create a multi-column index on the `pub_date` and `status` fields. | STRING |
| MEDIUM⚡ | playhouse/migrate.py | 94 | # Create a unique index on the category and title fields. | STRING |
| MEDIUM | playhouse/migrate.py | 846 | # Create a mapping of original columns to new columns. | STRING |
| MEDIUM | playhouse/migrate.py | 875 | # Create the new table. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | peewee.py | 303 | def __getattr__(self, attr): | CODE |
| MEDIUM | peewee.py | 4036 | def rows_affected(self, cursor): | CODE |
| MEDIUM | peewee.py | 4965 | def get_binary_type(self): | CODE |
| LOW | peewee.py | 3921 | except Exception as exc: | CODE |
| LOW | peewee.py | 4277 | except Exception: | CODE |
| LOW | peewee.py | 4634 | except Exception: | CODE |
| LOW | peewee.py | 4648 | except Exception: | CODE |
| LOW | peewee.py | 5115 | except Exception: | CODE |
| LOW | peewee.py | 5364 | except Exception: | CODE |
| LOW | peewee.py | 5399 | except Exception: | CODE |
| LOW | peewee.py | 6129 | except Exception: | CODE |
| LOW | peewee.py | 8779 | except Exception: | CODE |
| MEDIUM | runtests.py | 118 | print('Error: could not import asyncio stress test: %s' % exc) | CODE |
| LOW | tests/pwasyncio_stress.py | 91 | except Exception as exc: | CODE |
| MEDIUM | tests/models.py | 5907 | def run_in_thread(): | CODE |
| MEDIUM | tests/models.py | 7747 | def tearDown(self): | CODE |
| LOW⚡ | tests/models.py | 7750 | except Exception as exc: | CODE |
| LOW | tests/models.py | 5916 | except Exception as exc: | CODE |
| MEDIUM | tests/pwasyncio.py | 828 | def asyncSetUp(self): | CODE |
| LOW | tests/pwasyncio.py | 833 | except Exception as exc: | CODE |
| MEDIUM | tests/db_tests.py | 976 | def connect_close(): | CODE |
| MEDIUM | tests/db_tests.py | 1000 | def run(n): | CODE |
| LOW⚡ | tests/db_tests.py | 1004 | except Exception as exc: | CODE |
| LOW | tests/db_tests.py | 983 | except Exception as exc: | CODE |
| MEDIUM | tests/pool.py | 534 | def worker(n): | CODE |
| MEDIUM | tests/pool.py | 590 | def worker(): | CODE |
| LOW | tests/pool.py | 543 | except Exception as exc: | CODE |
| LOW | tests/pool.py | 598 | except Exception as exc: | CODE |
| LOW | tests/base.py | 211 | except Exception as exc: | CODE |
| MEDIUM | tests/base.py | 208 | def assertRaisesCtx(self, exceptions): | CODE |
| LOW | playhouse/shortcuts.py | 266 | except Exception as exc: | CODE |
| MEDIUM | playhouse/shortcuts.py | 263 | def _reconnect(self, func, *args, **kwargs): | CODE |
| MEDIUM | playhouse/pwasyncio.py | 167 | def _safe_release(self, conn): | CODE |
| MEDIUM | playhouse/pwasyncio.py | 194 | def reset(self): | CODE |
| MEDIUM | playhouse/pwasyncio.py | 476 | def is_closed(self): | CODE |
| MEDIUM | playhouse/pwasyncio.py | 823 | def cleanup(): | CODE |
| LOW | playhouse/pwasyncio.py | 170 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 260 | except Exception as exc: | CODE |
| LOW | playhouse/pwasyncio.py | 282 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 376 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 388 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 753 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 767 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1007 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1035 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1090 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1104 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1157 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1164 | except Exception: | CODE |
| LOW | playhouse/pwasyncio.py | 1277 | except Exception: | CODE |
| LOW | playhouse/sqliteq.py | 181 | except Exception as execute_err: | CODE |
| LOW | playhouse/cysqlite_ext.py | 85 | except Exception: | CODE |
| LOW | playhouse/migrations.py | 588 | except Exception as exc: | STRING |
| LOW | playhouse/pool.py | 144 | except Exception: | CODE |
| LOW | playhouse/pool.py | 256 | except Exception: | CODE |
| LOW | playhouse/pool.py | 258 | except Exception: | CODE |
| LOW | playhouse/pool.py | 272 | except Exception: | CODE |
| LOW | playhouse/pool.py | 306 | except Exception: | CODE |
| MEDIUM | playhouse/pool.py | 141 | def _close_raw(self, conn): | CODE |
| MEDIUM | playhouse/pool.py | 294 | def _is_closed(self, conn): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | peewee.py | 776 | CODE | |
| LOW | peewee.py | 8510 | CODE | |
| LOW | peewee.py | 9002 | CODE | |
| LOW | peewee.py | 9483 | CODE | |
| LOW | peewee.py | 1862 | CODE | |
| LOW | peewee.py | 2173 | CODE | |
| LOW | peewee.py | 2484 | CODE | |
| LOW | peewee.py | 2823 | CODE | |
| LOW | peewee.py | 2910 | CODE | |
| LOW | peewee.py | 3043 | CODE | |
| LOW | peewee.py | 3862 | CODE | |
| LOW | peewee.py | 4023 | CODE | |
| LOW | peewee.py | 4558 | CODE | |
| LOW | peewee.py | 4974 | CODE | |
| LOW | peewee.py | 6087 | CODE | |
| LOW | peewee.py | 7572 | CODE | |
| LOW | peewee.py | 7646 | CODE | |
| LOW | peewee.py | 7826 | CODE | |
| LOW | peewee.py | 7895 | CODE | |
| LOW | peewee.py | 7925 | CODE | |
| LOW | peewee.py | 8119 | CODE | |
| LOW | peewee.py | 8374 | CODE | |
| LOW | peewee.py | 8484 | CODE | |
| LOW | peewee.py | 8560 | CODE | |
| LOW | peewee.py | 8571 | CODE | |
| LOW | peewee.py | 8756 | CODE | |
| LOW | peewee.py | 8796 | CODE | |
| LOW | peewee.py | 9170 | CODE | |
| LOW | tests/prefetch_tests.py | 184 | CODE | |
| LOW | tests/prefetch_tests.py | 226 | CODE | |
| LOW | tests/prefetch_tests.py | 359 | CODE | |
| LOW | tests/prefetch_tests.py | 481 | CODE | |
| LOW | tests/prefetch_tests.py | 530 | CODE | |
| LOW | tests/prefetch_tests.py | 582 | CODE | |
| LOW | tests/pwasyncio_stress.py | 30 | CODE | |
| LOW | tests/models.py | 3205 | CODE | |
| LOW | tests/models.py | 3347 | CODE | |
| LOW | tests/json_field.py | 702 | CODE | |
| LOW | tests/transactions.py | 141 | CODE | |
| LOW | tests/transactions.py | 356 | CODE | |
| LOW | tests/transactions.py | 387 | CODE | |
| LOW | tests/transactions.py | 391 | CODE | |
| LOW | tests/with_related_tests.py | 338 | CODE | |
| LOW | tests/dataset.py | 376 | CODE | |
| LOW | tests/mysql_ext.py | 44 | CODE | |
| LOW | tests/db_tests.py | 128 | CODE | |
| LOW | tests/db_tests.py | 672 | CODE | |
| LOW | tests/base.py | 25 | CODE | |
| LOW | examples/graph.py | 54 | CODE | |
| LOW | examples/blog/app.py | 183 | CODE | |
| LOW | playhouse/db_url.py | 25 | CODE | |
| LOW | playhouse/shortcuts.py | 13 | CODE | |
| LOW | playhouse/shortcuts.py | 132 | CODE | |
| LOW | playhouse/reflection.py | 878 | CODE | |
| LOW | playhouse/reflection.py | 196 | CODE | |
| LOW | playhouse/reflection.py | 307 | CODE | |
| LOW | playhouse/reflection.py | 554 | CODE | |
| LOW | playhouse/reflection.py | 612 | CODE | |
| LOW | playhouse/reflection.py | 750 | CODE | |
| LOW | playhouse/reflection.py | 764 | CODE | |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | tests/pwasyncio.py | 2409 | self.assertFalse(self.db._state.conn.conn.is_in_transaction()) | CODE |
| CRITICAL | examples/blog/static/js/jquery-1.11.0.min.js | 4 | },a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){retur | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | peewee.py | 2501 | # If this compound select query is being used inside an | COMMENT |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/conf.py | 21 | #sys.path.insert(0, os.path.abspath('.')) | COMMENT |
| LOW | docs/conf.py | 61 | # for a list of supported languages. | COMMENT |
| LOW | docs/conf.py | 81 | # unit titles (such as .. function::). | COMMENT |
| LOW | docs/conf.py | 121 | #html_theme_path = ['_themes'] | COMMENT |
| LOW | docs/conf.py | 141 | # so a file named "default.css" will overwrite the builtin "default.css". | COMMENT |
| LOW | docs/conf.py | 161 | COMMENT | |
| LOW | docs/conf.py | 181 | # contain a <link> tag referring to it. The value of this option must be the | COMMENT |
| LOW | docs/conf.py | 201 | # (source start file, target name, title, author, documentclass [howto/manual]). | COMMENT |
| LOW | playhouse/sqlite_udf.py | 521 | COMMENT | |
| LOW | playhouse/sqlite_udf.py | 541 | # x002 -- rows with phrase0 in col0 at least once | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | peewee.py | 73 | __all__ = [ | CODE |
| LOW | playhouse/migrations.py | 46 | __all__ = ['Migration', 'MigrationError', 'Runner', 'run', 'template'] | CODE |
| LOW | playhouse/schema_diff.py | 36 | __all__ = ['IndexDiff', 'SchemaDiff', 'diff_models'] | CODE |
| LOW | playhouse/fts_parser.py | 40 | __all__ = ['parse'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | peewee.py | 1801 | CODE | |
| LOW | peewee.py | 2564 | CODE | |
| LOW | peewee.py | 5661 | CODE | |
| LOW | peewee.py | 6659 | CODE | |
| LOW | peewee.py | 7337 | CODE | |
| LOW | playhouse/shortcuts.py | 13 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/models.py | 2389 | # If we just set the pk and try to save, peewee issues an update which | COMMENT |
| LOW⚡ | tests/fields.py | 2174 | # Otherwise we just return None. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/json_field.py | 282 | JM.create(data={'k': 'placeholder'}, ident='t') | CODE |