Showing all detectors for the Python language with low severity.
Using naive datetime objects might cause time zone related issues.
This code uses deprecated methods, which suggests that it has not been recently reviewed or maintained.
Custom polling can be inefficient and prone to error. Consider using AWS waiters instead.
Process.terminate API might cause data corruption of shared resources.
Catching and re-throwing an exception without further actions is redundant and wasteful.
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.
Incorrect binding of SNS publish operations with the
create_topic operations might lead to latency issues.
Recreating AWS clients in each Lambda function invocation is expensive.
Complex code can be difficult to read and hard to maintain.
Global variables can be dangerous and cause bugs because they can be simultaneously accessed from multiple sections of a program.
get method from the
dict class without default values can cause runtime exceptions.
Methods that return multiple values can be difficult to read and prone to error.
Incorrect use of API leads to ambiguity and inconsistency
list replication using replication operator creates references to the existing objects, not copies, which could introduce bugs.
Not setting the S3 bucket owner condition might introduce a risk of accidentally using a wrong bucket.
Directly modifying the
__dict__ object might cause undesirable behavior due to symbol table modification.