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

Add Lint/UnusedBlockArgument rule #320

Merged
merged 5 commits into from
Dec 15, 2022
Merged

Add Lint/UnusedBlockArgument rule #320

merged 5 commits into from
Dec 15, 2022

Conversation

Sija
Copy link
Member

@Sija Sija commented Dec 13, 2022

Resolves #158

@Sija Sija added the rule label Dec 13, 2022
@Sija Sija added this to the 1.4.0 milestone Dec 13, 2022
@Sija Sija requested a review from veelenga December 13, 2022 20:06
@Sija Sija self-assigned this Dec 13, 2022
@Sija Sija force-pushed the Sija/unused-block-argument branch from 87e1fec to 2cc3ae0 Compare December 13, 2022 21:02
@Sija Sija marked this pull request as ready for review December 13, 2022 21:02
def method(a, b, c, &)
end
)
subject.catch(s).should be_valid
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we use that newer matcher expect_no_issues/expect_issue instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, we should but I was too lazy to rewrite those, xmas & all that jazz, sorry!

Copy link
Member Author

Choose a reason for hiding this comment

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

There are still many specs to rewrite anyway...

@Sija Sija force-pushed the Sija/unused-block-argument branch from 08cb812 to bb0c0ee Compare December 15, 2022 17:35
Copy link
Member

@veelenga veelenga left a comment

Choose a reason for hiding this comment

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

Lgtm

@Sija Sija merged commit e6ebca7 into master Dec 15, 2022
@Sija Sija deleted the Sija/unused-block-argument branch December 15, 2022 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Rule: Block not captured
2 participants