Skip to content

feat(lint-unicorn): add rule prefer set has#7075

Merged
Boshen merged 4 commits intooxc-project:mainfrom
jordan-boyer:lint/unicorn/prefer-set-has
Nov 25, 2024
Merged

feat(lint-unicorn): add rule prefer set has#7075
Boshen merged 4 commits intooxc-project:mainfrom
jordan-boyer:lint/unicorn/prefer-set-has

Conversation

@jordan-boyer
Copy link
Copy Markdown
Contributor

implementing the rule prefer set has from unicorn.

I put the fix as dangerous fix because they was no test for the fix on the unicorn part. I did add some test for this but i'm not sure that i'm covering everything.

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app Bot commented Nov 1, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions Bot added the A-linter Area - Linter label Nov 1, 2024
@jordan-boyer jordan-boyer changed the title Lint/unicorn/prefer set has feat(lint-unicorn): add rule prefer set has Nov 1, 2024
@github-actions github-actions Bot added the C-enhancement Category - New feature or request label Nov 1, 2024
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Nov 1, 2024

CodSpeed Performance Report

Merging #7075 will not alter performance

Comparing jordan-boyer:lint/unicorn/prefer-set-has (57f397f) with main (7236d14)

Summary

✅ 30 untouched benchmarks

Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Copy link
Copy Markdown
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

this looks great

Copy link
Copy Markdown
Member

@camchenry camchenry left a comment

Choose a reason for hiding this comment

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

looks pretty good, just had some suggestions on a few things, but overall I think this rule makes sense to me!

Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs
Comment thread crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated
@jordan-boyer jordan-boyer force-pushed the lint/unicorn/prefer-set-has branch 2 times, most recently from 3237900 to fc9033d Compare November 3, 2024 09:55
@Boshen Boshen force-pushed the lint/unicorn/prefer-set-has branch from fc9033d to c379e24 Compare November 21, 2024 08:12
@camc314 camc314 self-assigned this Nov 25, 2024
@camc314 camc314 force-pushed the lint/unicorn/prefer-set-has branch from f3608f2 to c7016d8 Compare November 25, 2024 10:46
Copy link
Copy Markdown
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

thank you!

@camc314 camc314 force-pushed the lint/unicorn/prefer-set-has branch from af80d18 to 57f397f Compare November 25, 2024 11:07
@Boshen Boshen merged commit 79ab8cc into oxc-project:main Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants