1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/.github/workflows
Disservin 2d0237db3f add clang-format
This introduces clang-format to enforce a consistent code style for Stockfish.

Having a documented and consistent style across the code will make contributing easier
for new developers, and will make larger changes to the codebase easier to make.

To facilitate formatting, this PR includes a Makefile target (`make format`) to format the code,
this requires clang-format (version 17 currently) to be installed locally.

Installing clang-format is straightforward on most OS and distros
(e.g. with https://apt.llvm.org/, brew install clang-format, etc), as this is part of quite commonly
used suite of tools and compilers (llvm / clang).

Additionally, a CI action is present that will verify if the code requires formatting,
and comment on the PR as needed. Initially, correct formatting is not required, it will be
done by maintainers as part of the merge or in later commits, but obviously this is encouraged.

fixes https://github.com/official-stockfish/Stockfish/issues/3608
closes https://github.com/official-stockfish/Stockfish/pull/4790

Co-Authored-By: Joost VandeVondele <Joost.VandeVondele@gmail.com>
2023-10-22 16:06:27 +02:00
..
codeql.yml Add CodeQL workflow 2023-07-19 21:36:38 +02:00
libcxx17.imp Let CI check C++ includes 2023-09-22 19:12:53 +02:00
stockfish.yml Let CI check C++ includes 2023-09-22 19:12:53 +02:00
stockfish_analyzers.yml Let CI check C++ includes 2023-09-22 19:12:53 +02:00
stockfish_arm_binaries.yml Simplify README 2023-09-03 08:40:08 +02:00
stockfish_binaries.yml Simplify README 2023-09-03 08:40:08 +02:00
stockfish_compile_test.yml Cleanup git checkout actions 2023-09-11 22:15:22 +02:00
stockfish_format_check.yml add clang-format 2023-10-22 16:06:27 +02:00
stockfish_sanitizers.yml Cleanup git checkout actions 2023-09-11 22:15:22 +02:00
stockfish_test.yml Check compiler for docker builds in CI 2023-08-13 11:47:52 +02:00