From de7a67c5273b5e3fe1ebf718746cfa271cd5bfbd Mon Sep 17 00:00:00 2001 From: Peter <34331512+pmaytak@users.noreply.github.com> Date: Thu, 25 Jul 2024 02:11:39 -0700 Subject: [PATCH] Add rule to add file headers automatically. --- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index 6005570966..7202291eb6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -165,6 +165,10 @@ dotnet_diagnostic.VSTHRD111.severity = warning # Do not pass literals as localized parameters, globalization is not used dotnet_diagnostic.CA1303.severity = none +# IDE0073: Require file header +dotnet_diagnostic.IDE0073.severity = warning +file_header_template = Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License. + # C++ Files [*.{cpp,h,in}] curly_bracket_next_line = true