From 324a7aa90ee02f5401adcf5f4f859f50972feaf1 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 14 Feb 2024 17:09:44 +0100 Subject: [PATCH] .editorconfig: Add rule for .editorconfig This is not new and should have been written when .editorconfig was introduced. --- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index c4682829e357..429370be9752 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,6 +17,10 @@ end_of_line = unset insert_final_newline = unset trim_trailing_whitespace = unset +# We want readFile .version to return the version without a newline. +[.version] +insert_final_newline = false + # see https://nixos.org/nixpkgs/manual/#chap-conventions # Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces