Skip to content

Commit

Permalink
Correct file headers (#2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored Feb 6, 2024
1 parent 8b4200f commit 213913e
Show file tree
Hide file tree
Showing 483 changed files with 917 additions and 915 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

[*.cs]

file_header_template = Copyright (c) Microsoft Corporation.\r\nLicensed under the MIT License.

#Core editorconfig formatting - indentation

#use soft tabs (spaces) for indentation
Expand Down
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $StartTime = Get-Date

if ($Help) {
Write-Host @"
Copyright (c) Microsoft Corporation and Contributors.
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Syntax:
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/FactoryHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Runtime.InteropServices;
using Microsoft.Windows.Widgets.Providers;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/CPUStats.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/ChartHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Text;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/DataManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Timer = System.Timers.Timer;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/DataType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Helpers;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/GPUStats.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;
using System.Globalization;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/IconLoader.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Helpers;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/Log.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using DevHome.Logging;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/MemoryStats.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;
using System.Runtime.InteropServices;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/NetworkStats.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/Resources.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using DevHome.Logging;
using Microsoft.Windows.ApplicationModel.Resources;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Helpers/SystemData.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Helpers;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using CoreWidgetProvider.Helpers;
using Microsoft.Windows.AppLifecycle;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/CoreExtension.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Runtime.InteropServices;
using CoreWidgetProvider.Helpers;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/CoreWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Text;
using System.Text.Json.Nodes;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/Enums/WidgetAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Widgets.Enums;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/Enums/WidgetActivityState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Widgets.Enums;
public enum WidgetActivityState
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/Enums/WidgetDataState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Widgets.Enums;
public enum WidgetDataState
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/Enums/WidgetPageState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoreWidgetProvider.Widgets.Enums;
public enum WidgetPageState
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/IWidgetImplFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Microsoft.Windows.Widgets.Providers;

Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/SSHWalletWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;
using System.Globalization;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/SystemCPUUsageWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Text.Json.Nodes;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/SystemGPUUsageWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;
using System.Globalization;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/SystemMemoryWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Text.Json.Nodes;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/SystemNetworkUsageWidget.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Globalization;
using System.Text.Json.Nodes;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/WidgetImpl.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using CoreWidgetProvider.Helpers;
using DevHome.Logging;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/WidgetImplFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using CoreWidgetProvider.Helpers;
using Microsoft.Windows.Widgets.Providers;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/WidgetProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Runtime.InteropServices;
using CoreWidgetProvider.Helpers;
Expand Down
4 changes: 2 additions & 2 deletions CoreWidgetProvider/Widgets/WidgetServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
Expand Down
4 changes: 2 additions & 2 deletions SampleExtension/DeveloperIdProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.UI;
Expand Down
4 changes: 2 additions & 2 deletions SampleExtension/FeaturedApplicationsProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
Expand Down
4 changes: 2 additions & 2 deletions SampleExtension/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Threading;
Expand Down
4 changes: 2 additions & 2 deletions SampleExtension/RepositoryProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.Windows.DevHome.SDK;
Expand Down
4 changes: 2 additions & 2 deletions SampleExtension/SampleExtension.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion Test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $StartTime = Get-Date

if ($Help) {
Write-Host @"
Copyright (c) Microsoft Corporation and Contributors.
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Syntax:
Expand Down
4 changes: 2 additions & 2 deletions codeAnalysis/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
Expand Down
2 changes: 1 addition & 1 deletion codeAnalysis/StyleCop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"settings": {
"documentationRules": {
"companyName": "Microsoft Corporation",
"copyrightText": "Copyright (c) {companyName} and Contributors\r\nLicensed under the MIT license.",
"copyrightText": "Copyright (c) {companyName}.\r\nLicensed under the MIT License.",
"xmlHeader": false,
"headerDecoration": "",
"fileNamingConvention": "metadata",
Expand Down
4 changes: 2 additions & 2 deletions common/Behaviors/NavigationViewHeaderBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using DevHome.Common.Extensions;
using DevHome.Common.Services;
Expand Down
4 changes: 2 additions & 2 deletions common/Behaviors/NavigationViewHeaderMode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace DevHome.Common.Behaviors;

Expand Down
4 changes: 2 additions & 2 deletions common/Behaviors/TextBlockAutomationBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Automation;
Expand Down
4 changes: 2 additions & 2 deletions common/Contracts/IAccountsService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
4 changes: 2 additions & 2 deletions common/Contracts/IFileService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace DevHome.Common.Contracts;

Expand Down
4 changes: 2 additions & 2 deletions common/Contracts/ILocalSettingsService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Threading.Tasks;

Expand Down
4 changes: 2 additions & 2 deletions common/Exceptions/RegisterPackageException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;

Expand Down
4 changes: 2 additions & 2 deletions common/Extensions/ApplicationExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using DevHome.Common.Services;
using Microsoft.UI.Xaml;
Expand Down
4 changes: 2 additions & 2 deletions common/Extensions/IEnumerableExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System.Collections.Generic;
using System.Collections.ObjectModel;
Expand Down
4 changes: 2 additions & 2 deletions common/Extensions/IHostExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation and Contributors
// Licensed under the MIT license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using Microsoft.Extensions.DependencyInjection;
Expand Down
Loading

0 comments on commit 213913e

Please sign in to comment.