Find SELECT * queries
ProprietaryWildcard projections fetch columns the code does not use, defeat covering indexes, and change behavior when the schema changes. SELECT * under EXISTS (...) or inside aggregate functions like COUNT(*) is not flagged because no columns are materialized there.
org. openrewrite. sql. antipattern. FindSelectStarOptional
markSourceBoolean
Whether to mark each occurrence in source, and apply the fix where the rule remediates. Defaults to true; set to false to leave source untouched and report only to the data table, as an analysis-only pipeline requires.
mod run . --recipe= org. openrewrite. sql. antipattern. FindSelectStarInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.