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 new optional lint for weighted pick() syntax #1822

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

Absolucy
Copy link
Contributor

@Absolucy Absolucy commented Jun 2, 2024

This adds a new opinionated lint, PickWeightedSyntax / 3203, that is thrown whenever the "weighted" pick syntax, such as pick(4;0, 3;1, 2;2, 1;3), is used.

It's disabled by default.

2024-06-01 (1717291388) ~ WindowsTerminal

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Jun 2, 2024
@ike709
Copy link
Collaborator

ike709 commented Jun 2, 2024

Goon CI failure is due to #1821

@wixoaGit wixoaGit merged commit f247711 into OpenDreamProject:master Jun 2, 2024
8 of 9 checks passed
@Absolucy Absolucy deleted the pickweight branch June 2, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants