From ef1fe5654707028b94a014147dc5dfd2afb21f5b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 12:53:10 +0000 Subject: [PATCH] Make every source header match the copyright template COPYRIGHT.md now reads 2023-2026, and ktsu.Sdk rewrites .editorconfig's file_header_template from it on every build, so IDE0073 rejected every C# file still carrying the 2026-only header. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_013j5p1tUWLykEtnhAziUkZa --- .editorconfig | 2 +- .github/copilot-instructions.md | 2 +- NoSleep.Test/ChildProcessHoldTests.cs | 2 +- NoSleep.Test/FakeSleepBlocker.cs | 2 +- NoSleep.Test/KeepAwakeControllerTests.cs | 2 +- NoSleep.Test/PlatformIntegrationTests.cs | 2 +- NoSleep.Tool/AssemblyInfo.cs | 2 +- NoSleep.Tool/Program.cs | 2 +- NoSleep/AssemblyInfo.cs | 2 +- NoSleep/Contracts/ISleepBlocker.cs | 2 +- NoSleep/KeepAwakeController.cs | 2 +- NoSleep/KeepAwakeStateChangedEventArgs.cs | 2 +- NoSleep/Platforms/ChildProcessHold.cs | 2 +- NoSleep/Platforms/ExecutableLocator.cs | 2 +- NoSleep/Platforms/LinuxSleepBlocker.cs | 2 +- NoSleep/Platforms/MacOsSleepBlocker.cs | 2 +- NoSleep/Platforms/UnsupportedSleepBlocker.cs | 2 +- NoSleep/Platforms/WindowsSleepBlocker.cs | 2 +- NoSleep/SleepBlockException.cs | 2 +- NoSleep/SleepBlockRequest.cs | 2 +- NoSleep/SleepBlockerFactory.cs | 2 +- scripts/generate-icons.py | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0146adb..fb1feb2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,7 +19,7 @@ trim_trailing_whitespace = true [*.{cs,csx,cake,fs,fsx,vb,vbx}] indent_style = tab -file_header_template = Copyright (c) 2026 ktsu-dev contributors +file_header_template = Copyright (c) 2023-2026 ktsu-dev contributors # Default severity for all .NET Code Style rules dotnet_analyzer_diagnostic.severity = error diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 90d8619..963da8a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -39,7 +39,7 @@ NoSleep/ ## Conventions -- Tabs for indentation in C#; the file header is `// Copyright (c) 2026 ktsu-dev contributors` +- Tabs for indentation in C#; the file header is `// Copyright (c) 2023-2026 ktsu-dev contributors` (it comes from `COPYRIGHT.md`, which CI regenerates) - `using` directives go inside the namespace, after the file-scoped namespace declaration - Warnings are errors and analysis runs at `10.0-all`, so public members need XML documentation and string comparisons need an explicit `StringComparison` diff --git a/NoSleep.Test/ChildProcessHoldTests.cs b/NoSleep.Test/ChildProcessHoldTests.cs index 788b957..3530f72 100644 --- a/NoSleep.Test/ChildProcessHoldTests.cs +++ b/NoSleep.Test/ChildProcessHoldTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Test; diff --git a/NoSleep.Test/FakeSleepBlocker.cs b/NoSleep.Test/FakeSleepBlocker.cs index f5dfa14..1a7901d 100644 --- a/NoSleep.Test/FakeSleepBlocker.cs +++ b/NoSleep.Test/FakeSleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Test; diff --git a/NoSleep.Test/KeepAwakeControllerTests.cs b/NoSleep.Test/KeepAwakeControllerTests.cs index 4c224c4..4b5c308 100644 --- a/NoSleep.Test/KeepAwakeControllerTests.cs +++ b/NoSleep.Test/KeepAwakeControllerTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Test; diff --git a/NoSleep.Test/PlatformIntegrationTests.cs b/NoSleep.Test/PlatformIntegrationTests.cs index 181add8..a761013 100644 --- a/NoSleep.Test/PlatformIntegrationTests.cs +++ b/NoSleep.Test/PlatformIntegrationTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Test; diff --git a/NoSleep.Tool/AssemblyInfo.cs b/NoSleep.Tool/AssemblyInfo.cs index d3f3337..381f495 100644 --- a/NoSleep.Tool/AssemblyInfo.cs +++ b/NoSleep.Tool/AssemblyInfo.cs @@ -1,3 +1,3 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ktsu.NoSleep.Test")] diff --git a/NoSleep.Tool/Program.cs b/NoSleep.Tool/Program.cs index 1592764..dfc8200 100644 --- a/NoSleep.Tool/Program.cs +++ b/NoSleep.Tool/Program.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Tool; diff --git a/NoSleep/AssemblyInfo.cs b/NoSleep/AssemblyInfo.cs index d3f3337..381f495 100644 --- a/NoSleep/AssemblyInfo.cs +++ b/NoSleep/AssemblyInfo.cs @@ -1,3 +1,3 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ktsu.NoSleep.Test")] diff --git a/NoSleep/Contracts/ISleepBlocker.cs b/NoSleep/Contracts/ISleepBlocker.cs index d158956..e45c4b8 100644 --- a/NoSleep/Contracts/ISleepBlocker.cs +++ b/NoSleep/Contracts/ISleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Contracts; diff --git a/NoSleep/KeepAwakeController.cs b/NoSleep/KeepAwakeController.cs index 6a30152..ce94673 100644 --- a/NoSleep/KeepAwakeController.cs +++ b/NoSleep/KeepAwakeController.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep; diff --git a/NoSleep/KeepAwakeStateChangedEventArgs.cs b/NoSleep/KeepAwakeStateChangedEventArgs.cs index a1adbd0..2565101 100644 --- a/NoSleep/KeepAwakeStateChangedEventArgs.cs +++ b/NoSleep/KeepAwakeStateChangedEventArgs.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep; diff --git a/NoSleep/Platforms/ChildProcessHold.cs b/NoSleep/Platforms/ChildProcessHold.cs index e36061a..0a4e10a 100644 --- a/NoSleep/Platforms/ChildProcessHold.cs +++ b/NoSleep/Platforms/ChildProcessHold.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/Platforms/ExecutableLocator.cs b/NoSleep/Platforms/ExecutableLocator.cs index 97710bb..0696d97 100644 --- a/NoSleep/Platforms/ExecutableLocator.cs +++ b/NoSleep/Platforms/ExecutableLocator.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/Platforms/LinuxSleepBlocker.cs b/NoSleep/Platforms/LinuxSleepBlocker.cs index f397022..8f2e656 100644 --- a/NoSleep/Platforms/LinuxSleepBlocker.cs +++ b/NoSleep/Platforms/LinuxSleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/Platforms/MacOsSleepBlocker.cs b/NoSleep/Platforms/MacOsSleepBlocker.cs index c748c85..a6b2a97 100644 --- a/NoSleep/Platforms/MacOsSleepBlocker.cs +++ b/NoSleep/Platforms/MacOsSleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/Platforms/UnsupportedSleepBlocker.cs b/NoSleep/Platforms/UnsupportedSleepBlocker.cs index c5485a8..f96c900 100644 --- a/NoSleep/Platforms/UnsupportedSleepBlocker.cs +++ b/NoSleep/Platforms/UnsupportedSleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/Platforms/WindowsSleepBlocker.cs b/NoSleep/Platforms/WindowsSleepBlocker.cs index c24d5a1..401064b 100644 --- a/NoSleep/Platforms/WindowsSleepBlocker.cs +++ b/NoSleep/Platforms/WindowsSleepBlocker.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep.Platforms; diff --git a/NoSleep/SleepBlockException.cs b/NoSleep/SleepBlockException.cs index e17312a..3f54046 100644 --- a/NoSleep/SleepBlockException.cs +++ b/NoSleep/SleepBlockException.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep; diff --git a/NoSleep/SleepBlockRequest.cs b/NoSleep/SleepBlockRequest.cs index 435b67e..8cedf25 100644 --- a/NoSleep/SleepBlockRequest.cs +++ b/NoSleep/SleepBlockRequest.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep; diff --git a/NoSleep/SleepBlockerFactory.cs b/NoSleep/SleepBlockerFactory.cs index fa26a38..5e40522 100644 --- a/NoSleep/SleepBlockerFactory.cs +++ b/NoSleep/SleepBlockerFactory.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2026 ktsu-dev contributors +// Copyright (c) 2023-2026 ktsu-dev contributors namespace ktsu.NoSleep; diff --git a/scripts/generate-icons.py b/scripts/generate-icons.py index e17f7d2..78f18cd 100644 --- a/scripts/generate-icons.py +++ b/scripts/generate-icons.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright (c) 2026 ktsu-dev contributors +# Copyright (c) 2023-2026 ktsu-dev contributors """Draws the NoSleep tray icons and the NuGet package icon. The mark is an eye: open and amber while NoSleep is holding an inhibitor, closed and grey while the