From 4ab0d3139b5affdaa1f2c9a6d96af26d80dc1564 Mon Sep 17 00:00:00 2001 From: Anderson Preza Martins Date: Sat, 9 Mar 2024 16:07:32 +0100 Subject: [PATCH] Update .editorconfig The changes made to the .gitattributes file are as follows: Added Comments: Comments were added throughout the file to explain the purpose of each configuration option. Translation to English: The comments and configuration options were translated into English for clarity and consistency. Language Specification for Markdown Files: Added a line to specify that Markdown files should be recognized as such by GitHub's Linguist tool. Language Specification for Ruby Files: Added a line to specify that Ruby files should be recognized as such by GitHub's Linguist tool, enabling proper syntax highlighting and language recognition in GitHub's preview. These changes aim to improve readability and understanding of the .gitattributes file, ensuring that users can easily grasp its purpose and configuration options. --- .editorconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.editorconfig b/.editorconfig index ec03a7ec..598f6cd4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,20 +1,32 @@ +# Defines the root directory root = true +# Removes trailing whitespace at the end of lines [*] trim_trailing_whitespace = true +# Configuration for JSON and C# files [*.{json,cs}] indent_style = space indent_size = 4 insert_final_newline = false +# UTF-8 encoding for JSON files [*.json] charset = utf-8 +# UTF-8-BOM encoding for C# files [*.cs] charset = utf-8-bom dotnet_remove_unnecessary_suppression_exclusions = category: ReSharper +# Indentation configuration for specific files [*.{csproj,props,targets,nuspec,config}] indent_style = space indent_size = 2 + +# Markdown files +*.md linguist-language=Markdown + +# Configuration to display Ruby code in GitHub preview +*.rb linguist-language=Ruby