Kampfkarren / selene

A blazing-fast modern Lua linter written in Rust
https://kampfkarren.github.io/selene/
Mozilla Public License 2.0
600 stars 76 forks source link

Lint against approximated constants #573

Open chriscerie opened 10 months ago

chriscerie commented 10 months ago

Should favor constants like math.pi over 3.14. It should also work for both truncated and rounded numbers, so 3.141 and 3.142 should both lint. But 3.143 should not. It should also work for any arbitrary precision.