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

Update error message for nested match, fix style and comments #89

Merged
merged 4 commits into from Aug 15, 2023

Conversation

jxiao
Copy link
Collaborator

@jxiao jxiao commented Oct 18, 2022

Closes #88

@jxiao jxiao requested a review from KeenWill October 18, 2022 17:20
@jxiao jxiao self-assigned this Oct 18, 2022
@jxiao jxiao added the documentation Improvements or additions to documentation label Oct 18, 2022
KeenWill
KeenWill previously approved these changes Oct 18, 2022
Comment on lines +28 to +39
(* No Flagging here - only 2 match levels deep *)
let f () =
let l = [] in
begin match l with
| [] ->
begin match l with
| [] -> true
| _ -> false
end
| _ -> true
end

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added this test case here, which ended up adjusting the line numbers of the violations in test/test.ml.

Copy link
Collaborator

@KeenWill KeenWill left a comment

Choose a reason for hiding this comment

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

lgtm!

@KeenWill KeenWill merged commit 59b0ea4 into master Aug 15, 2023
8 checks passed
@KeenWill KeenWill deleted the reword-match branch August 15, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reword violation message for nested matches >= 3 layers deep
2 participants