seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
71 stars 9 forks source link

Add rule to remove debug library profiling function calls #162

Closed jeparlefrancais closed 9 months ago

jeparlefrancais commented 9 months ago

Closes #158

Add a new rule to remove calls to debug.profilebegin and debug.profileend functions.

github-actions[bot] commented 9 months ago

Coverage after merging remove-profiling-rule into main will be

86.94%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/rules
   mod.rs89.09%100%77.78%90.54%108–110, 114, 124–126, 144–146, 148, 179–181, 269, 310–311, 346–348, 411–413, 69
   remove_call_match.rs56.07%100%72.73%54.17%12, 140–149, 151, 155, 34–36, 57–58, 60–66, 68–77, 79–82, 87, 89, 97–99
   remove_debug_profiling.rs94.05%100%86.67%95.65%16