facebook pixelCodiga Analysis Python Rules, severity critical
BACK TO LIST

Python rules

The Codiga Static Analysis engine is powered by the best open-source tools to check your Python code. Make sure your code does not have any security issues and follow design and other best practices. Automate your code reviews today and merge with confidence with Codiga.

B201

Security
Critical

A Flask app appears to be run with debug=True

Learn more

B312

Security
Critical

Telnet-related functions are being called. Telnet is considered insecure. Use SSH or some other encrypted protocol.

B321

Security
Critical

FTP-related functions are being called. FTP is considered insecure. Use SSH/SFTP/SCP or some other encrypted protocol.

B322

Security
Critical

The input method in Python 2 will read from standard input

B401

Security
Critical

A telnet-related module is being imported. Telnet is considered insecure. Use SSH or some other encrypted protocol.

B402

Security
Critical

A FTP-related module is being imported. FTP is considered insecure. Use SSH/SFTP/SCP or some other encrypted protocol.

B411

Security
Critical

Using MAXINT to parse untrusted XML data is known to be vulnerable to XML attacks. Use defused.xmlrpc.monkey_patch() function to monkey-patch xmlrpclib and mitigate XML vulnerabilities.

B413

Security
Critical

The pyCrypto library and its module SHA256 are no longer actively maintained and have been deprecated. Consider using pyca/cryptography library.

B501

Security
Critical

Requests call with verify=False disabling SSL certificate checks

B602

Security
Critical

subprocess call with shell=True identified

B605

Security
Critical

Starting a process with a shell

B701

Security
Critical

Using jinja2 templates with autoescape=False is dangerous and can lead to XSS. Ensure autoescape=True or use the select\_autoescape function to mitigate XSS vulnerabilities.

E0307

Safety
Critical

__str__ does not return str

E0309

Safety
Critical

__hash__ does not return an int

E0601

Safety
Critical

Using variable before assignment

E0611

Code style
Critical

Invalid name in module

E0712

Safety
Critical

Catching an exception which doesn't inherit from Exception.

E1101

Safety
Critical

Detect members or attributes that do not exists

E1102

Error prone
Critical

Object is not callable

E1111

Safety
Critical

Assigning result of a function call with no return

E1120

Safety
Critical

No value for argument in function call

E1121

Error prone
Critical

Too many arguments for method call

E1123

Error prone
Critical

Unexpected keyword argument in method call

E1124

Error prone
Critical

Argument passed by position and keyword in method call

E1128

Safety
Critical

Assigning result of a function call that returns nothing but None.

E1133

Error prone
Critical

Non-iterable value used in an iterating context

E1135

Error prone
Critical

Value doesn't support membership test

E1137

Safety
Critical

Unsupported assignment operation

E1138

Safety
Critical

Unsupported delete operation

E1141

Error prone
Critical

Invalid iteration over dictionary items

E1205

Error prone
Critical

Too many arguments for logging format string

E1206

Error prone
Critical

Not enough arguments in logging call

E1306

Error prone
Critical

Not enough arguments for format string

W0101

Error prone
Critical

Unreachable code

W0109

Error prone
Critical

Duplicate key in dictionary

W0711

Safety
Critical

Operation is raising exception

W0245

Error prone
Critical

Super call without brackets.

R0133

Performance
Critical

Comparison between constants has a constant value

W4701

Safety
Critical

Iterated list is being modified inside for loop body

E4703

Safety
Critical

Iterated set is being modified inside for loop body, iterate through a copy of it instead.