UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

19 lines (18 loc) 710 B
rules: - id: no-replaceall message: >- The string method replaceAll is not supported in all versions of javascript, and is not supported by older browser versions. Consider using replace() with a regex as the first argument instead like mystring.replace(/bad/g, "good") instead of mystring.replaceAll("bad", "good") (https://discourse.threejs.org/t/replaceall-is-not-a-function/14585) severity: WARNING languages: - javascript - typescript pattern: $STRING.replaceAll("...",$NEW) metadata: category: correctness technology: - javascript references: - https://discourse.threejs.org/t/replaceall-is-not-a-function/14585