Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/autofix_sonar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::sonar::{self, Issue};

/// Version pin for the Maven rewrite plugin. Kept current but conservative;
/// bump in tandem with tested recipe versions below.
const REWRITE_PLUGIN_GAV: &str = "org.openrewrite.maven:rewrite-maven-plugin:5.46.0";
const REWRITE_PLUGIN_GAV: &str = "org.openrewrite.maven:rewrite-maven-plugin:6.38.0";

/// OpenRewrite recipe descriptor. `artifact` is the GAV coordinate that ships
/// the recipe; we collect the union for the plugin's `recipeArtifactCoordinates`.
Expand Down Expand Up @@ -104,7 +104,7 @@ pub const RULE_TO_RECIPES: &[(&str, &[Recipe])] = &[
(
"java:S1155",
&[Recipe {
name: "org.openrewrite.staticanalysis.UseCollectionIsEmpty",
name: "org.openrewrite.staticanalysis.IsEmptyCallOnCollections",
artifact: "org.openrewrite.recipe:rewrite-static-analysis:RELEASE",
}],
),
Expand Down Expand Up @@ -163,15 +163,7 @@ pub const RULE_TO_RECIPES: &[(&str, &[Recipe])] = &[
name: "org.openrewrite.staticanalysis.FinalizePrivateFields",
artifact: "org.openrewrite.recipe:rewrite-static-analysis:RELEASE",
}],
),
// java:S2864 — Iterate over entrySet instead of keySet+get.
(
"java:S2864",
&[Recipe {
name: "org.openrewrite.staticanalysis.UseMapEntrySetIterator",
artifact: "org.openrewrite.recipe:rewrite-static-analysis:RELEASE",
}],
),
),
];

/// Returns Some(recipes) if this rule is autofix-eligible, else None.
Expand Down