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

SCP-845 - Add linting for undefined ChoiceValue usage #2149

Merged
merged 1 commit into from Jul 9, 2020
Merged

Conversation

palas
Copy link
Contributor

@palas palas commented Jul 8, 2020

@palas palas added Meadow Online IDE for Marlowe contracts Marlowe labels Jul 8, 2020
@palas palas self-assigned this Jul 8, 2020
Copy link
Contributor

@shmish111 shmish111 left a comment

Choose a reason for hiding this comment

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

LGTM, just a wording comment

@@ -97,6 +98,7 @@ instance showWarningDetail :: Show WarningDetail where
show UnreachableCaseEmptyChoice = "This case will never be used, because there are no options to choose"
show UnreachableCaseFalseNotify = "This case will never be used, because the Observation is always false"
show UnreachableContract = "This contract is unreachable"
show UndefinedChoice = "The contract tries to use a ChoiceId that has not been input by a When"
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this message (and UndefinedUse) should not use the word tries but in stead should explain that the default value of 0 will be used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I don't want to wait for the CI again just for that, but I will change it when I get a chance :)

@palas palas merged commit 8698973 into master Jul 9, 2020
@palas palas deleted the SCP-845 branch July 9, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meadow Online IDE for Marlowe contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants