Skip to content

Add CollectionIsEmptyRefactor (java:S1155)#158

Merged
RadikalJin merged 1 commit into
mainfrom
feat/s1155-collection-is-empty
Jun 11, 2026
Merged

Add CollectionIsEmptyRefactor (java:S1155)#158
RadikalJin merged 1 commit into
mainfrom
feat/s1155-collection-is-empty

Conversation

@RadikalJin

Copy link
Copy Markdown
Member

Implements SonarQube rule java:S1155 - rewrites size comparisons on Collection types to use isEmpty()/!isEmpty() instead.

Classes placed in the sonar.s1155 package convention:

  • CollectionIsEmptyRefactor (main operation)
  • TestCollectionIsEmptyRefactor and test fixtures

Implements SonarQube rule java:S1155 - rewrites size comparisons on
Collection types to use isEmpty()/!isEmpty() instead.

Classes placed in the sonar.s1155 package convention:
- CollectionIsEmptyRefactor (main operation)
- TestCollectionIsEmptyRefactor and test fixtures

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@RadikalJin RadikalJin merged commit cfea0eb into main Jun 11, 2026
2 checks passed
@RadikalJin RadikalJin deleted the feat/s1155-collection-is-empty branch June 15, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant