Pro versus CE rules in Semgrep Code
CE rules are public, and anyone can contribute them. They use only features available in the Semgrep CE (OSS) engine. Pro rules are authored by Semgrep. They might cover the same topics as a CE rule, but they use the Pro engine. Since the Pro engine includes advanced features, like cross-file (interfile) analysis, matches are often more precise. Semgrep also publishes new Pro rules that overlap older Pro rules as coverage improves. When rules overlap, results might vary depending on which rules you run:- If a Pro rule exists, but you run only the overlapping CE rule, you might see more false positives than you would with the Pro rule.
- If you run both the Pro and the CE rules, you might see duplicate findings for the same underlying issue.