Tag: maintainability

Use of a deprecated method

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

Catch and swallow exception

Swallowing exceptions, without rethrowing or logging them, can make it hard to understand why your application is failing.

Typeof expression

The typeof operator should only be compared to valid values.

String passed to setInterval or setTimeout

String passed to setInterval or setTimeout can cause the JavaScript engine to evaluate, which can lead to a security risk.

Use {} instead of new Object()

New Object() has been used for object creation instead of {}.

Items removed from an array using delete

Items removed from an array using delete can cause undefined holes in the array.

Avoid Undefined As Variable Name

Checks if the undefined is used as variable.

Avoid nan in comparison

Checks if nan is used is comparison.

Redundant switch statement

Detect switch statements if it has less than three case clauses.

Lazy Load Module

Checks for lazy module loading.

Invoke super appropriately

The incorrect use of super() causes problems.

Missing check on method output

Missing checks might cause silent failures that are harder to debug.

Override of reserved variable names in a Lambda function

Overriding environment variables that are reserved by AWS Lambda might lead to unexpected behavior.

Index of method comparison

indexOf method should not be compared with values greater than zero.