wireshark/.editorconfig
Gerald Combs 2ac2b0670a Git+CMake: Add support for CMake presets.
CMake 3.19 added support for CMakePresets.json and
CMakeUserPresets.json, which let you prepopulate various configure,
build, and test options. Add CMakeUserPresets.json to .gitignore as
recommended by the documentation and add an example to the Developer's
Guide. CMake uses 2-space indentation; specify that for CMake*.json in
.editorconfig.
2022-06-05 13:04:07 -07:00

82 lines
1.3 KiB
INI

#
# Editor configuration
#
# https://editorconfig.org
#
# Global settings
# We're the top. We're the Coliseum.
root = true
[*]
tab_width = 8
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# CMake
# The CMake project itself uses two spaces:
# https://gitlab.kitware.com/cmake/cmake/-/blob/master/.editorconfig
[{CMake*,*.cmake,*.cmake.in}]
indent_style = tab
[CMake*.json]
indent_style = space
indent_size = 2
# Makefiles. Although we dropped Autotools we still have a few lying around.
[Makefile*]
indent_style = tab
indent_size = 8
# Python
[*.{py,py.in}]
indent_style = space
indent_size = 4
# Lemon
[*.lemon]
indent_style = space
indent_size = 4
# WiX. The `xmllint --format` default is two spaces.
[*.wx?]
indent_style = space
indent_size = 2
# NSIS
[*.ns[ih]]
indent_style = space
indent_size = 2
# YAML
[*.yml]
indent_style = space
indent_size = 2
# Asciidoc
[*.adoc]
indent_style = space
indent_size = 4
# GraphViz. The examples at https://gitlab.com/graphviz/graphviz/-/blob/master/graphs
# seem to be all over the place, so just go with 4 spaces for now.
[*.gv]
indent_style = space
indent_size = 4
# manuf
[manuf.tmpl]
indent_style = tab
indent_size = 8
# C/C++/Objective C
[*.{c,cpp,h,m}]
indent_style = space
indent_size = 4
# Flex (lexical analyzer generator)
[*.l]
indent_style = tab
indent_size = 8