Closed derekjtong closed 1 year ago
Still failing checks, I'm not sure what is wrong
Use this on the root of the project to pass Check_Code_Format
find . -regex '.*\.\(cpp\|hpp\|cxx\|cp\|cc\|cu\|c\|h\)' -not -path '*/extern/*' -exec clang-format -style=file -i {} \;
and this to pass Check_Cmake_Format
find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -not -path '*/extern/*/*' -exec cmake-format -i {} \;
Committing the changes produced with these commands should do it.
find . -regex '.*\.\(cpp\|hpp\|cxx\|cp\|cc\|cu\|c\|h\)' -not -path '*/extern/*' -exec clang-format -style=file -i {} \;
I ran this in the project root. No change were made, however it is still failing the check. @kelarov would it be possible for you to try it please? Thank you.
Also thank you for the help @genciberisha . I found where the commands are (PR-main.yml), now I know where to look in the future.
Update-I switched to different OS (macOS to Ubuntu) and the command made some changes.
Update-I switched to different OS (macOS to Ubuntu) and the command made some changes.
You shouldn't switch OS-s for this. Can you tell me your setup for future reference?
Sure, what details about my setup specifically? I'm not sure what to put, here's some stuff to start
closes #14