OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
186 stars 100 forks source link

Add new optional lint for weighted pick() syntax #1822

Closed Absolucy closed 3 weeks ago

Absolucy commented 3 weeks ago

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

ike709 commented 3 weeks ago

Goon CI failure is due to https://github.com/OpenDreamProject/OpenDream/issues/1821