Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion NoSleep.Test/ChildProcessHoldTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Test;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep.Test/FakeSleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Test;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep.Test/KeepAwakeControllerTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Test;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep.Test/PlatformIntegrationTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Test;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep.Tool/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
2 changes: 1 addition & 1 deletion NoSleep.Tool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Tool;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
2 changes: 1 addition & 1 deletion NoSleep/Contracts/ISleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Contracts;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/KeepAwakeController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/KeepAwakeStateChangedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/ChildProcessHold.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/ExecutableLocator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/LinuxSleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/MacOsSleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/UnsupportedSleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/Platforms/WindowsSleepBlocker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep.Platforms;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/SleepBlockException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/SleepBlockRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep;

Expand Down
2 changes: 1 addition & 1 deletion NoSleep/SleepBlockerFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2026 ktsu-dev contributors
// Copyright (c) 2023-2026 ktsu-dev contributors

namespace ktsu.NoSleep;

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-icons.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading