Add pre-commit config#313
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
| * SPDX-License-Identifier: Apache-2.0 | ||
| ********************************************************************************/ | ||
|
|
||
| #ifndef IPC_DROPIN_RINGBUFFER_HPP_ |
There was a problem hiding this comment.
| #ifndef IPC_DROPIN_RINGBUFFER_HPP_ | |
| #ifndef IPC_DROPIN_RINGBUFFER_HPP_ |
| * SPDX-License-Identifier: Apache-2.0 | ||
| ********************************************************************************/ | ||
|
|
||
| #ifndef IPC_DROPIN_SOCKET_HPP_ |
There was a problem hiding this comment.
| #ifndef IPC_DROPIN_SOCKET_HPP_ | |
| #ifndef IPC_DROPIN_SOCKET_HPP_ |
| # all relevant files are currently excluded | ||
| exclude: | | ||
| (?x)^( | ||
| externals/| |
db2ec71 to
f81d9d8
Compare
| name: clang-format | ||
| # Run the tool binary directly so pre-commit's staged relative paths work. | ||
| # If clang-format cannot be found, the toolchain folder name likely changed. | ||
| entry: bazel-bin/external/toolchains_llvm++llvm+llvm_toolchain/clang-format -i |
There was a problem hiding this comment.
I see that you added a script for the clang-tidy to wrap some stuff for the compile-commands, would it make sense to add the same for format even if it doesn't use the compile-commands might be nice to add the bazel run @llvm_toolchain//:clang-tidy as a backup so that if the toolchain moves like the comment says it would still work.
There was a problem hiding this comment.
clang-format and clang-tidy paths are now resolved using cquery, scrips handle that now.
f81d9d8 to
6fd870b
Compare
| @@ -1,48 +1,4 @@ | |||
| BasedOnStyle: Google | |||
| AccessModifierOffset: -2 | |||
There was a problem hiding this comment.
Is all the content no longer required?
There was a problem hiding this comment.
What is this used for?
Uses
score_bazel_tools_cc'sclang_format_configandquality_clang_tidy_configUpdate format workflow