Implement the Rule # 15: No prompts in code blocks
After multiple attempts to make it work with sophisticated RegEx (that matched every code block first) I've reduced the regex to detect the specific symbols used for CLI prompts used at the very beginning of a line.
That solution works great for its simple implementation: it gets the job done with no false positives detected so far.
Implement the Rule # 15: No prompts in code blocks
After multiple attempts to make it work with sophisticated RegEx (that matched every code block first) I've reduced the regex to detect the specific symbols used for CLI prompts used at the very beginning of a line.
That solution works great for its simple implementation: it gets the job done with no false positives detected so far.