ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
52 stars 21 forks source link

clang-format round 2 #110

Closed stevewgr closed 2 years ago

stevewgr commented 2 years ago

Description

More formatting and automation.

Now GitHub runs PR checks for linting.

Note that I got ride of tabs, because they mess-up with indentation of the code. So tabs has been replaced in favor of 4 spaces, which causes some strange spaces in random places of the code, but it's definitely better than before and will be cleaned-up with time. The command to replace tabs with spaces:

find src/{engine,game,server,tool} -regex '.*\.\(cpp\|h\|hpp\|H\|C\|CPP\|cc\|cxx\)' -exec sed -i.bak $'s/\t/    /g' {} \;
find src/{engine,game,server,tool} -regex '.*\.\(bak\)' -delete