Skip to content

Conversation

jeparlefrancais
Copy link
Contributor

@jeparlefrancais jeparlefrancais commented Jun 19, 2025

Closes #256 #257

Add the new rule convert_luau_number to convert number literals like 100_000 into 100000 and binary numbers into hexadecimal numbers.

  • add entry to the changelog

Copy link

Coverage after merging convert-luau-number into main will be

86.76%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/nodes/expressions
   number.rs88.44%100%88.46%88.44%235–237, 277–281, 283, 295–299, 301–302, 326–330, 332, 368–372, 374, 417, 420–425, 427, 480
src/rules
   convert_luau_number.rs100%100%100%100%
   mod.rs89.29%100%83.78%89.97%134–136, 155–157, 172, 193–195, 197, 243–245, 354, 394–396, 423, 430–433, 447, 496–498

@jeparlefrancais jeparlefrancais merged commit bfa67bd into main Jun 19, 2025
6 checks passed
@jeparlefrancais jeparlefrancais deleted the convert-luau-number branch June 19, 2025 20:14
@jeparlefrancais jeparlefrancais mentioned this pull request Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A way of converting number literals to decimals
2 participants