Skip to content

[Types] rename-aliases#30

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

[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,365
  Files changed:         161
  Conversions:           349
  Errors:                  0

Top files by conversion count:
  luaui/Widgets/gui_pip.lua                                       33
  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 b1ranch stylua by just bar::fmt-mig-generate.

Generated 2026-03-29 21:02:46 UTC

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

Branch Transform Diff
fmt stylua . (base) 1416 files, +178106 −182876 vs stylua
mig-bracket bracket-to-dot 348 files, +7638 −7649 vs fmt
mig-rename-aliases rename-aliases 169 files, +360 −371 vs fmt
mig-detach-bar-modules detach-bar-modules 169 files, +1528 −1539 vs fmt
mig-spring-split spring-split 756 files, +9482 −9489 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, +186967 −191732

@keithharvey keithharvey force-pushed the mig-rename-aliases branch 3 times, most recently from 68daebf to 6f2b721 Compare March 29, 2026 21:02
@keithharvey keithharvey force-pushed the fmt branch 2 times, most recently from 3480707 to fa8574d Compare March 31, 2026 03:24
@keithharvey keithharvey force-pushed the mig-rename-aliases branch 2 times, most recently from 07e7e3b to 5cf014f Compare March 31, 2026 04:53
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