Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

jordan-boyer
Copy link
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.

Copy link

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
Copy link

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

Copy link
Collaborator

@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
Collaborator

@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!

crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated Show resolved Hide resolved
crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated Show resolved Hide resolved
crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated Show resolved Hide resolved
crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated Show resolved Hide resolved
crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs Outdated Show resolved Hide resolved
@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
@camc314 camc314 self-assigned this Nov 25, 2024
Copy link
Collaborator

@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!

@Boshen Boshen merged commit 79ab8cc into oxc-project:main Nov 25, 2024
27 checks passed
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