Code Quality detectors

New function detected

Use of new Function() can be dangerous if used to evaluate dynamic content.

Invoke super appropriately

The incorrect use of super() causes problems.

Typeof expression

The typeof operator should only be compared to valid values.

Numeric truncation error

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.

Check failed records when using kinesis

A batch request that doesn't check for failed records can lead to loss of data.

Catch and swallow exception

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

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.

Avoid nan in comparison

Checks if nan is used is comparison.

Inefficient polling of AWS resource

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