Skip to content

Commit b2b2c01

Browse files
HiemstraHiemstra
authored andcommitted
Update linter style to use 4-space indents
This commit adds a custom .clang-format config file to switch the LLVM C++ style guide's default 2-space indents to 4-space indents. The config file is read by clang-format in the action after updating linter.yml to use `clang_format_args: -style=file`.
1 parent d51d156 commit b2b2c01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 4

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
4141
commit: true
4242
continue_on_error: false
4343
git_email: github.event.commits[0].author.name # Uses the author's git email instead of the default git email associated with the action ("lint-action@samuelmeuli.com")
44-
#clang_format_args: # Any additional arguments for clang_format
44+
clang_format_args: -style=file # Any additional arguments for clang_format
4545

4646

0 commit comments

Comments
 (0)