blob: e91fc03c8d1d1c507c01991e6303f8f0dab960cd [file] [log] [blame]
Ryan Kuester7e343142023-05-12 16:18:08 -05001# Define the project's code formatting styles
2#
3# https://editorconfig.org
4#
5# EditorConfig is a file format for defining coding styles. EditorConfig is
6# natively supported by VisualStudio, GitHub, Neovim, etc.
7
8[*]
9# Unix-style newlines and a newline ending in every file
10end_of_line = lf
11insert_final_newline = true
12
13[*.{cc,h}]
14# https://google.github.io/styleguide/cppguide.html
15indent_style = space
16indent_size = 2
17
18[*.py]
19# https://google.github.io/styleguide/pyguide.html but 2-space indent
20indent_style = space
21indent_size = 2
22
23[WORKSPACE,BUILD,*.bzl]
24# https://bazel.build/build/style-guide
25indent_style = space
26indent_size = 4
27
28[Makefile]
29indent_style = tab