Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qodana CI checks #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

qodana-cloud[bot]
Copy link

@qodana-cloud qodana-cloud bot commented Sep 14, 2024

Adds qodana.yaml and GitHub workflow file that runs Qodana static analysis on each pull request.

Copy link

Qodana Community for Python

101405 new problems were found

Inspection name Severity Problems
Invalid definition and usage of Data Classes 🔴 Failure 45
Improper first parameter 🔴 Failure 40
Invalid usage of new-style type parameters and type aliases 🔴 Failure 10
Invalid type hints definitions and usages 🔴 Failure 8
Incorrect type 🔶 Warning 3780
Statement has no effect 🔶 Warning 1352
Incorrect call arguments 🔶 Warning 1067
Unbound local variables 🔶 Warning 911
Attempt to call a non-callable object 🔶 Warning 473
The default argument is mutable 🔶 Warning 221
Unreachable code 🔶 Warning 203
Function call can be replaced with set literal 🔶 Warning 188
Redeclared names without usages 🔶 Warning 133
Errors in string formatting operations 🔶 Warning 96
Fixture is not requested by test functions 🔶 Warning 76
Method signature does not match signature of overridden method 🔶 Warning 75
Missed call to '__init__' of the super class 🔶 Warning 72
Dictionary contains duplicate keys 🔶 Warning 62
Prohibited trailing semicolon in a statement 🔶 Warning 59
Invalid definition and usage of Data Classes 🔶 Warning 51
Inappropriate access to properties 🔶 Warning 45
Redundant character escape 🔶 Warning 44
Deprecated function, class, or module 🔶 Warning 34
A byte literal contains a non-ASCII character 🔶 Warning 32
First argument of the method is reassigned 🔶 Warning 30
Incorrect property definition 🔶 Warning 30
Unnecessary backslash 🔶 Warning 29
Suspicious back reference 🔶 Warning 19
Duplicate character in character class 🔶 Warning 17
Class-specific decorator is used outside the class 🔶 Warning 16
Invalid usages of final classes, methods, and variables 🔶 Warning 14
Missing await syntax in coroutine calls 🔶 Warning 12
Invalid usages of classes with '__slots__' definitions 🔶 Warning 10
Invalid type hints definitions and usages 🔶 Warning 10
Single character alternation 🔶 Warning 9
Invalid protocol definitions and usages 🔶 Warning 8
Begin or end anchor in unexpected position 🔶 Warning 8
Incompatible signatures of __new__ and __init__ 🔶 Warning 6
Invalid TypedDict definition and usages 🔶 Warning 6
Unnecessary non-capturing group 🔶 Warning 6
Wrong order of 'except' clauses 🔶 Warning 5
__init__ method that returns a value 🔶 Warning 5
Invalid usage of ClassVar variables 🔶 Warning 4
Improper position of from __future__ import 🔶 Warning 4
Tuple assignment balance is incorrect 🔶 Warning 3
Overloads in regular Python files 🔶 Warning 2
Exceptions do not inherit from standard 'Exception' class 🔶 Warning 1
Tuple item assignment is prohibited 🔶 Warning 1
Duplicate branch in alternation 🔶 Warning 1
Consecutive spaces 🔶 Warning 1
PEP 8 coding style violation ◽️ Notice 64623
PEP 8 naming convention violation ◽️ Notice 6208
Unused local symbols ◽️ Notice 6187
Shadowing names from outer scopes ◽️ Notice 3561
Single quoted docstring ◽️ Notice 2757
Accessing a protected member of a class or a module ◽️ Notice 2451
Shadowing built-in names ◽️ Notice 1928
Method is not declared static ◽️ Notice 1515
An instance attribute is defined outside init`` ◽️ Notice 1094
Redundant parentheses ◽️ Notice 610
Unclear exception clauses ◽️ Notice 416
Improper first parameter ◽️ Notice 284
Global variable is not defined at the module level ◽️ Notice 118
Class must implement all abstract methods ◽️ Notice 109
Dictionary creation can be rewritten by dictionary literal ◽️ Notice 33
Assigning function calls that don't return anything ◽️ Notice 33
Assignments to 'for' loop or 'with' statement parameter ◽️ Notice 31
Problematic nesting of decorators ◽️ Notice 30
Non-optimal list declaration ◽️ Notice 27
Regular expression can be simplified ◽️ Notice 19
Too complex chained comparisons ◽️ Notice 11
Incorrect docstring ◽️ Notice 8
Incorrect property definition ◽️ Notice 8
Redundant boolean variable check ◽️ Notice 8
Using equality operators to compare with None ◽️ Notice 1
Redundant '\d', '[:digit:]', or '\D' class elements ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant