Find within comments and literals

Apache 2.0

Find regular expression matches within comments and literals. "Literals" includes string literals, character literals, and numeric literals.

org.openrewrite.java.search.FindComments

Required

A list of regular expressions to search for. Separate values with commas.

mod run . --recipe=org.openrewrite.java.search.FindComments \ -P patterns='-----BEGIN RSA PRIVATE KEY-----'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.