Skip to content

chore: Fix checkstyle plugin#408

Merged
Jonas-Isr merged 8 commits intomainfrom
chore-fix-checkstyle
Apr 9, 2025
Merged

chore: Fix checkstyle plugin#408
Jonas-Isr merged 8 commits intomainfrom
chore-fix-checkstyle

Conversation

@Jonas-Isr
Copy link
Member

@Jonas-Isr Jonas-Isr commented Apr 4, 2025

Context

Checkstyle's scope key works differently from its accessModifiers key: for accessModifiers you have to list all more general access levels as well, while for scope it implies all access levels that are more general. This PR fixes our use of accessModifiers.

Note: Something similar probably has to be done for Cloud SDK. There is a BLI here.

Comment on lines +10 to +11
<Package name="com.sap.ai.sdk.prompt.registry.model"/>
<Package name="com.sap.ai.sdk.prompt.registry.client"/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by fix: the generated code for prompt registry was not excluded from spotbugs.

@Jonas-Isr Jonas-Isr changed the title Chore: Fix checkstyle plugin chore: Fix checkstyle plugin Apr 4, 2025
@Jonas-Isr Jonas-Isr self-assigned this Apr 4, 2025
@Jonas-Isr Jonas-Isr added the please-review Request to review a pull-request label Apr 4, 2025
Comment on lines 58 to 61
<module name="JavadocVariable">
<property name="accessModifiers" value="protected"/>
<property name="accessModifiers" value="protected, public"/>
<property name="severity" value="info"/>
</module>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a duplicate <module> right? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Is updated. Thanks :)

newtork
newtork previously approved these changes Apr 7, 2025
@Jonas-Isr Jonas-Isr enabled auto-merge (squash) April 7, 2025 12:57
@Jonas-Isr Jonas-Isr merged commit 4630f66 into main Apr 9, 2025
6 checks passed
@Jonas-Isr Jonas-Isr deleted the chore-fix-checkstyle branch April 9, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants