Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license text to code files #17

Merged
merged 5 commits into from
Sep 8, 2023
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
4 changes: 2 additions & 2 deletions CoseSignTool/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dotnet_diagnostic.CA1024.severity = error
[*.cs]
# Require file header
dotnet_diagnostic.IDE0073.severity=error
file_header_template = ---------------------------------------------------------------------------\n<copyright file="{fileName}" company="Microsoft">\n Copyright (c) Microsoft Corporation. All rights reserved.\n</copyright>\n---------------------------------------------------------------------------
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.

# CS7035: The specified version string does not conform to the recommended format - major.minor.build.revision
dotnet_diagnostic.CS7035.severity = suggestion
Expand Down Expand Up @@ -245,4 +245,4 @@ csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion
dotnet_diagnostic.IDE0043.severity = error
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_utf8_string_literals = true:suggestion
csharp_style_prefer_utf8_string_literals = true:suggestion
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/CoseHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseHandler.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseX509;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/CoseValidationError.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseValidationError.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseX509;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/Extensions/ObjectExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ObjectExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseX509;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="Usings.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

global using System.Collections.Generic;
global using System.Diagnostics.CodeAnalysis;
Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/ValidationFailureCode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ValidationFailureCode.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseX509;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseParser/ValidationResult.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ValidationResult.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseX509;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1MessageValidator.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Abstractions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1ValidationResult.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Abstractions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1Exception.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Abstractions.Exceptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ICoseHeaderExtender.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.


namespace CoseSign1.Abstractions.Interfaces;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ICoseSigningKeyProvider.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Abstractions.Interfaces;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseSign1.Abstractions/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="Usings.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

global using System;
global using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CertificateCoseSigningKeyProviderTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1MessageValidatorTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="TestCertificateCoseSigningKeyProvider.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="TestX509Certificate2SigningKeyProvider.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseSign1.Certificates.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="Usings.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

global using System;
global using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509Certificate2MessageValidatorTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509Certificate2SigningKeyProviderTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509ChainBuilderTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509ChainTrustValidatorTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509CommonNameValidatorTests.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CertificateCoseHeaderLabels.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CertificateCoseSigningKeyProvider.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates;

Expand Down
7 changes: 2 additions & 5 deletions CoseSignTool/CoseSign1.Certificates/CoseX509Thumbprint.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseX509Thumbprint.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1CertificateException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Exceptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseValidationException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Exceptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseX509FormatException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Exceptions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CborReaderExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CborWriterExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="CoseSign1MessageExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ICertificateChainBuilderExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="X509Certificate2CollectionExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace CoseSign1.Certificates.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// ---------------------------------------------------------------------------
// <copyright file="ICertificateChainBuilder.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.


namespace CoseSign1.Certificates.Interfaces;
Expand Down
Loading