SONARJAVA-6591 Add ruling diff comment workflow#5761
Conversation
Based on action from core-languages-tooling. Parametrize action for sonar-java Initialize submodules for ruling diff workflow The submodules must be initialized to access source files for generating code snippets in ruling diff comments. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Optimize ruling tests for faster CI - Exclude most ruling tests (guava, mall, jetty, etc.) using @ignore - Keep only commons-beanutils test active for PR validation - Add test changes to commons-beanutils S1134 to demonstrate diff comments This is a temporary change to speed up CI for demonstrating the ruling diff comment feature. Not intended for merge to master. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
9c34fcb to
ac526fa
Compare
Ruling Diff SummaryDetected changes in 1 rule files: 4 issues removed, 3 issues added. S1134 (
|
This reverts commit ac526fa.
Code Review ✅ Approved 1 resolved / 1 findingsAutomates ruling diff comments via a new workflow and optimizes CI performance by disabling specific ruling tests. The removal of temporary test commits and stale resource references resolves the previous demo-only issues. ✅ 1 resolved✅ Quality: Demo-only @ignore annotations disable ruling tests
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|





Based on action from core-languages-tooling.
Example comment here: #5761 (comment)
Summary by Gitar
.github/workflows/ruling-diff-comment.ymlto automate posting ruling diff comments on PRs.its/ruling/src/test/resources/**/*.jsonfiles and manualworkflow_dispatchevents.@Ignoreto seven test methods inJavaRulingTest.javato accelerate CI execution.its/ruling/src/test/resources/commons-beanutils/java-S1134.jsonby adjusting issue line numbers and removing a stale reference.This will update automatically on new commits.