Skip to content

Conversation

jeparlefrancais
Copy link
Contributor

@jeparlefrancais jeparlefrancais commented Jun 22, 2025

Closes #3

Add a new rule remove_method_call that converts calls using the colon (:) syntax to a field call. The rule applies the transform only when the prefix is an identifier.

  • add entry to the changelog

Copy link

Coverage after merging remove-method-call-rule into main will be

86.81%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/nodes
   arguments.rs90.18%100%93.75%89.58%105–107, 128–129, 159–160, 178–180, 183, 243–246, 248, 292–294, 300
   function_call.rs93.86%100%95%93.62%131–133, 161–163
src/rules
   mod.rs89.35%100%83.78%90.03%136–138, 157–159, 174, 195–197, 199, 245–247, 358, 398–400, 427, 434–437, 451, 500–502
   remove_method_call.rs98.46%100%100%98.21%38

@jeparlefrancais jeparlefrancais merged commit c020b43 into main Jun 22, 2025
6 checks passed
@jeparlefrancais jeparlefrancais deleted the remove-method-call-rule branch June 22, 2025 17: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.

Remove simple method calls
1 participant