skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
223 stars 75 forks source link

internal: add --all option to clang-format-hook.js #2227

Closed Pospelove closed 6 days ago

Pospelove commented 6 days ago

[!IMPORTANT] Add --all option to clang-format-hook.js to format all files in the repository.

  • Feature Addition:
    • Add --all option to clang-format-hook.js to format all files in the repository.
    • Introduce findFiles function to recursively find all files in the current directory.
  • Behavior:
    • If --all is specified, formats all files with specified extensions.
    • If --all is not specified, formats only staged files as before.
  • Misc:
    • Minor refactoring to separate file finding and formatting logic.

This description was created by Ellipsis for b5e822ffbe760e38b069613376b57668c733c4b4. It will automatically update as commits are pushed.