Fix #87
26 new problems found by Qodana Community for Python
Qodana Community for Python
26 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Redeclared names without usages |
🔶 Warning | 2 |
Unbound local variables |
🔶 Warning | 1 |
Unused local symbols |
◽️ Notice | 6 |
Method is not declared static |
◽️ Notice | 4 |
Unclear exception clauses |
◽️ Notice | 3 |
Global variable is not defined at the module level |
◽️ Notice | 3 |
PEP 8 naming convention violation |
◽️ Notice | 3 |
Class has no init method |
◽️ Notice | 1 |
Using equality operators to compare with None |
◽️ Notice | 1 |
Improper first parameter |
◽️ Notice | 1 |
Redundant parentheses |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Contact Qodana team
Contact us at [email protected]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
Check notice on line 31 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Unclear exception clauses
Too broad exception clause
Check notice on line 40 in upsonic_on_prem/utils/db/__init__.py
github-actions / Qodana Community for Python
Unclear exception clauses
Too broad exception clause
Check notice on line 26 in upsonic_on_prem/utils/db/__init__.py
github-actions / Qodana Community for Python
Unclear exception clauses
Too broad exception clause
Check notice on line 18 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Class has no `__init__` method
Class has no __init__ method
Check notice on line 19 in upsonic_on_prem/api/pre_process/__init__.py
github-actions / Qodana Community for Python
Using equality operators to compare with None
Comparison with None performed with equality operators
Check notice on line 26 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Global variable is not defined at the module level
Global variable 'threads' is undefined at the module level
Check notice on line 22 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Global variable is not defined at the module level
Global variable 'threads' is undefined at the module level
Check notice on line 72 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
Global variable is not defined at the module level
Global variable 'redis_password' is undefined at the module level
Check notice on line 67 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
Method is not declared static
Method `service_status` may be 'static'
Check notice on line 21 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Method is not declared static
Method `app` may be 'static'
Check notice on line 76 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
Method is not declared static
Method `service_restart` may be 'static'
Check notice on line 25 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Method is not declared static
Method `api` may be 'static'
Check notice on line 25 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Improper first parameter
Did not you mean 'self'?
Check notice on line 10 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
PEP 8 naming convention violation
Class names should use CapWords convention
Check notice on line 18 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
PEP 8 naming convention violation
Class names should use CapWords convention
Check notice on line 55 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
PEP 8 naming convention violation
Class names should use CapWords convention
Check warning on line 4 in upsonic_on_prem/dash/app/apps.py
github-actions / Qodana Community for Python
Redeclared names without usages
Redeclared 'AppConfig' defined above without usage
Check warning on line 136 in upsonic_on_prem/dash/dash/settings.py
github-actions / Qodana Community for Python
Redeclared names without usages
Redeclared 'ALLOWED_HOSTS' defined above without usage
Check notice on line 10 in upsonic_on_prem/utils/db/redis.py
github-actions / Qodana Community for Python
Redundant parentheses
Remove redundant parentheses
Check warning on line 45 in upsonic_on_prem/utils/db/__init__.py
github-actions / Qodana Community for Python
Unbound local variables
Name 'storage' can be undefined
Check notice on line 21 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Unused local symbols
Parameter 'host' value is not used
Check notice on line 1 in upsonic_on_prem/api/pre_process/admin.py
github-actions / Qodana Community for Python
Unused local symbols
Parameter 'request' value is not used
Check notice on line 1 in upsonic_on_prem/api/pre_process/admin.py
github-actions / Qodana Community for Python
Unused local symbols
Parameter 'the_access_key' value is not used
Check notice on line 65 in upsonic_on_prem/api/pre_process/__init__.py
github-actions / Qodana Community for Python
Unused local symbols
Local variable 'pre_processor' value is not used
Check notice on line 21 in upsonic_on_prem/main.py
github-actions / Qodana Community for Python
Unused local symbols
Parameter 'port' value is not used