Skip to content

Commit

Permalink
No more UTF-8 BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones committed Oct 13, 2024
1 parent 262d623 commit 2e66c48
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ indent_style = space
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom
charset = utf-8
###############################
# .NET Coding Conventions #
###############################
Expand Down Expand Up @@ -49,7 +49,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
###############################
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
Expand Down
2 changes: 1 addition & 1 deletion AzureSignTool.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.8
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSign.Core/AlgorithmTranslator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Security.Cryptography;

namespace AzureSign.Core
Expand Down
4 changes: 2 additions & 2 deletions src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AzureSign.Core.Interop;
using AzureSign.Core.Interop;
using Microsoft.Extensions.Logging;
using System;
using System.Diagnostics;
Expand Down Expand Up @@ -105,7 +105,7 @@ static char[] NullTerminate(ReadOnlySpan<char> str)
// E_INVALIDARG is expected from SignerSignEx3, no need to override this error, log warning for troubleshooting
logger?.LogWarning("If you set the dwTimestampFlags parameter to SIGNER_TIMESTAMP_AUTHENTICODE, you cannot set the dwFlags parameter to SIG_APPEND.");
}

flags |= SignerSignEx3Flags.SIG_APPEND;
}

Expand Down
2 changes: 1 addition & 1 deletion src/AzureSign.Core/AzureSign.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
Expand Down
4 changes: 2 additions & 2 deletions src/AzureSign.Core/Interop/crypt32.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.InteropServices;

namespace AzureSign.Core.Interop
Expand All @@ -10,7 +10,7 @@ internal static class crypt32
public static extern bool CertCloseStore
(
[In, MarshalAs(UnmanagedType.SysInt)] IntPtr hCertStore,
[In, MarshalAs(UnmanagedType.U4)] CertCloreStoreFlags dwFlags
[In, MarshalAs(UnmanagedType.U4)] CertCloreStoreFlags dwFlags
);

[return: MarshalAs(UnmanagedType.SysInt)]
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSign.Core/Interop/mssign32.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.InteropServices;

namespace AzureSign.Core.Interop
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSign.Core/MemoryCertificateStore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using AzureSign.Core.Interop;
using AzureSign.Core.Interop;
using System;
using System.Diagnostics;
using System.Security.Cryptography.X509Certificates;
Expand Down
4 changes: 2 additions & 2 deletions src/AzureSign.Core/Properties.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("AzureSign.Core.Tests")]
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("AzureSign.Core.Tests")]
2 changes: 1 addition & 1 deletion src/AzureSign.Core/TimeStampConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Security.Cryptography;
using System.Security.Cryptography;

namespace AzureSign.Core
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/AccessTokenCredential.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Azure.Core;
using Azure.Core;

using System;
using System.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Security.Cryptography.X509Certificates;

using Azure.Core;
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace AzureSignTool
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/AzureSignTool.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/ErrorOr.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace AzureSignTool
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/HRESULT.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AzureSignTool
namespace AzureSignTool
{
internal static class HRESULT
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Azure.Core;
using Azure.Core;
using Azure.Identity;
using Azure.Security.KeyVault.Certificates;

Expand Down
2 changes: 1 addition & 1 deletion src/AzureSignTool/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
4 changes: 2 additions & 2 deletions test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
Expand Down Expand Up @@ -63,6 +63,6 @@ public static IEnumerable<object[]> NameToAlgIdData
yield return new object[] { HashAlgorithmName.SHA512, 0x0000800e };
}
}

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
Expand Down
2 changes: 1 addition & 1 deletion test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Xunit;
using Xunit;

namespace AzureSign.Core.Tests
{
Expand Down
2 changes: 1 addition & 1 deletion test/AzureSign.Core.Tests/testcerts/kevin_jones.cer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-----BEGIN CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIFHjCCBAagAwIBAgIQB6D3F+HHUDhB9AL42AtX1zANBgkqhkiG9w0BAQsFADBy
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQg
Expand Down

0 comments on commit 2e66c48

Please sign in to comment.