diff --git a/.editorconfig b/.editorconfig index 4d572bf05..b5d1e61a1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,7 +14,7 @@ charset = utf-8 end_of_line = crlf indent_style = tab indent_size = 2 -insert_final_newline = unset +insert_final_newline = true trim_trailing_whitespace = true [*.csproj] @@ -38,7 +38,7 @@ tab_width = 4 # New line preferences end_of_line = crlf trim_trailing_whitespace = true -insert_final_newline = unset +insert_final_newline = true #### .NET Coding Conventions #### diff --git a/ClientCore/ClientConfiguration.cs b/ClientCore/ClientConfiguration.cs index 092d40ea0..d449e4dfa 100644 --- a/ClientCore/ClientConfiguration.cs +++ b/ClientCore/ClientConfiguration.cs @@ -359,4 +359,4 @@ public ClientConfigurationException(string message) : base(message) { } } -} \ No newline at end of file +} diff --git a/ClientCore/CnCNet5/GameCollection.cs b/ClientCore/CnCNet5/GameCollection.cs index c8ddbf9f7..a4483567c 100644 --- a/ClientCore/CnCNet5/GameCollection.cs +++ b/ClientCore/CnCNet5/GameCollection.cs @@ -324,4 +324,4 @@ public GameCollectionConfigurationException(string message) : base(message) { } } -} \ No newline at end of file +} diff --git a/ClientCore/INIProcessing/PreprocessorBackgroundTask.cs b/ClientCore/INIProcessing/PreprocessorBackgroundTask.cs index 2d129d73d..102d06e63 100644 --- a/ClientCore/INIProcessing/PreprocessorBackgroundTask.cs +++ b/ClientCore/INIProcessing/PreprocessorBackgroundTask.cs @@ -88,4 +88,4 @@ private static void CheckFiles() Logger.Log("Ended background processing of INI files."); } } -} \ No newline at end of file +} diff --git a/ClientCore/OSVersion.cs b/ClientCore/OSVersion.cs index 27f37d9f0..8c9a3c7e1 100644 --- a/ClientCore/OSVersion.cs +++ b/ClientCore/OSVersion.cs @@ -6,4 +6,4 @@ WIN7, WIN810, UNIX -} \ No newline at end of file +} diff --git a/ClientCore/PlatformShim/EncodingExt.cs b/ClientCore/PlatformShim/EncodingExt.cs index b4432ff7a..34905c066 100644 --- a/ClientCore/PlatformShim/EncodingExt.cs +++ b/ClientCore/PlatformShim/EncodingExt.cs @@ -17,4 +17,4 @@ static EncodingExt() /// ANSI doesn't mean a specific codepage, it means the default non-Unicode codepage which can be changed from Control Panel. /// public static Encoding ANSI { get; } -} \ No newline at end of file +} diff --git a/ClientCore/ProcessLauncher.cs b/ClientCore/ProcessLauncher.cs index 442040b83..c6cea342f 100644 --- a/ClientCore/ProcessLauncher.cs +++ b/ClientCore/ProcessLauncher.cs @@ -13,4 +13,4 @@ public static void StartShellProcess(string commandLine) }); } } -} \ No newline at end of file +} diff --git a/ClientCore/ProgramConstants.cs b/ClientCore/ProgramConstants.cs index c0333cfd6..1bb758bdc 100644 --- a/ClientCore/ProgramConstants.cs +++ b/ClientCore/ProgramConstants.cs @@ -121,4 +121,4 @@ public static string GetAILevelName(int aiLevel) ProcessLauncher.StartShellProcess(LogFileName); }; } -} \ No newline at end of file +} diff --git a/ClientCore/Settings/UserINISettings.cs b/ClientCore/Settings/UserINISettings.cs index 95d59af1e..c6e612acf 100644 --- a/ClientCore/Settings/UserINISettings.cs +++ b/ClientCore/Settings/UserINISettings.cs @@ -329,4 +329,4 @@ public void ResetGameFilters() MaxPlayerCount.Value = DEFAULT_MAX_PLAYER_COUNT; } } -} \ No newline at end of file +} diff --git a/ClientGUI/XNALinkButton.cs b/ClientGUI/XNALinkButton.cs index 4026272b5..2c79c37a2 100644 --- a/ClientGUI/XNALinkButton.cs +++ b/ClientGUI/XNALinkButton.cs @@ -52,4 +52,4 @@ public override void OnLeftClick() base.OnLeftClick(); } } -} \ No newline at end of file +} diff --git a/DTAConfig/Settings/SettingCheckBoxBase.cs b/DTAConfig/Settings/SettingCheckBoxBase.cs index 5837701b8..b3682de90 100644 --- a/DTAConfig/Settings/SettingCheckBoxBase.cs +++ b/DTAConfig/Settings/SettingCheckBoxBase.cs @@ -150,4 +150,4 @@ private void UpdateAllowChecking() } } -} \ No newline at end of file +} diff --git a/DTAConfig/Settings/SettingDropDownBase.cs b/DTAConfig/Settings/SettingDropDownBase.cs index 6769cffbc..8cb8f86be 100644 --- a/DTAConfig/Settings/SettingDropDownBase.cs +++ b/DTAConfig/Settings/SettingDropDownBase.cs @@ -76,4 +76,4 @@ public override void ParseAttributeFromINI(IniFile iniFile, string key, string v public abstract bool Save(); } -} \ No newline at end of file +} diff --git a/DXMainClient/DXGUI/GameClass.cs b/DXMainClient/DXGUI/GameClass.cs index 74840b8b3..7e78f73f9 100644 --- a/DXMainClient/DXGUI/GameClass.cs +++ b/DXMainClient/DXGUI/GameClass.cs @@ -293,4 +293,4 @@ public GraphicsModeInitializationException(string message) : base(message) { } } -} \ No newline at end of file +} diff --git a/DXMainClient/DXGUI/Generic/GameInProgressWindow.cs b/DXMainClient/DXGUI/Generic/GameInProgressWindow.cs index acad5d783..611889fb4 100644 --- a/DXMainClient/DXGUI/Generic/GameInProgressWindow.cs +++ b/DXMainClient/DXGUI/Generic/GameInProgressWindow.cs @@ -388,4 +388,4 @@ private void ProcessScreenshots() } #endif } -} \ No newline at end of file +} diff --git a/DXMainClient/DXGUI/Generic/MainMenu.cs b/DXMainClient/DXGUI/Generic/MainMenu.cs index 5598ab1e3..8ba926052 100644 --- a/DXMainClient/DXGUI/Generic/MainMenu.cs +++ b/DXMainClient/DXGUI/Generic/MainMenu.cs @@ -1035,4 +1035,4 @@ private void LaunchMapEditor() public string GetSwitchName() => "Main Menu".L10N("UI:Main:MainMenu"); } -} \ No newline at end of file +} diff --git a/DXMainClient/DXGUI/Generic/ManualUpdateQueryWindow.cs b/DXMainClient/DXGUI/Generic/ManualUpdateQueryWindow.cs index 03226b3d2..4cd2e4784 100644 --- a/DXMainClient/DXGUI/Generic/ManualUpdateQueryWindow.cs +++ b/DXMainClient/DXGUI/Generic/ManualUpdateQueryWindow.cs @@ -70,4 +70,4 @@ public void SetInfo(string version, string downloadUrl) lblDescription.Text = string.Format(descriptionText, version); } } -} \ No newline at end of file +} diff --git a/DXMainClient/DXGUI/IMessageView.cs b/DXMainClient/DXGUI/IMessageView.cs index 745888b19..fa86b042f 100644 --- a/DXMainClient/DXGUI/IMessageView.cs +++ b/DXMainClient/DXGUI/IMessageView.cs @@ -6,4 +6,4 @@ public interface IMessageView { void AddMessage(ChatMessage message); } -} \ No newline at end of file +} diff --git a/DXMainClient/Domain/FinalSunSettings.cs b/DXMainClient/Domain/FinalSunSettings.cs index 867ae1a8f..a24a55886 100644 --- a/DXMainClient/Domain/FinalSunSettings.cs +++ b/DXMainClient/Domain/FinalSunSettings.cs @@ -64,4 +64,4 @@ public static void WriteFinalSunIni() } } } -} \ No newline at end of file +} diff --git a/DXMainClient/Domain/Multiplayer/MapPreviewExtractor.cs b/DXMainClient/Domain/Multiplayer/MapPreviewExtractor.cs index aa48b99de..b5ed9ba1d 100644 --- a/DXMainClient/Domain/Multiplayer/MapPreviewExtractor.cs +++ b/DXMainClient/Domain/Multiplayer/MapPreviewExtractor.cs @@ -220,4 +220,4 @@ private static Image CreatePreviewBitmapFromImageData(int width, int height, byt } } } -} \ No newline at end of file +} diff --git a/DXMainClient/Online/CnCNetUserData.cs b/DXMainClient/Online/CnCNetUserData.cs index 6c7a8ba9c..91ecc7e34 100644 --- a/DXMainClient/Online/CnCNetUserData.cs +++ b/DXMainClient/Online/CnCNetUserData.cs @@ -210,4 +210,4 @@ public IdentEventArgs(string ident) public string Ident { get; } } -} \ No newline at end of file +} diff --git a/DXMainClient/Online/Connection.cs b/DXMainClient/Online/Connection.cs index 2115c5e7d..5f425d08a 100644 --- a/DXMainClient/Online/Connection.cs +++ b/DXMainClient/Online/Connection.cs @@ -1062,4 +1062,4 @@ private void AddSpecialQueuedMessage(QueuedMessage qm) #endregion } -} \ No newline at end of file +} diff --git a/DXMainClient/Online/IUserCollection.cs b/DXMainClient/Online/IUserCollection.cs index ac242b7e2..d9b758578 100644 --- a/DXMainClient/Online/IUserCollection.cs +++ b/DXMainClient/Online/IUserCollection.cs @@ -15,4 +15,4 @@ public interface IUserCollection void Reinsert(string username); bool Remove(string username); } -} \ No newline at end of file +} diff --git a/DXMainClient/PreStartup.cs b/DXMainClient/PreStartup.cs index 324a92dd7..96b349a1f 100644 --- a/DXMainClient/PreStartup.cs +++ b/DXMainClient/PreStartup.cs @@ -318,4 +318,4 @@ private static bool UserHasDirectoryAccessRights(string path, FileSystemRights a return isInRoleWithAccess; } } -} \ No newline at end of file +} diff --git a/DXMainClient/Program.cs b/DXMainClient/Program.cs index 2abba49cb..c990eeb45 100644 --- a/DXMainClient/Program.cs +++ b/DXMainClient/Program.cs @@ -194,4 +194,4 @@ private static Assembly DefaultAssemblyLoadContextOnResolving(AssemblyLoadContex } #endif } -} \ No newline at end of file +} diff --git a/DXMainClient/Startup.cs b/DXMainClient/Startup.cs index db1d0a181..e99f8dc82 100644 --- a/DXMainClient/Startup.cs +++ b/DXMainClient/Startup.cs @@ -399,4 +399,4 @@ private static void WriteInstallPathToRegistry() } } } -} \ No newline at end of file +}