Why this matters
Using eval() executes arbitrary code, leading to security vulnerabilities like code injection. Always use Async/Await or Promises instead of dynamic execution methods like eval().
Check for the use of eval() to handle asynchronous execution. Eval leads to security vulnerabilities. Recommend using Async/Await or Promises instead.
Using eval() executes arbitrary code, leading to security vulnerabilities like code injection. Always use Async/Await or Promises instead of dynamic execution methods like eval().
Side-by-side examples engineers can pattern-match during review.
// (no example provided)// (no example provided)From the same buckets as this rule.
Check if loops use equality operators (== or !=) in termination conditions. These can lead to infinite loops if the condition is never met exactly. Instead, use relational operators like < or > for safer loop termination.