From 8067098e9566003a06b2c3a0065de1b230b5ab86 Mon Sep 17 00:00:00 2001 From: Matt Edmondson Date: Tue, 11 Aug 2026 18:32:15 +1000 Subject: [PATCH] chore: update ktsu.Sdk to 2.21.1 [patch] Bumps ktsu.Sdk and its variants to 2.21.1 in global.json. File headers are migrated to the single line from COPYRIGHT.md, which is what the SDK writes into .editorconfig as file_header_template and IDE0073 enforces. --- .editorconfig | 13 ++++++++++--- .gitattributes | 23 ++++++++++++++--------- .runsettings | 21 +-------------------- IconHelper.Test/ArgumentsTests.cs | 4 +--- IconHelper.Test/AssemblyInfo.cs | 4 +--- IconHelper.Test/ColorParserTests.cs | 4 +--- IconHelper.Test/GoldMasterTests.cs | 4 +--- IconHelper.Test/ProcessDirectoryTests.cs | 4 +--- IconHelper.Test/ProcessImageTests.cs | 4 +--- IconHelper.Test/TestSupport.cs | 4 +--- IconHelper/Arguments.cs | 4 +--- IconHelper/AssemblyInfo.cs | 4 +--- IconHelper/BatchResult.cs | 4 +--- IconHelper/ColorParser.cs | 4 +--- IconHelper/IconHelper.cs | 4 +--- IconHelper/PixelBounds.cs | 4 +--- global.json | 20 ++++++++++---------- 17 files changed, 48 insertions(+), 81 deletions(-) diff --git a/.editorconfig b/.editorconfig index c04a279..2cd5f5b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,7 +9,9 @@ charset = utf-8 indent_style = space indent_size = 4 tab_width = 4 -end_of_line = crlf +# LF on every platform, matching the `* text=auto eol=lf` default in .gitattributes. +# Overrides below must stay in step with the eol pins in that file. +end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true @@ -17,7 +19,7 @@ trim_trailing_whitespace = true [*.{cs,csx,cake,fs,fsx,vb,vbx}] indent_style = tab -file_header_template = Copyright (c) ktsu.dev\nAll rights reserved.\nLicensed under the MIT license. +file_header_template = Copyright (c) 2023-2026 ktsu-dev contributors # Default severity for all .NET Code Style rules dotnet_analyzer_diagnostic.severity = error @@ -503,4 +505,9 @@ indent_style = tab # Shell scripts [*.sh] end_of_line = lf -indent_size = 2 \ No newline at end of file +indent_size = 2 + +# Windows batch scripts and Visual Studio solution files keep CRLF on every platform. +# These match the eol=crlf pins in .gitattributes. +[*.{cmd,bat,sln}] +end_of_line = crlf \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index d67e40c..a0bea35 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,20 +4,25 @@ # Git Line Endings # ############################### -# Set default behaviour to automatically normalize line endings. -* text=auto +# Normalize all text files to LF in the repository, and check them out as LF on every +# platform. The explicit eol overrides each machine's core.autocrlf, so the working tree +# is byte-identical on Windows, Linux and macOS. This must stay in step with the +# end_of_line settings in .editorconfig. +* text=auto eol=lf -# csharp files to match .editorconfig -*.cs text eol=crlf +# Force bash scripts to always use LF line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. Redundant with the +# default above, kept explicit because these files break outright with CRLF. +*.sh text eol=lf # Force batch scripts to always use CRLF line endings so that if a repo is accessed # in Windows via a file share from Linux, the scripts will work. -*.{cmd,[cC][mM][dD]} text eol=crlf -*.{bat,[bB][aA][tT]} text eol=crlf +*.cmd text eol=crlf +*.bat text eol=crlf -# Force bash scripts to always use LF line endings so that if a repo is accessed -# in Unix via a file share from Windows, the scripts will work. -*.sh text eol=lf +# Visual Studio rewrites solution files with CRLF regardless of the checkout, so pin +# them to avoid a spurious whole-file diff every time the solution is opened. +*.sln text eol=crlf ############################### # Git Large File System (LFS) # diff --git a/.runsettings b/.runsettings index 3c3169d..9bd9f05 100644 --- a/.runsettings +++ b/.runsettings @@ -1,25 +1,6 @@ - - .\coverage + TestResults - - - .\coverage - - - - - - - - opencover - coverage.opencover.xml - [*Test*]*,[*Tests*]* - **/obj/**/* - - - - diff --git a/IconHelper.Test/ArgumentsTests.cs b/IconHelper.Test/ArgumentsTests.cs index 8f981dc..4808371 100644 --- a/IconHelper.Test/ArgumentsTests.cs +++ b/IconHelper.Test/ArgumentsTests.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper.Test/AssemblyInfo.cs b/IconHelper.Test/AssemblyInfo.cs index bd736af..b1051b2 100644 --- a/IconHelper.Test/AssemblyInfo.cs +++ b/IconHelper.Test/AssemblyInfo.cs @@ -1,5 +1,3 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] diff --git a/IconHelper.Test/ColorParserTests.cs b/IconHelper.Test/ColorParserTests.cs index 0484fba..2eaf3bf 100644 --- a/IconHelper.Test/ColorParserTests.cs +++ b/IconHelper.Test/ColorParserTests.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper.Test/GoldMasterTests.cs b/IconHelper.Test/GoldMasterTests.cs index d2bb84d..3849371 100644 --- a/IconHelper.Test/GoldMasterTests.cs +++ b/IconHelper.Test/GoldMasterTests.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper.Test/ProcessDirectoryTests.cs b/IconHelper.Test/ProcessDirectoryTests.cs index dee919a..3c9e834 100644 --- a/IconHelper.Test/ProcessDirectoryTests.cs +++ b/IconHelper.Test/ProcessDirectoryTests.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper.Test/ProcessImageTests.cs b/IconHelper.Test/ProcessImageTests.cs index b12ec48..304f5c0 100644 --- a/IconHelper.Test/ProcessImageTests.cs +++ b/IconHelper.Test/ProcessImageTests.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper.Test/TestSupport.cs b/IconHelper.Test/TestSupport.cs index 006bd36..0c4124c 100644 --- a/IconHelper.Test/TestSupport.cs +++ b/IconHelper.Test/TestSupport.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper.Test; diff --git a/IconHelper/Arguments.cs b/IconHelper/Arguments.cs index 4f129a2..604dd8e 100644 --- a/IconHelper/Arguments.cs +++ b/IconHelper/Arguments.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper; diff --git a/IconHelper/AssemblyInfo.cs b/IconHelper/AssemblyInfo.cs index 8fc8086..d9b7d7b 100644 --- a/IconHelper/AssemblyInfo.cs +++ b/IconHelper/AssemblyInfo.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors using System.Runtime.CompilerServices; diff --git a/IconHelper/BatchResult.cs b/IconHelper/BatchResult.cs index 607377f..538deb4 100644 --- a/IconHelper/BatchResult.cs +++ b/IconHelper/BatchResult.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper; diff --git a/IconHelper/ColorParser.cs b/IconHelper/ColorParser.cs index b3bfb28..9670875 100644 --- a/IconHelper/ColorParser.cs +++ b/IconHelper/ColorParser.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper; diff --git a/IconHelper/IconHelper.cs b/IconHelper/IconHelper.cs index a58f1f7..9663b1b 100644 --- a/IconHelper/IconHelper.cs +++ b/IconHelper/IconHelper.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper; diff --git a/IconHelper/PixelBounds.cs b/IconHelper/PixelBounds.cs index 4e7103a..6a4359e 100644 --- a/IconHelper/PixelBounds.cs +++ b/IconHelper/PixelBounds.cs @@ -1,6 +1,4 @@ -// Copyright (c) ktsu.dev -// All rights reserved. -// Licensed under the MIT license. +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.IconHelper; diff --git a/global.json b/global.json index 15c86b6..d011e87 100644 --- a/global.json +++ b/global.json @@ -5,17 +5,17 @@ }, "msbuild-sdks": { "MSTest.Sdk": "4.3.3", - "ktsu.Sdk": "2.18.0", - "ktsu.Sdk.ConsoleApp": "2.18.0", - "ktsu.Sdk.Tool": "2.18.0", - "ktsu.Sdk.App": "2.18.0", - "ktsu.Sdk.Windows": "2.18.0", - "ktsu.Sdk.Linux": "2.18.0", - "ktsu.Sdk.macOS": "2.18.0", - "ktsu.Sdk.iOS": "2.18.0", - "ktsu.Sdk.Android": "2.18.0" + "ktsu.Sdk": "2.21.1", + "ktsu.Sdk.ConsoleApp": "2.21.1", + "ktsu.Sdk.Tool": "2.21.1", + "ktsu.Sdk.App": "2.21.1", + "ktsu.Sdk.Windows": "2.21.1", + "ktsu.Sdk.Linux": "2.21.1", + "ktsu.Sdk.macOS": "2.21.1", + "ktsu.Sdk.iOS": "2.21.1", + "ktsu.Sdk.Android": "2.21.1" }, "test": { "runner": "Microsoft.Testing.Platform" } -} \ No newline at end of file +}