-
Notifications
You must be signed in to change notification settings - Fork 24
/
.editorconfig
46 lines (37 loc) · 1.02 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[collector/{*.cpp,lib/*.cpp,lib/*.h,test/*.cpp}]
indent_style = space
indent_size = 2
[integration-tests/**.c]
indent_style = space
indent_size = 2
[*.sh]
indent_style = space
indent_size = 4
shell_variant = bash
binary_next_line = true
switch_case_indent = true
space_redirects = true
keep_padding = true
function_next_line = false
[{githooks,kernel-modules/build}/**]
indent_style = space
indent_size = 4
shell_variant = bash
binary_next_line = true
switch_case_indent = true
space_redirects = true
keep_padding = true
function_next_line = false
# Ignore submodules
[{third_party,falcosecurity-libs,collector/proto/third_party}/**]
ignore = true
# Make JetBrains IDEs format yaml consistently with stackrox/stackrox repo.
[{*.yaml,*.yml}]
# ij_ settings meaning can be mapped from https://www.jetbrains.com/help/idea/code-style-yaml.html
ij_yaml_indent_sequence_value = false