# EditorConfig (https://editorconfig.org): basic formatting rules that
# most editors and IDEs apply automatically.
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true

# C sources: 4 columns indentation; tabs stand for 8 columns as in the
# existing code.
[*.{c,h,y,l,in}]
indent_style = space
indent_size = 4
tab_width = 8

[{Makefile.am,*.am,Makefile}]
indent_style = tab
tab_width = 8

[*.{sh,test,py,cmake,yml,yaml,toml}]
indent_style = space
indent_size = 4

[{CMakeLists.txt,*.yml,*.yaml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

# Bundled modules and test data are kept exactly as published.
[{mibs,pibs,yang,test/dumps,test/mibs,test/yang,test/yang-ct-ext,test/smidiff,test/smistrip}/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
indent_style = unset
trim_trailing_whitespace = unset
