Rendezvous Certificates #7517
Rendezvous Certificates #7517
10 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 10
Complexity increasing per file
==============================
- src/tribler/core/components/popularity/rendezvous/tests/test_rendezvous_cache.py 2
- src/tribler/core/components/popularity/rendezvous/rendezvous.py 1
- src/tribler/core/components/popularity/rendezvous/db/database.py 4
- src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py 5
- src/tribler/core/components/popularity/rendezvous/db/orm_bindings/misc.py 1
- src/tribler/core/components/popularity/rendezvous/db/orm_bindings/certificate.py 1
- src/tribler/core/components/popularity/popularity_component.py 1
- src/tribler/core/components/popularity/community/popularity_community.py 3
Clones added
============
- src/tribler/core/components/popularity/rendezvous/db/database.py 1
- src/tribler/core/components/popularity/community/tests/test_popularity_community.py 2
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/community/tests/test_popularity_community.py#L290
Access to a protected member _create_rendezvous_response of a client class
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/community/tests/test_popularity_community.py#L306
Access to a protected member _create_rendezvous_response of a client class
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/db/orm_bindings/certificate.py#L1
Unused db_session imported from pony.orm
Check warning on line 1 in src/tribler/core/components/popularity/rendezvous/rendezvous.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous.py#L1
Unused import dataclasses
Check warning on line 3 in src/tribler/core/components/popularity/rendezvous/rendezvous.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous.py#L3
Unused fields imported from dataclasses
Check warning on line 2 in src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py#L2
Unused defaultdict imported from collections
Check warning on line 5 in src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py#L5
Unused Peer imported from ipv8.peer
Check warning on line 33 in src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py#L33
Unused variable 'peer_challenge'
Check warning on line 36 in src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/rendezvous_cache.py#L36
Expression "[self._cache.pop(peer) for peer in to_remove]" is assigned to nothing
codacy-production / Codacy Static Code Analysis
src/tribler/core/components/popularity/rendezvous/tests/test_rendezvous_cache.py#L15
The u prefix for strings is no longer necessary in Python >=3.0