Skip to content

chore(lint): remove upgrade false positive warning if new variant add…#3482

Merged
SouchonTheo merged 1 commit intomainfrom
ts/lint/fix-false-positive-warning-for-new-enum-added
Apr 20, 2026
Merged

chore(lint): remove upgrade false positive warning if new variant add…#3482
SouchonTheo merged 1 commit intomainfrom
ts/lint/fix-false-positive-warning-for-new-enum-added

Conversation

@SouchonTheo
Copy link
Copy Markdown
Contributor

remove upgrade false positive warning if new variant added

the logic behind is that source can't change but target yes (cf test example)
in that case we need to match with index the old variant names map them with their new possible name
in that case we are guarantee that we avoid false positive
we are also safe because from another linter we know that the naming convention is respected

test were written with the help of AI

Copy link
Copy Markdown
Contributor

@nsarlin-zama nsarlin-zama left a comment

Choose a reason for hiding this comment

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

Nice and clean fix, thanks a lot!

Copy link
Copy Markdown
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

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

Just a small question on my end :)

Comment thread utils/tfhe-backward-compat-checker/src/diff.rs
@SouchonTheo SouchonTheo merged commit 2ad2f52 into main Apr 20, 2026
249 checks passed
@SouchonTheo SouchonTheo deleted the ts/lint/fix-false-positive-warning-for-new-enum-added branch April 20, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants