From 0138119bffb85d3a5bcdb7f127e5f0cd3ce8aa1e Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Thu, 14 Dec 2023 14:42:04 +0100 Subject: [PATCH] copy new editorconf from node Signed-off-by: Niklas Eiling --- fpga/.editorconfig | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/fpga/.editorconfig b/fpga/.editorconfig index b1a85d021..1bb986709 100644 --- a/fpga/.editorconfig +++ b/fpga/.editorconfig @@ -1,6 +1,5 @@ # EditorConfig is awesome: http://EditorConfig.org -# -# SPDX-FileCopyrightText: 2017 Institute for Automation of Complex Power Systems, RWTH Aachen University +# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University # SPDX-License-Identifier: Apache-2.0 # top-most EditorConfig file @@ -8,13 +7,26 @@ root = true # Unix-style newlines with a newline ending every file [*] +charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace=true # Matches multiple files with brace expansion notation # Set default charset -[**.{c,h,cpp,hpp}] -charset = utf-8 +[*.{c,h,proto,cpp,hpp,h.in,hpp.in}] +indent_style = space +indent_size = 2 + +[*.py] +indent_style = space +indent_size = 4 + +[*.conf] indent_style = tab indent_size = 8 -trim_trailing_whitespace=true + +[*.nix] +indent_style = space +indent_size = 2 +