Skip to content

[Types] rename-aliases#30

Draft
keithharvey wants to merge 1 commit intofmtfrom
mig-rename-aliases
Draft

[Types] rename-aliases#30
keithharvey wants to merge 1 commit intofmtfrom
mig-rename-aliases

Conversation

@keithharvey
Copy link
Copy Markdown
Owner

@keithharvey keithharvey commented Mar 28, 2026

Commands

Demonstrates running bar-lua-codemod with:

# rename-aliases -- deprecated aliases, e.g. GetMyTeamID -> GetLocalTeamID
bar-lua-codemod rename-aliases --path "$BAR_DIR" --exclude common/luaUtilities

Output Summary

bar-lua-codemod rename-aliases results:
  Files scanned:       2,364
  Files changed:         161
  Conversions:           348
  Errors:                  0

Top files by conversion count:
  luaui/Widgets/gui_pip.lua                                       32
  luarules/gadgets/cmd_dev_helpers.lua                            17
  luaui/Widgets/api_unit_tracker_gl4.lua                           9
  luarules/gadgets/cus_gl4.lua                                     7
  luarules/gadgets/gui_soundeffects.lua                            6
  luarules/gadgets/sfx_notifications.lua                           6
  luaui/Widgets/snd_notifications.lua                              6
  luarules/gadgets/api_widget_events.lua                           5
  luarules/gadgets/game_autocolors.lua                             5
  luaui/Widgets/gui_allySelectedUnits.lua                          5
  luaui/Widgets/gui_chat.lua                                       5
  luaui/Widgets/gui_healthbars_gl4.lua                             5
  luaui/Widgets/map_startbox.lua                                   5
  luarules/gadgets/api_build_blocking.lua                          4
  luarules/gadgets/gfx_explosion_lights.lua                        4
  luarules/gadgets/gfx_unit_glass.lua                              4
  luarules/gadgets/unit_healthbars_widget_forwarding.lua           4
  luaui/RmlWidgets/gui_territorial_domination/gui_territorial_domination.lua     4
  luaui/Widgets/gui_defenserange_gl4.lua                           4
  luaui/Widgets/gui_top_bar.lua                                    4

Branch Topology

All branches are generated from branch by just bar::fmt-mig-generate.

Leaf branches (each isolates one transform on top of fmt):

Branch Transform Diff
fmt stylua . (base) 1415 files, +177785 −182643 vs stylua
mig-bracket bracket-to-dot 348 files, +7638 −7649 vs fmt
mig-rename-aliases rename-aliases 169 files, +359 −370 vs fmt
mig-detach-bar-modules detach-bar-modules 169 files, +1527 −1538 vs fmt
mig-spring-split spring-split 756 files, +9510 −9517 vs fmt

Linear branch (all transforms applied sequentially — this is what merges):

Branch Commits Diff vs stylua
mig fmtbracket-to-dotrename-aliasesdetach-bar-modulesspring-split 1427 files, +186612 −191465

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.

1 participant