Skip to content

Convert luau number - #274

Merged
jeparlefrancais merged 8 commits into
mainfrom
convert-luau-number
Jun 19, 2025
Merged

jeparlefrancais merged 8 commits into
mainfrom
convert-luau-number

Conversation

@jeparlefrancais

@jeparlefrancais jeparlefrancais commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown

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

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