Ryan Kuester | 7e34314 | 2023-05-12 16:18:08 -0500 | [diff] [blame] | 1 | # 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 |
| 10 | end_of_line = lf |
| 11 | insert_final_newline = true |
| 12 | |
| 13 | [*.{cc,h}] |
| 14 | # https://google.github.io/styleguide/cppguide.html |
| 15 | indent_style = space |
| 16 | indent_size = 2 |
| 17 | |
| 18 | [*.py] |
| 19 | # https://google.github.io/styleguide/pyguide.html but 2-space indent |
| 20 | indent_style = space |
| 21 | indent_size = 2 |
| 22 | |
| 23 | [WORKSPACE,BUILD,*.bzl] |
| 24 | # https://bazel.build/build/style-guide |
| 25 | indent_style = space |
| 26 | indent_size = 4 |
| 27 | |
| 28 | [Makefile] |
| 29 | indent_style = tab |