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