Merge remote-tracking branch 'origin/main' #7
20 new problems found by Qodana Community for Python
Qodana Community for Python
20 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Statement has no effect |
🔶 Warning | 7 |
Redeclared names without usages |
🔶 Warning | 2 |
Unbound local variables |
🔶 Warning | 2 |
Dictionary creation can be rewritten by dictionary literal |
◽️ Notice | 2 |
PEP 8 naming convention violation |
◽️ Notice | 2 |
Redundant parentheses |
◽️ Notice | 2 |
Non-optimal list declaration |
◽️ Notice | 1 |
Shadowing names from outer scopes |
◽️ Notice | 1 |
Unused local symbols |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
View the detailed Qodana report
To be able to view the detailed Qodana report, you can either:
- Register at Qodana Cloud and configure the action
- Use GitHub Code Scanning with Qodana
- Host Qodana report at GitHub Pages
- Inspect and use
qodana.sarif.json
(see the Qodana SARIF format for details)
To get *.log
files or any other Qodana artifacts, run the action with upload-result
option set to true
,
so that the action will upload the files as the job artifacts:
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: true
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 14 in Obsidian/Python/数据结构/字典{dictionary}.py
github-actions / Qodana Community for Python
Dictionary creation can be rewritten by dictionary literal
This dictionary creation could be rewritten as a dictionary literal
Check notice on line 86 in Obsidian/Python/数据结构/字典{dictionary}.py
github-actions / Qodana Community for Python
Dictionary creation can be rewritten by dictionary literal
This dictionary creation could be rewritten as a dictionary literal
Check notice on line 18 in Obsidian/Python/数据结构/列表[list].py
github-actions / Qodana Community for Python
Non-optimal list declaration
Multi-step list initialization can be replaced with a list literal
Check notice on line 60 in Obsidian/Python/test/snake.py
github-actions / Qodana Community for Python
PEP 8 naming convention violation
Variable in function should be lowercase
Check notice on line 61 in Obsidian/Python/test/snake.py
github-actions / Qodana Community for Python
PEP 8 naming convention violation
Variable in function should be lowercase
Check warning on line 35 in Obsidian/Python/demo.py
github-actions / Qodana Community for Python
Redeclared names without usages
Redeclared 'c' defined above without usage
Check warning on line 102 in Obsidian/Python/demo.py
github-actions / Qodana Community for Python
Redeclared names without usages
Redeclared 'c' defined above without usage
Check notice on line 131 in for_test/list.py
github-actions / Qodana Community for Python
Redundant parentheses
Remove redundant parentheses
Check notice on line 6 in Obsidian/Python/数据结构/元祖(tuple).py
github-actions / Qodana Community for Python
Redundant parentheses
Remove redundant parentheses
Check notice on line 1 in Obsidian/Python/test/reversewords.py
github-actions / Qodana Community for Python
Shadowing names from outer scopes
Shadows name 'inputs' from outer scope
Check warning on line 48 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 20 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 55 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 25 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 36 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 54 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 44 in for_test/cars.py
github-actions / Qodana Community for Python
Statement has no effect
Statement seems to have no effect
Check warning on line 42 in Obsidian/Python/数据结构/集合set().py
github-actions / Qodana Community for Python
Unbound local variables
Name 'set1' can be undefined
Check warning on line 78 in Obsidian/Python/数据结构/列表[list].py
github-actions / Qodana Community for Python
Unbound local variables
Name 'li' can be undefined
Check notice on line 18 in Obsidian/Python/test/snake.py
github-actions / Qodana Community for Python
Unused local symbols
Local variable 'x' value is not used