diff mbox series

editorconfig: apply settings for Makefile, not CMakeLists

Message ID 20230728091507.655949-1-michael.adler@siemens.com
State Accepted
Delegated to: Stefano Babic
Headers show
Series editorconfig: apply settings for Makefile, not CMakeLists | expand

Commit Message

Michael Adler July 28, 2023, 9:15 a.m. UTC
This project uses make instead of cmake, hence there is little benefit
in specifying editor settings for cmake. This commit aligns the
editorconfig settings with the project's actual build process, ensuring
that the appropriate settings are applied where they are needed.

Signed-off-by: Michael Adler <michael.adler@siemens.com>
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 .editorconfig | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Stefano Babic Aug. 2, 2023, 3:22 p.m. UTC | #1
On 28.07.23 11:15, 'Michael Adler' via swupdate wrote:
> This project uses make instead of cmake, hence there is little benefit
> in specifying editor settings for cmake. This commit aligns the
> editorconfig settings with the project's actual build process, ensuring
> that the appropriate settings are applied where they are needed.
> 
> Signed-off-by: Michael Adler <michael.adler@siemens.com>
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>   .editorconfig | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/.editorconfig b/.editorconfig
> index 7443b7c..c4386a3 100644
> --- a/.editorconfig
> +++ b/.editorconfig
> @@ -11,9 +11,10 @@ charset = utf-8
>   end_of_line = lf
>   insert_final_newline = true
>   
> -[CMakeLists.txt]
> -indent_size = 2
> -indent_style = space
> +[Makefile]
> +indent_style = tab
> +indent_size = tab
> +tab_width = 8
>   
>   [*.{c,h}]
>   indent_brace_style = K&R


Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/.editorconfig b/.editorconfig
index 7443b7c..c4386a3 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -11,9 +11,10 @@  charset = utf-8
 end_of_line = lf
 insert_final_newline = true
 
-[CMakeLists.txt]
-indent_size = 2
-indent_style = space
+[Makefile]
+indent_style = tab
+indent_size = tab
+tab_width = 8
 
 [*.{c,h}]
 indent_brace_style = K&R