Skip to content

fix(prefer-get-or-insert): handle nullable types - #189

Open
43081j wants to merge 2 commits into
mainfrom
jg/get-insert-types
Open

43081j wants to merge 2 commits into
mainfrom
jg/get-insert-types

Conversation

@43081j

@43081j 43081j commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #185.

Basically converts the rule to be a type-enhanced rule. With types, we
check if the default value or the map's value are nullable. If they are,
then we skip flagging it.

Fixes #185.

Basically converts the rule to be a type-enhanced rule. With types, we
check if the default value or the map's value are nullable. If they are,
then we skip flagging it.
@43081j
43081j force-pushed the jg/get-insert-types branch from 69b9832 to 7eb5bc5 Compare November 23, 2026 20:43
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.

prefer-get-or-insert: autofix changes behavior when the set is conditional

1 participant