Triggers when a string literal contains ^ or $ but is used with a non-regex operator (eq, in, ==). Suggests using the matches operator instead.
https://github.com/doctena-org/octorules-cloudflare/blob/ac57450/docs/lint/stage2-per-rule.md#cf522--regex-anchor-in-literal-value
Also check for (?i) or similar in the beginning
Triggers when a string literal contains ^ or $ but is used with a non-regex operator (eq, in, ==). Suggests using the matches operator instead.
https://github.com/doctena-org/octorules-cloudflare/blob/ac57450/docs/lint/stage2-per-rule.md#cf522--regex-anchor-in-literal-value
Also check for
(?i)or similar in the beginning