Migrate knowledge.db
to tribler.db
#7606
4 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 4
Complexity increasing per file
==============================
- src/tribler/core/upgrade/knowledge_to_triblerdb/tests/test_knowledge_to_tribler_db_migration.py 6
- src/tribler/core/upgrade/tags_to_knowledge/tests/test_tags_to_knowledge_migration.py 9
- src/tribler/core/upgrade/knowledge_to_triblerdb/migration.py 3
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/knowledge_db.py 6
- src/tribler/core/components/database/db/tests/test_tribler_database_base.py 4
- src/tribler/core/components/database/db/tests/test_tribler_database.py 9
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/tags_db.py 3
- src/tribler/core/components/database/db/tribler_database.py 6
- src/tribler/core/components/database/database_component.py 2
Complexity decreasing per file
==============================
+ src/tribler/core/components/knowledge/knowledge_component.py -1
Clones added
============
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/knowledge_db.py 6
- src/tribler/core/upgrade/tags_to_knowledge/previous_dbs/tags_db.py 4
- src/tribler/core/components/database/db/tribler_database.py 6
- src/tribler/core/components/knowledge/tests/test_knowledge_component.py 2
- src/tribler/core/components/popularity/tests/test_popularity_component.py 2
- src/tribler/core/components/torrent_checker/tests/test_torrent_checker_component.py 2
- src/tribler/core/components/metadata_store/tests/test_metadata_store_component.py 2
See the complete overview on Codacy
Annotations
Check warning on line 364 in src/tribler/core/components/database/db/tribler_database.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/database/db/tribler_database.py#L364
Unused argument 'subjects_type'
Check warning on line 365 in src/tribler/core/components/database/db/tribler_database.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/database/db/tribler_database.py#L365
Unused argument 'predicate'
Check warning on line 376 in src/tribler/core/components/database/db/tribler_database.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/database/db/tribler_database.py#L376
Unused variable 'obj_name'
Check warning on line 390 in src/tribler/core/components/database/db/tribler_database.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/database/db/tribler_database.py#L390
Possible SQL injection vector through string-based query construction.