Low

Showing all detectors for the Python language with low severity.

Incorrect use of Process.terminate API

The Process.terminate API might cause data corruption of shared resources.

Usage of an API that is not recommended - Low Severity

APIs that are not recommended were found - Low Severity.

AWS client not reused in a Lambda function

Recreating AWS clients in each Lambda function invocation is expensive.

Risky use of dict get method

Using the get method from the dict class without default values can cause runtime exceptions.

Multidimensional list initialization using replication is error prone

list replication using replication operator creates references to the existing objects, not copies, which could introduce bugs.

AWS AppConfig

Always check for new version before fetching the latest version directly.

Notebook best practice violation

Best practices to improve the maintainability of notebooks.

Use of a deprecated method

This code uses deprecated methods, which suggests that it has not been recently reviewed or maintained.

Catch and rethrow exception

Catching and re-throwing an exception without further actions is redundant and wasteful.

Direct dict object modification

Directly modifying the __dict__ object might cause undesirable behavior due to symbol table modification.

Improper error handling

Improper error handling can enable attacks and lead to unwanted behavior.

Time zone aware datetimes

Using naive datetime objects might cause time zone related issues.

Mutable objects as default arguments of functions

Default values in Python are created exactly once, when the function is defined. If that object is changed, subsequent calls to the function will refer to the changed object, leading to confusion.

Complex code hard to maintain

Complex code can be difficult to read and hard to maintain.

Use of an inefficient or incorrect API

Incorrect use of API leads to ambiguity and inconsistency

Inefficient polling of AWS resource

Custom polling can be inefficient and prone to error. Consider using AWS waiters instead.

Incorrect binding of SNS publish operations

Incorrect binding of SNS publish operations with the subscribe or create_topic operations might lead to latency issues.

Dangerous global variables

Global variables can be dangerous and cause bugs because they can be simultaneously accessed from multiple sections of a program.

Multiple values in return statement is prone to error

Methods that return multiple values can be difficult to read and prone to error.

Missing S3 bucket owner condition

Not setting the S3 bucket owner condition might introduce a risk of accidentally using a wrong bucket.