From 459821f13783b9cc9255e31e61d98cfa5b2c8462 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Fri, 16 Oct 2026 21:36:19 +0900 Subject: [PATCH 1/9] chore: apply dotnet-format command --- .../DiagnosticIds.cs | 2 +- ...gumentsSourceElementTypeCodeFixProvider.cs | 4 ++-- .../Code/CSharpParameterRenderer.cs | 22 +++++++++---------- src/BenchmarkDotNet/Code/RunnableConstants.cs | 2 +- src/BenchmarkDotNet/Engines/JitListener.cs | 4 ++-- .../Environments/Runtimes/CoreRuntime.cs | 2 +- .../Extensions/ReflectionExtensions.cs | 4 ++-- .../Helpers/DynamicAwaitHelper.cs | 6 ++--- .../Helpers/ThreadPoolHelper.cs | 4 ++-- .../Parameters/DeepEqualityComparer.cs | 14 ++++++------ .../Parameters/ParameterDefinition.cs | 2 +- .../Parameters/ParameterInstance.cs | 10 ++++----- .../Parameters/ParameterValues.cs | 2 +- .../Parameters/SmartParamBuilder.cs | 2 +- src/BenchmarkDotNet/Parameters/SourceRead.cs | 2 +- .../Running/BenchmarkConverter.cs | 4 ++-- .../Toolchains/CsProj/CsProjBuilder.cs | 2 +- .../DotNetCli/DotNetCliCommandExecutor.cs | 2 +- src/BenchmarkDotNet/Toolchains/Executor.cs | 2 +- .../Emitters/AsyncCoreEmitterBase.cs | 2 +- .../Emitters/AsyncStateMachineEmitter.cs | 2 +- .../Emitters/RuntimeAsyncEmitter.cs | 2 +- .../Emitters/SetupCleanupEmitter.cs | 2 +- .../Emitters/SyncCoreEmitter.cs | 2 +- .../InProcess/Emit/InProcessEmitRunner.cs | 4 ++-- .../InProcess/NoEmit/BenchmarkActionBase.cs | 2 +- .../Toolchains/Roslyn/RoslynBuilder.cs | 2 +- .../Toolchains/Wasm/WasmExecutor.cs | 6 ++--- .../Validators/ParamsValidator.cs | 2 +- ...GeneralParameterAttributesAnalyzerTests.cs | 2 +- .../MockInProcessDiagnoser.cs | 2 +- .../AsyncEnumerableParamsSourceTests.cs | 2 +- .../NaiveRunnableEmitDiff.cs | 2 +- .../JitListenerTests.cs | 4 ++-- .../ParamsSourceTests.cs | 4 ++-- .../RuntimeParseTests.cs | 2 +- .../Validators/ExecutionValidatorTests.cs | 4 ++-- .../Validators/ParamsValidatorTests.cs | 2 +- .../Validators/ReturnValueValidatorTests.cs | 4 ++-- 39 files changed, 73 insertions(+), 73 deletions(-) diff --git a/src/BenchmarkDotNet.Analyzers/DiagnosticIds.cs b/src/BenchmarkDotNet.Analyzers/DiagnosticIds.cs index 2be957af4e..321dc81c0f 100644 --- a/src/BenchmarkDotNet.Analyzers/DiagnosticIds.cs +++ b/src/BenchmarkDotNet.Analyzers/DiagnosticIds.cs @@ -1,4 +1,4 @@ -namespace BenchmarkDotNet.Analyzers; +namespace BenchmarkDotNet.Analyzers; public static class DiagnosticIds { diff --git a/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs b/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs index b9fc594b21..114e790e43 100644 --- a/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs +++ b/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs @@ -498,7 +498,7 @@ private readonly struct ItemList(SyntaxToken open, SyntaxToken close, SyntaxNode public SyntaxNodeOrToken[] Parts { get; } = parts; public ExpressionSyntax[] Expressions - => Parts.Where(part => part.IsNode).Select(part => (ExpressionSyntax) part.AsNode()!).ToArray(); + => Parts.Where(part => part.IsNode).Select(part => (ExpressionSyntax)part.AsNode()!).ToArray(); } /// @@ -521,7 +521,7 @@ when initializer.IsKind(SyntaxKind.CollectionInitializerExpression) => Of(initia collection.OpenBracketToken, collection.CloseBracketToken, collection.Elements.GetWithSeparators() - .Select(part => part.IsNode ? (SyntaxNodeOrToken) ((ExpressionElementSyntax) part.AsNode()!).Expression : part) + .Select(part => part.IsNode ? (SyntaxNodeOrToken)((ExpressionElementSyntax)part.AsNode()!).Expression : part) .ToArray()) : null, #endif diff --git a/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs b/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs index dcfe8c0690..779be863e0 100644 --- a/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs +++ b/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Extensions; +using BenchmarkDotNet.Extensions; using BenchmarkDotNet.Helpers; using BenchmarkDotNet.Parameters; using BenchmarkDotNet.Running; @@ -94,16 +94,16 @@ public string Render(ParameterValue value) return SourceCodeHelper.ToSourceCode(constant.Value, constant.SourceType); case ParameterValue.FromSource fromSource: - { - // The value can't be embedded, so the child process re-obtains it by enumerating the source. - // GetParameterAsync returns the source's element type, so an element index binds directly. - string cast = $"({fromSource.SourceType.GetCorrectCSharpTypeName()})"; - string elementIndex = fromSource.ElementIndex is { } index ? ElementAccess(fromSource.Read, index) : string.Empty; + { + // The value can't be embedded, so the child process re-obtains it by enumerating the source. + // GetParameterAsync returns the source's element type, so an element index binds directly. + string cast = $"({fromSource.SourceType.GetCorrectCSharpTypeName()})"; + string elementIndex = fromSource.ElementIndex is { } index ? ElementAccess(fromSource.Read, index) : string.Empty; - string source = StatementLocal(fromSource.Read) is { } local ? local : $"({Extraction(fromSource.Read)})"; + string source = StatementLocal(fromSource.Read) is { } local ? local : $"({Extraction(fromSource.Read)})"; - return $"{cast}{source}{elementIndex}"; - } + return $"{cast}{source}{elementIndex}"; + } default: throw new NotSupportedException($"{value.GetType().Name} is not a supported {nameof(ParameterValue)}."); @@ -184,8 +184,8 @@ private string SourceExpression(SourceRead read) private static string InvocationPostfix(MemberInfo source) => source is PropertyInfo ? string.Empty : "()"; private static bool IsStatic(MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.IsStatic : ((MethodInfo) source).IsStatic; + => source is PropertyInfo property ? property.GetMethod!.IsStatic : ((MethodInfo)source).IsStatic; private static Type ReturnType(MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo) source).ReturnType; + => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo)source).ReturnType; } diff --git a/src/BenchmarkDotNet/Code/RunnableConstants.cs b/src/BenchmarkDotNet/Code/RunnableConstants.cs index 0fc1f25789..b25018fcd5 100644 --- a/src/BenchmarkDotNet/Code/RunnableConstants.cs +++ b/src/BenchmarkDotNet/Code/RunnableConstants.cs @@ -1,4 +1,4 @@ - + namespace BenchmarkDotNet.Code; // Member names emitted by the code generator onto the generated runnable type - used by both the out-of-process diff --git a/src/BenchmarkDotNet/Engines/JitListener.cs b/src/BenchmarkDotNet/Engines/JitListener.cs index 34f7ac898e..32b9ecf3da 100644 --- a/src/BenchmarkDotNet/Engines/JitListener.cs +++ b/src/BenchmarkDotNet/Engines/JitListener.cs @@ -512,7 +512,7 @@ internal static ulong GetModuleId(Module module) { return 0; } - return (ulong) ((IntPtr) field.GetValue(module)!).ToInt64(); + return (ulong)((IntPtr)field.GetValue(module)!).ToInt64(); } catch { @@ -563,7 +563,7 @@ internal WatchedMethod(MethodInfo method) } else { - methodId = (ulong) method.MethodHandle.Value.ToInt64(); + methodId = (ulong)method.MethodHandle.Value.ToInt64(); } } diff --git a/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs b/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs index fb751cf150..a7c9023646 100644 --- a/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs +++ b/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs @@ -54,7 +54,7 @@ private CoreRuntime(Version version, string? platform = null) // otherwise deduplicate against a plain net8.0 one. Compared as given, like everywhere else the platform is // used: "net8.0-Windows" and "net8.0-windows" are two runtimes, and deduplicating them is the caller's call. public override bool Equals(object? obj) - => base.Equals(obj) && platform == ((CoreRuntime) obj!).platform; + => base.Equals(obj) && platform == ((CoreRuntime)obj!).platform; public override int GetHashCode() => HashCode.Combine(base.GetHashCode(), platform); diff --git a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs index 169ef67591..6fb5e9ad55 100644 --- a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs @@ -499,7 +499,7 @@ internal static bool TryGetSourceElementType(this Type sourceReturnType, [NotNul // different members of the same name. A generic method definition is passed over rather than matched, so a // property of that name serves the name instead of an unusable method. internal static MemberInfo? FindSourceMember(this Type sourceType, string sourceName) - => (MemberInfo?) sourceType.GetAllMethods() + => (MemberInfo?)sourceType.GetAllMethods() .FirstOrDefault(method => method.Name == sourceName && method.IsPublic && !method.IsGenericMethodDefinition && method.GetParameters().All(parameter => parameter.IsOptional)) @@ -571,7 +571,7 @@ PropertyInfo property when property.GetIndexParameters().Length == 0 => property // The type a source member hands back, which is what the generated code infers the element type from. internal static Type GetSourceReturnType(this MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo) source).ReturnType; + => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo)source).ReturnType; internal static Attribute? GetAsyncMethodBuilderAttribute(this MemberInfo memberInfo) // AsyncMethodBuilderAttribute can come from any assembly, so we need to use reflection by name instead of searching for the exact type. diff --git a/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs b/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs index a312c89e98..bc5f588583 100644 --- a/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs +++ b/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs @@ -17,7 +17,7 @@ internal static class DynamicAwaitHelper // Sources are always read through IAsyncEnumerable, pattern-based await foreach types are not supported. // A reference-type element needs no reflection at all: IAsyncEnumerable is covariant. => !elementType.IsValueType - ? (IAsyncEnumerable) asyncEnumerable + ? (IAsyncEnumerable)asyncEnumerable : EnumerateSourceAsyncCore(asyncEnumerable, ReflectionExtensions.GetAsyncEnumerableInterfaceInfo(elementType)); private static async IAsyncEnumerable EnumerateSourceAsyncCore(object asyncEnumerable, AsyncEnumerableInfo asyncEnumerableInfo, [EnumeratorCancellation] CancellationToken cancellationToken = default) @@ -27,14 +27,14 @@ internal static class DynamicAwaitHelper try { - while (await ((ValueTask) Unwrapped(() => asyncEnumerableInfo.MoveNextAsyncMethod.Invoke(enumerator, moveNextAsyncArgs))!).ConfigureAwait(false)) + while (await ((ValueTask)Unwrapped(() => asyncEnumerableInfo.MoveNextAsyncMethod.Invoke(enumerator, moveNextAsyncArgs))!).ConfigureAwait(false)) { yield return Unwrapped(() => asyncEnumerableInfo.CurrentProperty.GetValue(enumerator)); } } finally { - await ((IAsyncDisposable) enumerator).DisposeAsync().ConfigureAwait(false); + await ((IAsyncDisposable)enumerator).DisposeAsync().ConfigureAwait(false); } } diff --git a/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs b/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs index 22a7ed1bbd..2610da0316 100644 --- a/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs @@ -19,9 +19,9 @@ public void GetResult() => cancellationToken.ThrowIfCancellationRequested(); public void OnCompleted(Action continuation) - => ThreadPool.QueueUserWorkItem(static state => ((Action) state!)(), continuation); + => ThreadPool.QueueUserWorkItem(static state => ((Action)state!)(), continuation); public void UnsafeOnCompleted(Action continuation) - => ThreadPool.UnsafeQueueUserWorkItem(static state => ((Action) state!)(), continuation); + => ThreadPool.UnsafeQueueUserWorkItem(static state => ((Action)state!)(), continuation); } } diff --git a/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs b/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs index 2172b4652b..a71d3ab633 100644 --- a/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs +++ b/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs @@ -64,12 +64,12 @@ private static bool ValuesEqual(T1 x, T2 y) if (x is IDictionary xDict) // Dictionary iteration order is not stable, so compare via sorted keys. { - return DictionariesEqual(xDict, (IDictionary) y); + return DictionariesEqual(xDict, (IDictionary)y); } if (ImplementsSet(x)) // Set iteration order is not stable, so compare via sorted elements. { - return SetsEqual((IEnumerable) x, (IEnumerable) y); + return SetsEqual((IEnumerable)x, (IEnumerable)y); } if (x is IStructuralEquatable xStructuralEquatable) @@ -93,7 +93,7 @@ private static bool ValuesEqual(T1 x, T2 y) if (x is IEnumerable xEnumerable) // General collection equality support { - return EnumerablesEqual(xEnumerable, (IEnumerable) y); + return EnumerablesEqual(xEnumerable, (IEnumerable)y); } return x.Equals(y); @@ -146,7 +146,7 @@ private static bool TryEquatable(object x, object y) return false; var method = equatableInterface.GetMethod(nameof(IEquatable.Equals), BindingFlags.Public | BindingFlags.Instance); - return (bool?) method?.Invoke(x, [y]) ?? false; + return (bool?)method?.Invoke(x, [y]) ?? false; } private static bool TryFallbackStructuralEquals(object x, object y, out bool equals) @@ -154,7 +154,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ // Check for multi-dimensional array and ITuple and re-try for each element recursively. if (x is Array xArr) { - Array yArr = (Array) y; + Array yArr = (Array)y; if (xArr.Rank != yArr.Rank) { equals = false; @@ -176,7 +176,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ string methodName = xArr.Rank == 2 ? nameof(TwoDArraysEqual) : nameof(ThreeDArraysEqual); - equals = (bool) typeof(DeepEqualityComparer) + equals = (bool)typeof(DeepEqualityComparer) .GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Static)! .MakeGenericMethod(xArr.GetType().GetElementType()!, yArr.GetType().GetElementType()!) .Invoke(null, [xArr, yArr])!; @@ -212,7 +212,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ if (x is IEnumerable xEnumerable) // General collection equality support { - equals = EnumerablesEqual(xEnumerable, (IEnumerable) y); + equals = EnumerablesEqual(xEnumerable, (IEnumerable)y); return true; } diff --git a/src/BenchmarkDotNet/Parameters/ParameterDefinition.cs b/src/BenchmarkDotNet/Parameters/ParameterDefinition.cs index e450ca6218..55aaa7e973 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterDefinition.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterDefinition.cs @@ -1,4 +1,4 @@ -namespace BenchmarkDotNet.Parameters +namespace BenchmarkDotNet.Parameters { /// /// What a benchmark parameter is, independently of any value it takes: a member the runnable assigns, or a diff --git a/src/BenchmarkDotNet/Parameters/ParameterInstance.cs b/src/BenchmarkDotNet/Parameters/ParameterInstance.cs index 36447d3836..d3d7196a25 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterInstance.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterInstance.cs @@ -56,11 +56,11 @@ public void Dispose() disposable.Dispose(); break; case IAsyncDisposable asyncDisposable: - { - using var context = BenchmarkSynchronizationContext.CreateAndSetCurrent(); - context.ExecuteUntilComplete(asyncDisposable.DisposeAsync()); - break; - } + { + using var context = BenchmarkSynchronizationContext.CreateAndSetCurrent(); + context.ExecuteUntilComplete(asyncDisposable.DisposeAsync()); + break; + } } } diff --git a/src/BenchmarkDotNet/Parameters/ParameterValues.cs b/src/BenchmarkDotNet/Parameters/ParameterValues.cs index de8d19fc44..d69466b799 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterValues.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterValues.cs @@ -1,4 +1,4 @@ -namespace BenchmarkDotNet.Parameters +namespace BenchmarkDotNet.Parameters { /// /// A parameter and the values it takes; the benchmark cases are the cartesian product of these. diff --git a/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs b/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs index 2a927e735c..c52d6aa14d 100644 --- a/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs +++ b/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs @@ -46,7 +46,7 @@ internal static IReadOnlyList CreateForParams(ParameterDefinitio // the whole array, because the generated code emits no index here to reach inside one with, and // unwrapping only the in-process side would have the two toolchains assign different values. if (values.All(value => value is object[] { Length: 1 } wrapper && SourceCodeHelper.IsCompilationTimeConstant(wrapper[0]))) - values = values.Select(value => ((object[]) value!)[0]).ToArray(); + values = values.Select(value => ((object[])value!)[0]).ToArray(); bool namesNothing = source.GetSourceReturnType().TryGetSourceElementType(out var elementType) && elementType == typeof(object); diff --git a/src/BenchmarkDotNet/Parameters/SourceRead.cs b/src/BenchmarkDotNet/Parameters/SourceRead.cs index f24a03268f..65e6ff333d 100644 --- a/src/BenchmarkDotNet/Parameters/SourceRead.cs +++ b/src/BenchmarkDotNet/Parameters/SourceRead.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace BenchmarkDotNet.Parameters; diff --git a/src/BenchmarkDotNet/Running/BenchmarkConverter.cs b/src/BenchmarkDotNet/Running/BenchmarkConverter.cs index 4eecac5bfa..49a1c46002 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkConverter.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkConverter.cs @@ -375,7 +375,7 @@ private static IReadOnlyList GetValidValues(object?[] values, Pa // [EnumeratorCancellation] CancellationToken); we invoke it with their default values. object? sourceValue = source is MethodInfo method ? method.Invoke(method.IsStatic ? null : Activator.CreateInstance(sourceType), GetDefaultArguments(method)) - : ((PropertyInfo) source).GetValue(((PropertyInfo) source).GetMethod!.IsStatic ? null : Activator.CreateInstance(sourceType)!); + : ((PropertyInfo)source).GetValue(((PropertyInfo)source).GetMethod!.IsStatic ? null : Activator.CreateInstance(sourceType)!); return await ToArrayAsync(sourceValue, source, sourceType, declarationErrors, cancellationToken).ConfigureAwait() is { } values ? (source, values) @@ -413,7 +413,7 @@ private static ValidationError NoSourceMemberFound(Type sourceType, string sourc { var sourceType = memberInfo is MethodInfo methodInfo ? methodInfo.ReturnType - : ((PropertyInfo) memberInfo).PropertyType; + : ((PropertyInfo)memberInfo).PropertyType; // Checked before the shape, so a null async source reports the same declaration error a null // synchronous source does instead of failing while being enumerated. diff --git a/src/BenchmarkDotNet/Toolchains/CsProj/CsProjBuilder.cs b/src/BenchmarkDotNet/Toolchains/CsProj/CsProjBuilder.cs index 6708d78851..2be677a661 100644 --- a/src/BenchmarkDotNet/Toolchains/CsProj/CsProjBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/CsProj/CsProjBuilder.cs @@ -410,7 +410,7 @@ protected async ValueTask GatherReferencesAsync(BuildPartition buildPartition, A itemGroup.Add(new XElement("Reference", new XAttribute("Include", Path.GetFileNameWithoutExtension(assemblyFile)), new XElement("HintPath", assemblyFile) - // TODO: Add Aliases here for extern alias #2289 + // TODO: Add Aliases here for extern alias #2289 )); } diff --git a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs index c9fc00e517..aba218e8e1 100644 --- a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs @@ -126,7 +126,7 @@ internal static void LogEnvVars(DotNetCliCommand command) if (startInfo.Environment.Keys.Count > 0) { command.Logger.WriteLineInfo("// Environment Variables:"); - foreach (var entry in startInfo.Environment.OrderBy(x=>x.Key)) + foreach (var entry in startInfo.Environment.OrderBy(x => x.Key)) { command.Logger.WriteLine($"\t[{entry.Key}] = \"{entry.Value}\""); } diff --git a/src/BenchmarkDotNet/Toolchains/Executor.cs b/src/BenchmarkDotNet/Toolchains/Executor.cs index 4c682ad26c..989b8c0cfd 100644 --- a/src/BenchmarkDotNet/Toolchains/Executor.cs +++ b/src/BenchmarkDotNet/Toolchains/Executor.cs @@ -94,7 +94,7 @@ private async ValueTask ExecuteCore(BenchmarkCase benchmarkCase, results = broker.Results; prefixedOutput = broker.PrefixedOutput; - if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo("// The benchmarking process did not quit on time, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncCoreEmitterBase.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncCoreEmitterBase.cs index da2d87a3f6..b59606d8d7 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncCoreEmitterBase.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncCoreEmitterBase.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Attributes; +using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Extensions; using BenchmarkDotNet.Helpers.Reflection.Emit; diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs index fe80901633..84f8a7154b 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Helpers.Reflection.Emit; +using BenchmarkDotNet.Helpers.Reflection.Emit; using System.Diagnostics; using System.Reflection; using System.Reflection.Emit; diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs index 8be9348304..d87ba0162e 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs @@ -7,7 +7,7 @@ namespace BenchmarkDotNet.Toolchains.InProcess.Emit.Implementation; partial class RunnableEmitter { // MethodImplAttributes.Async was added in .Net 10. - private const MethodImplAttributes AsyncMethodImplAttribute = (MethodImplAttributes) 8192; + private const MethodImplAttributes AsyncMethodImplAttribute = (MethodImplAttributes)8192; // Looked up at runtime because the frameworks BenchmarkDotNet targets either lack it or mark it experimental. private static readonly Lazy AsyncHelpersType = new(() => diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs index 164b76e232..600bf308d9 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Extensions; +using BenchmarkDotNet.Extensions; using BenchmarkDotNet.Helpers.Reflection.Emit; using System.Reflection; using System.Reflection.Emit; diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs index a74a1f133e..190926e4ac 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Helpers.Reflection.Emit; +using BenchmarkDotNet.Helpers.Reflection.Emit; using BenchmarkDotNet.Running; using Perfolizer.Horology; using System.Reflection; diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs index 9110509cff..5b9891051e 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Engines; +using BenchmarkDotNet.Engines; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Exporters; using BenchmarkDotNet.Helpers; @@ -63,7 +63,7 @@ private static async ValueTask RunCore(Type runnableType, IHost host, ExecutePar // generated member by name on a type the benchmark also contributes members to. var constructorArguments = new object?[1]; var instance = runnableType.GetConstructors().Single().Invoke(constructorArguments); - var trickTheJit = (Action) constructorArguments[0]!; + var trickTheJit = (Action)constructorArguments[0]!; FillMembers(instance, benchmarkCase, host.CancellationToken); host.WriteLine(); diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs index 049f3316de..386e676e59 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Extensions; +using BenchmarkDotNet.Extensions; using Perfolizer.Horology; using System.Reflection; diff --git a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs index 73a5765d28..5e43a81bda 100644 --- a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs @@ -67,7 +67,7 @@ internal static IEnumerable GetAllReferences(BenchmarkBuildInfo buildI .Append(buildInfo.BenchmarkCase.Descriptor.Type.GetTypeInfo().Assembly) // This assembly does not have to have a reference to BenchmarkDotNet (e.g. custom framework for benchmarking that internally uses BenchmarkDotNet) .Concat(BenchmarkDotNetReferences.Assemblies) // BenchmarkDotNet + Perfolizer .Concat(BenchmarkDotNetReferences.Types.Select(type => type.GetTypeInfo().Assembly)) // TaskExtensions (ValueTask) - // In-process diagnoser handlers + // In-process diagnoser handlers .Concat(buildInfo.CompositeInProcessDiagnoser.GetHandlerData(buildInfo.BenchmarkCase) .Select(handlerData => handlerData.HandlerType?.GetTypeInfo().Assembly) .WhereNotNull()) diff --git a/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs b/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs index d28cbc8656..a9b7bf0631 100644 --- a/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs @@ -57,7 +57,7 @@ private async ValueTask ProbeWebSocketSupportAsync(BenchmarkCase benchmark } finally { - if (!probeProcess.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!probeProcess.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { probeProcess.KillTree(); } @@ -144,7 +144,7 @@ private async ValueTask Execute(BenchmarkCase benchmarkCase, Benc if (isFileBasedIpc) { - ((FileStdOutListener) processListener.Listener).AttachProcessOutputReader(processOutputReader); + ((FileStdOutListener)processListener.Listener).AttachProcessOutputReader(processOutputReader); } await diagnoser.HandleAsync(HostSignal.BeforeProcessStart, new DiagnoserActionParameters(processListener.Process, benchmarkCase, benchmarkId), cancellationToken).ConfigureAwait(); @@ -218,7 +218,7 @@ await broker.ProcessData(cancellationToken) .WaitAsync(TimeSpan.FromMinutes(settings.ProcessTimeoutMinutes)).ConfigureAwait(false); #pragma warning restore CA2016 // Forward the 'CancellationToken' parameter to methods - if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo($"// The benchmarking process did not quit within {ExecuteParameters.ProcessExitTimeout.TotalSeconds} seconds, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Validators/ParamsValidator.cs b/src/BenchmarkDotNet/Validators/ParamsValidator.cs index 68ec34c6d6..f425ea16b8 100644 --- a/src/BenchmarkDotNet/Validators/ParamsValidator.cs +++ b/src/BenchmarkDotNet/Validators/ParamsValidator.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Attributes; +using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Code; using BenchmarkDotNet.Extensions; using System.Reflection; diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs index fc7455faa8..4ee0886ad6 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Analyzers; +using BenchmarkDotNet.Analyzers; using BenchmarkDotNet.Analyzers.Attributes; using BenchmarkDotNet.Analyzers.Tests.Fixtures; using Microsoft.CodeAnalysis; diff --git a/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs b/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs index 0623d0ec69..9c2ff25c73 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Analysers; +using BenchmarkDotNet.Analysers; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Exporters; diff --git a/tests/BenchmarkDotNet.IntegrationTests/AsyncEnumerableParamsSourceTests.cs b/tests/BenchmarkDotNet.IntegrationTests/AsyncEnumerableParamsSourceTests.cs index 43ccd8ba43..775f10c882 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AsyncEnumerableParamsSourceTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AsyncEnumerableParamsSourceTests.cs @@ -188,7 +188,7 @@ public int Benchmark(Item first, Item second) // still ambient inside it. Reading a source must not capture it: marshaling belongs to the caller, which applies // it with ConfigureAwait on the enumerable. The reflection path used for value-type elements handed the // continuation to the user's raw awaiter, which captured the context and posted to it. -// Both element kinds, because they are read through different machinery: a value-type element goes through + // Both element kinds, because they are read through different machinery: a value-type element goes through // the reflection loop, a reference-type one through the covariance cast, which had no guard here at all. [Theory] [InlineData(typeof(ValueTypeAsyncParamsSource))] diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs index af2018e052..ca33894fb0 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Attributes.CompilerServices; +using BenchmarkDotNet.Attributes.CompilerServices; using BenchmarkDotNet.Code; using BenchmarkDotNet.Loggers; using Mono.Cecil; diff --git a/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs b/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs index 0cb4b819c2..6d6880b0ef 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs @@ -325,7 +325,7 @@ public void JitStage_OverloadsAreNotConfused() using var observer = JitListener.Create([watched.Method]); - RunJitStageToCompletion(observer, [driven.Method], i => driven((int) i)); + RunJitStageToCompletion(observer, [driven.Method], i => driven((int)i)); Assert.NotNull(observer); Assert.False(observer.ReachedFinalTier, @@ -342,7 +342,7 @@ public void JitStage_CanonicalizedOverloadsAreNotConfused() using var observer = JitListener.Create([watched.Method]); - RunJitStageToCompletion(observer, [driven.Method], i => driven((int) i)); + RunJitStageToCompletion(observer, [driven.Method], i => driven((int)i)); Assert.NotNull(observer); Assert.False(observer.ReachedFinalTier, diff --git a/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs b/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs index 34f31f6545..b93a001357 100644 --- a/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs +++ b/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs @@ -576,7 +576,7 @@ public class MismatchedEnumSource public static IEnumerable Values() { yield return "not an enum"; } - [Benchmark] public int Run() => (int) Value; + [Benchmark] public int Run() => (int)Value; } public class ErasedEnumSource @@ -586,7 +586,7 @@ public class ErasedEnumSource public static IEnumerable Values() { yield return 2; } - [Benchmark] public int Run() => (int) Value; + [Benchmark] public int Run() => (int)Value; } public static class ArgumentListSource diff --git a/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs b/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs index 85f7c81d72..664caea5c7 100644 --- a/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs +++ b/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs @@ -136,7 +136,7 @@ public void EveryDotNetRuntimeTrimsAnythingPastMajorMinor(string prefix) "mono" => MonoCoreRuntime.From(new Version(99, 0, 30)), "monowasm" => MonoWasmRuntime.From(new Version(99, 0, 30)), "monowasmaot" => MonoWasmAotRuntime.From(new Version(99, 0, 30)), - _ => (Runtime) CoreWasmRuntime.From(new Version(99, 0, 30)), + _ => (Runtime)CoreWasmRuntime.From(new Version(99, 0, 30)), }; Assert.Equal(new Version(99, 0), withBuild.Version); diff --git a/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs index 17917547a3..f703b7135e 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs @@ -707,7 +707,7 @@ public async IAsyncEnumerable Throwing() throw new Exception("This iterator throws"); } } - + // An argument is passed to the benchmark method, so there is no member of that name to assign it to. // Reporting one is a validation error against a benchmark that runs perfectly well. [Fact] @@ -727,5 +727,5 @@ public class WithArguments [Arguments(1)] public int Bench(int value) => value + Parameter; } -} + } } \ No newline at end of file diff --git a/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs index 6239635077..78110029ee 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs @@ -1,4 +1,4 @@ -using BenchmarkDotNet.Attributes; +using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; using BenchmarkDotNet.Validators; using System.Diagnostics.CodeAnalysis; diff --git a/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs index 8362fcf51e..73dcd91db6 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs @@ -337,7 +337,7 @@ private static async Task AssertInconsistent() return validationErrors; } - + [Fact] public async Task ARefStructCurrentIsLeftOutOfTheComparisonRatherThanRefused() { @@ -417,5 +417,5 @@ public struct SpanEnumerator public ValueTask MoveNextAsync() => new(index++ < 2); } } -} + } } \ No newline at end of file From 356033fe8acd508dd47ec02c3350cea02972c1ae Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:22:30 +0900 Subject: [PATCH 2/9] chore: enable insert_final_newline setting by default --- .editorconfig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 23a0e85f97..a6bd1a37f3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,7 @@ end_of_line = lf indent_style = space indent_size = 4 trim_trailing_whitespace = true -insert_final_newline = unset +insert_final_newline = true # JSON files [*.json] @@ -29,6 +29,15 @@ end_of_line = crlf [*.md] trim_trailing_whitespace = false +# Verify settings +[*.{received,verified}.txt] +charset = utf-8-bom +indent_size = unset +indent_style = unset +insert_final_newline = false +tab_width = unset +trim_trailing_whitespace = false + # C# files [*.cs] # IDE0160: Use block-scoped namespace From 4a29455d894066c058d4292168aaf539bfc2c9fd Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Fri, 16 Oct 2026 22:22:46 +0900 Subject: [PATCH 3/9] chore: apply dotnet format command --- samples/BenchmarkDotNet.Samples/IntroArguments.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroArgumentsPriority.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroArgumentsSource.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroArrayParam.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroBenchmarkBaseline.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCategories.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCategoryBaseline.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCategoryDiscoverer.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroColdStart.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroComparableComplexParam.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroConfigSource.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroConfigUnion.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCustomMono.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroCustomMonoArguments.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDisassembly.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDisassemblyAllJits.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDisassemblyDry.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDisassemblyRyuJit.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDotMemoryDiagnoser.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroDotTraceDiagnoser.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroEventPipeProfiler.cs | 2 +- .../BenchmarkDotNet.Samples/IntroEventPipeProfilerAdvanced.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroExport.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroExportJson.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroFilters.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroFluentConfigBuilder.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroGcMode.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroGenericTypeArguments.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroInProcess.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroInProcessWrongEnv.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroJitStatsDiagnoser.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroJobBaseline.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroJoin.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroMonitoring.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroMultimodal.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroNuGet.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroOrderManual.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroOutliers.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroParams.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroParamsPriority.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroParamsSource.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroPercentiles.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroPerfCollectProfiler.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroRankColumn.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroRatioSD.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroRatioStyle.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSetupCleanupGlobal.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSetupCleanupTarget.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSmokeEmptyBasic.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSmokeIncrements.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSmokeStringBuilder.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSmokeValueTypes.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroStaThread.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroStatisticalTesting.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroStatisticsColumns.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroStopOnFirstError.cs | 2 +- samples/BenchmarkDotNet.Samples/IntroSummaryStyle.cs | 2 +- samples/BenchmarkDotNet.Samples/Properties/AssemblyInfo.cs | 2 +- src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs | 2 +- .../Attributes/ArgumentsAttributeAnalyzer.cs | 2 +- .../Attributes/GeneralArgumentAttributesAnalyzer.cs | 2 +- .../Attributes/GeneralParameterAttributesAnalyzer.cs | 2 +- .../Attributes/ParamsAllValuesAttributeAnalyzer.cs | 2 +- .../Attributes/ParamsAttributeAnalyzer.cs | 2 +- src/BenchmarkDotNet.Analyzers/BenchmarkRunner/RunAnalyzer.cs | 2 +- src/BenchmarkDotNet.Analyzers/General/BenchmarkClassAnalyzer.cs | 2 +- .../Attributes/ArgumentsAttribute.cs | 2 +- .../Attributes/ArgumentsSourceAttribute.cs | 2 +- .../Attributes/BenchmarkAttribute.cs | 2 +- .../Attributes/BenchmarkCategoryAttribute.cs | 2 +- .../Attributes/CompilerServices/AggressivelyOptimizeMethods.cs | 2 +- .../Attributes/GenericTypeArgumentsAttribute.cs | 2 +- .../Attributes/GlobalCleanupAttribute.cs | 2 +- .../Attributes/GlobalSetupAttribute.cs | 2 +- .../Attributes/IterationCleanupAttribute.cs | 2 +- .../Attributes/ParamsAllValuesAttribute.cs | 2 +- .../Attributes/ParamsSourceAttribute.cs | 2 +- .../ConcurrencyVisualizerProfiler.cs | 2 +- .../Configs/ConcurrencyVisualizerProfilerAttribute.cs | 2 +- .../Configs/EtwProfilerAttribute.cs | 2 +- .../Configs/InliningDiagnoserAttribute.cs | 2 +- .../Configs/JitStatsDiagnoserAttribute.cs | 2 +- .../Configs/NativeMemoryProfilerAttribute.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/EtwProfiler.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/HardwareCounters.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/NativeMemoryProfiler.cs | 2 +- src/BenchmarkDotNet.Diagnostics.Windows/Sessions.cs | 2 +- .../Tracing/BenchmarkEvent.cs | 2 +- .../Tracing/EngineEventLogParser.cs | 2 +- .../Tracing/IterationEvent.cs | 2 +- .../Tracing/NativeMemoryLogParser.cs | 2 +- .../Tracing/TraceLogParser.cs | 2 +- .../DotMemoryDiagnoserAttribute.cs | 2 +- .../DotTraceDiagnoserAttribute.cs | 2 +- src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs | 2 +- .../Remoting/TestExecutionRecorderWrapper.cs | 2 +- src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs | 2 +- src/BenchmarkDotNet/Analysers/AnalyserBase.cs | 2 +- src/BenchmarkDotNet/Analysers/CompositeAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/Conclusion.cs | 2 +- src/BenchmarkDotNet/Analysers/ConclusionHelper.cs | 2 +- src/BenchmarkDotNet/Analysers/ConclusionKind.cs | 2 +- src/BenchmarkDotNet/Analysers/EnvironmentAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/HideColumnsAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/IAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/MinIterationTimeAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/MultimodalDistributionAnalyzer.cs | 2 +- src/BenchmarkDotNet/Analysers/OutliersAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/RuntimeErrorAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/ZeroMeasurementAnalyser.cs | 2 +- src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs | 2 +- src/BenchmarkDotNet/Attributes/CategoryDiscovererAttribute.cs | 2 +- .../Attributes/Columns/AllStatisticsColumnAttribute.cs | 2 +- .../Attributes/Columns/BaselineColumnAttribute.cs | 2 +- .../Attributes/Columns/CategoriesColumnAttribute.cs | 2 +- .../Attributes/Columns/ColumnConfigBaseAttribute.cs | 2 +- .../Columns/ConfidenceIntervalErrorColumnAttribute.cs | 2 +- .../Attributes/Columns/IterationsColumnAttribute.cs | 2 +- .../Attributes/Columns/KurtosisColumnAttribute.cs | 2 +- .../Attributes/Columns/LogicalGroupColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/MValueColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/MaxColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/MeanColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/MedianColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/MinColumnAttribute.cs | 2 +- .../Attributes/Columns/NamespaceColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/Q1ColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/Q3ColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/RankColumnAttribute.cs | 2 +- .../Attributes/Columns/SkewnessColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Columns/StdDevColumnAttribute.cs | 2 +- .../Attributes/Columns/StdErrorColumnAttribute.cs | 2 +- .../Attributes/Columns/WelchTTestPValueColumnAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/ConfigAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/DisassemblyDiagnoserAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/EventPipeProfilerAttribute.cs | 2 +- .../Attributes/Exporters/AsciiDocExporterAttribute.cs | 2 +- .../Attributes/Exporters/CsvExporterAttribute.cs | 2 +- .../Attributes/Exporters/CsvMeasurementsExporterAttribute.cs | 2 +- .../Attributes/Exporters/ExporterConfigBaseAttribute.cs | 2 +- .../Attributes/Exporters/HtmlExporterAttribute.cs | 2 +- .../Attributes/Exporters/JsonExporterAttribute.cs | 2 +- .../Attributes/Exporters/MarkdownExporterAttribute.cs | 2 +- .../Attributes/Exporters/OpenMetricsExporterAttribute.cs | 2 +- .../Attributes/Exporters/PerfonarExporterAttribute.cs | 2 +- .../Attributes/Exporters/PlainExporterAttribute.cs | 2 +- .../Attributes/Exporters/RPlotExporterAttribute.cs | 2 +- .../Attributes/Filters/AllCategoriesFilterAttribute.cs | 2 +- .../Attributes/Filters/AnyCategoriesFilterAttribute.cs | 2 +- .../Attributes/Filters/FilterConfigBaseAttribute.cs | 2 +- .../Filters/OperatingSystemsArchitectureFilterAttribute.cs | 2 +- .../Attributes/Filters/OperatingSystemsFilterAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/GroupBenchmarksByAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/HardwareCountersAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/HideColumnsAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/DryJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/InProcessAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX64JobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX86JobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/LongRunJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/MediumRunJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/MonoJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/RyuJitX64JobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/RyuJitX86JobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/ShortRunJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/SimpleJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Jobs/VeryLongRunJobAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/KeepBenchmarkFilesAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/MemoryDiagnoserAttribute.cs | 2 +- .../Attributes/Mutators/EvaluateOverheadAttribute.cs | 2 +- .../Attributes/Mutators/GcConcurrentAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Mutators/GcForceAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Mutators/GcServerAttribute.cs | 2 +- .../Attributes/Mutators/InnerIterationCountAttribute.cs | 2 +- .../Attributes/Mutators/InvocationCountAttribute.cs | 2 +- .../Attributes/Mutators/IterationCountAttribute.cs | 2 +- .../Attributes/Mutators/IterationTimeAttribute.cs | 2 +- .../Attributes/Mutators/JobMutatorConfigBaseAttribute.cs | 2 +- .../Attributes/Mutators/MaxAbsoluteErrorAttribute.cs | 2 +- .../Attributes/Mutators/MaxIterationCountAttribute.cs | 2 +- .../Attributes/Mutators/MaxRelativeErrorAttribute.cs | 2 +- .../Attributes/Mutators/MaxWarmupCountAttribute.cs | 2 +- .../Attributes/Mutators/MinInvokeCountAttribute.cs | 2 +- .../Attributes/Mutators/MinIterationCountAttribute.cs | 2 +- .../Attributes/Mutators/MinIterationTimeAttribute.cs | 2 +- .../Attributes/Mutators/MinWarmupCountAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Mutators/OutliersAttribute.cs | 2 +- .../Attributes/Mutators/ProcessCountAttribute.cs | 2 +- .../Attributes/Mutators/RunOncePerIterationAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/Mutators/WarmupCountAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/OrdererAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/PerfCollectProfilerAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/StopOnFirstErrorAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/ThreadingDiagnoserAttribute.cs | 2 +- src/BenchmarkDotNet/Attributes/UnicodeConsoleLoggerAttribute.cs | 2 +- .../Attributes/Validators/ExecutionValidatorAttribute.cs | 2 +- .../Attributes/Validators/ReturnValueValidatorAttribute.cs | 2 +- .../Attributes/Validators/ValidatorConfigBaseAttribute.cs | 2 +- src/BenchmarkDotNet/Characteristics/Characteristic.cs | 2 +- src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs | 2 +- src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs | 2 +- src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs | 2 +- src/BenchmarkDotNet/Characteristics/CharacteristicPresenter.cs | 2 +- src/BenchmarkDotNet/Characteristics/CharacteristicSet.cs | 2 +- .../Characteristics/CharacteristicSetPresenter.cs | 2 +- src/BenchmarkDotNet/Characteristics/Characteristic`1.cs | 2 +- src/BenchmarkDotNet/Characteristics/CompositeResolver.cs | 2 +- src/BenchmarkDotNet/Characteristics/IResolver.cs | 2 +- src/BenchmarkDotNet/Characteristics/Resolver.cs | 2 +- src/BenchmarkDotNet/Code/CodeGenerator.cs | 2 +- src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs | 2 +- src/BenchmarkDotNet/Columns/BaselineColumn.cs | 2 +- src/BenchmarkDotNet/Columns/BaselineCustomColumn.cs | 2 +- src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs | 2 +- src/BenchmarkDotNet/Columns/CategoriesColumn.cs | 2 +- src/BenchmarkDotNet/Columns/Column.cs | 2 +- src/BenchmarkDotNet/Columns/ColumnCategory.cs | 2 +- src/BenchmarkDotNet/Columns/ColumnExtensions.cs | 2 +- src/BenchmarkDotNet/Columns/CompositeColumnProvider.cs | 2 +- src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs | 2 +- src/BenchmarkDotNet/Columns/EmptyColumnProvider.cs | 2 +- src/BenchmarkDotNet/Columns/IColumnHidingRule.cs | 2 +- src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs | 2 +- src/BenchmarkDotNet/Columns/LogicalGroupColumn.cs | 2 +- src/BenchmarkDotNet/Columns/MetricColumn.cs | 2 +- src/BenchmarkDotNet/Columns/ParamColumn.cs | 2 +- src/BenchmarkDotNet/Columns/RankColumn.cs | 2 +- src/BenchmarkDotNet/Columns/RatioColumnStyle.cs | 2 +- src/BenchmarkDotNet/Columns/StatisticColumn.cs | 2 +- src/BenchmarkDotNet/Columns/StatisticalTestColumn.cs | 2 +- src/BenchmarkDotNet/Columns/TagColumn.cs | 2 +- src/BenchmarkDotNet/Columns/TargetMethodColumn.cs | 2 +- src/BenchmarkDotNet/Configs/BenchmarkLogicalGroupRule.cs | 2 +- src/BenchmarkDotNet/Configs/ConfigUnionRule.cs | 2 +- src/BenchmarkDotNet/Configs/DebugConfig.cs | 2 +- src/BenchmarkDotNet/Configs/DefaultConfig.cs | 2 +- src/BenchmarkDotNet/Configs/IConfig.cs | 2 +- src/BenchmarkDotNet/Configs/IConfigSource.cs | 2 +- src/BenchmarkDotNet/Configs/WakeLockType.cs | 2 +- .../ConsoleArguments/LevenshteinDistanceCalculator.cs | 2 +- .../ConsoleArguments/ListBenchmarks/BenchmarkCasesPrinter.cs | 2 +- .../ListBenchmarks/FlatBenchmarkCasesPrinter.cs | 2 +- .../ConsoleArguments/ListBenchmarks/IBenchmarkCasesPrinter.cs | 2 +- .../ConsoleArguments/ListBenchmarks/ListBechnmarkCaseMode.cs | 2 +- .../ListBenchmarks/TreeBenchmarkCasesPrinter.cs | 2 +- src/BenchmarkDotNet/ConsoleArguments/LoggerWrapper.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/ICpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuInfoParser.cs | 2 +- .../Detectors/Cpu/Windows/PowershellWmiCpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/Windows/WindowsCpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/macOS/MacOsCpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/Cpu/macOS/SysctlCpuInfoParser.cs | 2 +- src/BenchmarkDotNet/Detectors/CpuDetector.cs | 2 +- src/BenchmarkDotNet/Detectors/OsDetector.cs | 2 +- .../Diagnosers/AllocatedMemoryMetricDescriptor.cs | 2 +- .../Diagnosers/AllocatedNativeMemoryDescriptor.cs | 2 +- src/BenchmarkDotNet/Diagnosers/DiagnoserActionParameters.cs | 2 +- src/BenchmarkDotNet/Diagnosers/DiagnoserResults.cs | 2 +- src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs | 2 +- src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs | 2 +- src/BenchmarkDotNet/Diagnosers/ExceptionDiagnoser.cs | 2 +- src/BenchmarkDotNet/Diagnosers/HardwareCounter.cs | 2 +- src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs | 2 +- src/BenchmarkDotNet/Diagnosers/IHardwareCounterDiagnoser.cs | 2 +- src/BenchmarkDotNet/Diagnosers/IProfiler.cs | 2 +- .../Diagnosers/InProcessDiagnoserActionParameters.cs | 2 +- src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs | 2 +- src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs | 2 +- src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs | 2 +- src/BenchmarkDotNet/Diagnosers/MemoryDiagnoserConfig.cs | 2 +- src/BenchmarkDotNet/Diagnosers/PmcMetricDescriptor.cs | 2 +- src/BenchmarkDotNet/Diagnosers/PmcStats.cs | 2 +- src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs | 2 +- src/BenchmarkDotNet/Diagnosers/RunMode.cs | 2 +- src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs | 2 +- src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs | 2 +- src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs | 2 +- src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs | 2 +- src/BenchmarkDotNet/Disassemblers/DataContracts.cs | 2 +- src/BenchmarkDotNet/Disassemblers/DisassemblyAnalyzer.cs | 2 +- src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs | 2 +- src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoserConfig.cs | 2 +- src/BenchmarkDotNet/Disassemblers/DisassemblySyntax.cs | 2 +- .../Disassemblers/Exporters/DisassemblyPrettifier.cs | 2 +- .../Exporters/GithubMarkdownDiffDisassemblyExporter.cs | 2 +- .../Exporters/GithubMarkdownDisassemblyExporter.cs | 2 +- .../Disassemblers/Exporters/HtmlDisassemblyExporter.cs | 2 +- src/BenchmarkDotNet/Disassemblers/MonoDisassembler.cs | 2 +- src/BenchmarkDotNet/Engines/BenchmarkSignal.cs | 2 +- src/BenchmarkDotNet/Engines/Consumer.cs | 2 +- src/BenchmarkDotNet/Engines/ConsumerExtensions.cs | 2 +- src/BenchmarkDotNet/Engines/DeadCodeEliminationHelper.cs | 2 +- src/BenchmarkDotNet/Engines/Engine.cs | 2 +- src/BenchmarkDotNet/Engines/EngineActualStage.cs | 2 +- src/BenchmarkDotNet/Engines/EngineEventSource.cs | 2 +- src/BenchmarkDotNet/Engines/EngineFactory.cs | 2 +- src/BenchmarkDotNet/Engines/EngineJitStage.cs | 2 +- src/BenchmarkDotNet/Engines/EngineParameters.cs | 2 +- src/BenchmarkDotNet/Engines/EnginePilotStage.cs | 2 +- src/BenchmarkDotNet/Engines/EngineResolver.cs | 2 +- src/BenchmarkDotNet/Engines/EngineStage.cs | 2 +- src/BenchmarkDotNet/Engines/EngineWarmupStage.cs | 2 +- src/BenchmarkDotNet/Engines/HostSignal.cs | 2 +- src/BenchmarkDotNet/Engines/IEngine.cs | 2 +- src/BenchmarkDotNet/Engines/IEngineFactory.cs | 2 +- src/BenchmarkDotNet/Engines/IterationData.cs | 2 +- src/BenchmarkDotNet/Engines/IterationMode.cs | 2 +- src/BenchmarkDotNet/Engines/IterationStage.cs | 2 +- src/BenchmarkDotNet/Engines/RunResults.cs | 2 +- src/BenchmarkDotNet/Engines/RunStrategy.cs | 2 +- src/BenchmarkDotNet/Engines/WorkloadValueTaskSource.cs | 2 +- src/BenchmarkDotNet/Environments/BenchmarkEnvironmentInfo.cs | 2 +- src/BenchmarkDotNet/Environments/EnvironmentResolver.cs | 2 +- src/BenchmarkDotNet/Environments/GcResolver.cs | 2 +- src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs | 2 +- src/BenchmarkDotNet/Environments/InfrastructureResolver.cs | 2 +- src/BenchmarkDotNet/Environments/Jit.cs | 2 +- src/BenchmarkDotNet/Exporters/AsciiDocExporter.cs | 2 +- src/BenchmarkDotNet/Exporters/CompositeExporter.cs | 2 +- src/BenchmarkDotNet/Exporters/Csv/CsvHelper.cs | 2 +- src/BenchmarkDotNet/Exporters/Csv/CsvSeparator.cs | 2 +- src/BenchmarkDotNet/Exporters/Csv/CsvSeparatorExtensions.cs | 2 +- src/BenchmarkDotNet/Exporters/DefaultExporters.cs | 2 +- src/BenchmarkDotNet/Exporters/ExporterBase.cs | 2 +- src/BenchmarkDotNet/Exporters/IExporter.cs | 2 +- src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs | 2 +- src/BenchmarkDotNet/Exporters/Json/JsonExporter.cs | 2 +- src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs | 2 +- src/BenchmarkDotNet/Extensions/AssemblyExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/CommonExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/CultureInfoExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/DoubleExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/EncodingExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/MathExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/StatisticsExtensions.cs | 2 +- src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs | 2 +- src/BenchmarkDotNet/Filters/AllCategoriesFilter.cs | 2 +- src/BenchmarkDotNet/Filters/AnyCategoriesFilter.cs | 2 +- src/BenchmarkDotNet/Filters/AttributesFilter.cs | 2 +- src/BenchmarkDotNet/Filters/DisjunctionFilter.cs | 2 +- src/BenchmarkDotNet/Filters/GlobFilter.cs | 2 +- src/BenchmarkDotNet/Filters/IFilter.cs | 2 +- src/BenchmarkDotNet/Filters/NameFilter.cs | 2 +- src/BenchmarkDotNet/Filters/SimpleFilter.cs | 2 +- src/BenchmarkDotNet/Filters/UnionFilter.cs | 2 +- src/BenchmarkDotNet/Helpers/AsciiHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/AwaitHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs | 2 +- src/BenchmarkDotNet/Helpers/ExternalToolsHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/FolderNameHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/GenericBenchmarksBuilder.cs | 2 +- src/BenchmarkDotNet/Helpers/HashCode.cs | 2 +- src/BenchmarkDotNet/Helpers/Hashing/BitOperations.cs | 2 +- src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs | 2 +- src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs | 2 +- src/BenchmarkDotNet/Helpers/LinuxOsReleaseHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/ProcessHelper.cs | 2 +- .../Helpers/Reflection.Emit/EmitParameterInfo.cs | 2 +- .../Helpers/Reflection.Emit/IlGeneratorCallExtensions.cs | 2 +- .../Reflection.Emit/IlGeneratorDefaultValueExtensions.cs | 2 +- .../Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs | 2 +- .../Helpers/Reflection.Emit/IlGeneratorStatementExtensions.cs | 2 +- .../Helpers/Reflection.Emit/MethodBuilderExtensions.cs | 2 +- .../Helpers/Reflection.Emit/TypeBuilderExtensions.cs | 2 +- src/BenchmarkDotNet/Helpers/ResourceHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/SectionsHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs | 2 +- src/BenchmarkDotNet/Helpers/UserInteractionHelper.cs | 2 +- src/BenchmarkDotNet/Helpers/XUnitHelper.cs | 2 +- src/BenchmarkDotNet/Jobs/AccuracyMode.cs | 2 +- src/BenchmarkDotNet/Jobs/EnvironmentMode.cs | 2 +- src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs | 2 +- src/BenchmarkDotNet/Jobs/GcMode.cs | 2 +- src/BenchmarkDotNet/Jobs/GcModeExtensions.cs | 2 +- src/BenchmarkDotNet/Jobs/InfrastructureMode.cs | 2 +- src/BenchmarkDotNet/Jobs/Job.cs | 2 +- src/BenchmarkDotNet/Jobs/JobComparer.cs | 2 +- src/BenchmarkDotNet/Jobs/JobExtensions.cs | 2 +- src/BenchmarkDotNet/Jobs/JobIdGenerator.cs | 2 +- src/BenchmarkDotNet/Jobs/JobMode`1.cs | 2 +- src/BenchmarkDotNet/Jobs/RunMode.cs | 2 +- src/BenchmarkDotNet/Loggers/AccumulationLogger.cs | 2 +- src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs | 2 +- src/BenchmarkDotNet/Loggers/CompositeLogger.cs | 2 +- src/BenchmarkDotNet/Loggers/ConsoleLogger.cs | 2 +- src/BenchmarkDotNet/Loggers/ILogger.cs | 2 +- src/BenchmarkDotNet/Loggers/LinqPadLogger.cs | 2 +- src/BenchmarkDotNet/Loggers/LogKind.cs | 2 +- src/BenchmarkDotNet/Loggers/LoggerExtensions.cs | 2 +- src/BenchmarkDotNet/Loggers/LoggerWithPrefix.cs | 2 +- src/BenchmarkDotNet/Loggers/NullLogger.cs | 2 +- src/BenchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs | 2 +- src/BenchmarkDotNet/Mathematics/MathHelper.cs | 2 +- src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs | 2 +- src/BenchmarkDotNet/Mathematics/NumeralSystem.cs | 2 +- src/BenchmarkDotNet/Mathematics/NumeralSystemExtensions.cs | 2 +- src/BenchmarkDotNet/Mathematics/PercentileValues.cs | 2 +- src/BenchmarkDotNet/Mathematics/RankHelper.cs | 2 +- src/BenchmarkDotNet/Mathematics/Statistics.cs | 2 +- src/BenchmarkDotNet/Models/BdnBenchmark.cs | 2 +- src/BenchmarkDotNet/Models/BdnEnvironment.cs | 2 +- src/BenchmarkDotNet/Models/BdnExecution.cs | 2 +- src/BenchmarkDotNet/Models/BdnHostInfo.cs | 2 +- src/BenchmarkDotNet/Models/BdnLifecycle.cs | 2 +- src/BenchmarkDotNet/Models/BdnSchema.cs | 2 +- src/BenchmarkDotNet/Order/CategoryComparer.cs | 2 +- src/BenchmarkDotNet/Order/DefaultOrderer.cs | 2 +- src/BenchmarkDotNet/Order/IOrderer.cs | 2 +- src/BenchmarkDotNet/Order/MethodOrderPolicy.cs | 2 +- src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs | 2 +- src/BenchmarkDotNet/Parameters/ParameterComparer.cs | 2 +- src/BenchmarkDotNet/Parameters/ParameterEqualityComparer.cs | 2 +- src/BenchmarkDotNet/Parameters/ParameterInstances.cs | 2 +- src/BenchmarkDotNet/Portability/Antivirus.cs | 2 +- src/BenchmarkDotNet/Portability/HyperV.cs | 2 +- src/BenchmarkDotNet/Portability/JitInfo.cs | 2 +- src/BenchmarkDotNet/Portability/RuntimeInformation.cs | 2 +- src/BenchmarkDotNet/Portability/StringExtensions.cs | 2 +- src/BenchmarkDotNet/Portability/VMware.cs | 2 +- src/BenchmarkDotNet/Portability/VirtualBox.cs | 2 +- src/BenchmarkDotNet/Portability/VirtualMachineHypervisor.cs | 2 +- src/BenchmarkDotNet/Properties/BenchmarkDotNetInfo.cs | 2 +- src/BenchmarkDotNet/Reports/BaseliningStrategy.cs | 2 +- src/BenchmarkDotNet/Reports/BenchmarkReport.cs | 2 +- src/BenchmarkDotNet/Reports/BenchmarkReportExtensions.cs | 2 +- src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs | 2 +- src/BenchmarkDotNet/Reports/Measurement.cs | 2 +- src/BenchmarkDotNet/Reports/MeasurementExtensions.cs | 2 +- src/BenchmarkDotNet/Reports/Metric.cs | 2 +- src/BenchmarkDotNet/Reports/Summary.cs | 2 +- src/BenchmarkDotNet/Reports/SummaryExtensions.cs | 2 +- src/BenchmarkDotNet/Reports/SummaryStyle.cs | 2 +- src/BenchmarkDotNet/Reports/SummaryTableExtensions.cs | 2 +- src/BenchmarkDotNet/Running/BenchmarkBuildInfo.cs | 2 +- src/BenchmarkDotNet/Running/BenchmarkId.cs | 2 +- src/BenchmarkDotNet/Running/BenchmarkPartitioner.cs | 2 +- src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs | 2 +- src/BenchmarkDotNet/Running/BenchmarkSwitcher.cs | 2 +- src/BenchmarkDotNet/Running/DefaultCategoryDiscoverer.cs | 2 +- src/BenchmarkDotNet/Running/Descriptor.cs | 2 +- src/BenchmarkDotNet/Running/DescriptorComparer.cs | 2 +- src/BenchmarkDotNet/Running/ICategoryDiscoverer.cs | 2 +- src/BenchmarkDotNet/Running/IUserInteraction.cs | 2 +- src/BenchmarkDotNet/Running/TypeFilter.cs | 2 +- src/BenchmarkDotNet/Running/UserInteraction.cs | 2 +- src/BenchmarkDotNet/Running/WakeLock.cs | 2 +- src/BenchmarkDotNet/Toolchains/BuilderBase.cs | 2 +- src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunBuilder.cs | 2 +- .../Toolchains/DotNetCli/DotNetCliCommandExecutor.cs | 2 +- .../Toolchains/DotNetCli/DotNetCliCommandResult.cs | 2 +- src/BenchmarkDotNet/Toolchains/IExecutor.cs | 2 +- .../Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs | 2 +- .../InProcess/Emit/Implementation/Emitters/EmitExtensions.cs | 2 +- .../InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs | 2 +- .../Emit/Implementation/Emitters/SetupCleanupEmitter.cs | 2 +- .../InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs | 2 +- .../Emit/Implementation/Runnable/RunnableReflectionHelpers.cs | 2 +- .../Toolchains/InProcess/Emit/InProcessEmitArtifactsPath.cs | 2 +- .../Toolchains/InProcess/Emit/InProcessEmitExecutor.cs | 2 +- .../Toolchains/InProcess/Emit/InProcessEmitRunner.cs | 2 +- src/BenchmarkDotNet/Toolchains/InProcess/InProcessHost.cs | 2 +- src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs | 2 +- .../Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs | 2 +- .../Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs | 2 +- .../Toolchains/InProcess/NoEmit/IBenchmarkAction.cs | 2 +- .../Toolchains/InProcess/NoEmit/InProcessNoEmitExecutor.cs | 2 +- src/BenchmarkDotNet/Toolchains/Parameters/ExecuteParameters.cs | 2 +- src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs | 2 +- src/BenchmarkDotNet/Toolchains/Roslyn/RoslynWorkarounds.cs | 2 +- src/BenchmarkDotNet/Validators/BaselineValidator.cs | 2 +- src/BenchmarkDotNet/Validators/BenchmarkProcessValidator.cs | 2 +- src/BenchmarkDotNet/Validators/CompilationValidator.cs | 2 +- src/BenchmarkDotNet/Validators/CompositeValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ConfigValidator.cs | 2 +- src/BenchmarkDotNet/Validators/DeferredExecutionValidator.cs | 2 +- src/BenchmarkDotNet/Validators/DiagnosersValidator.cs | 2 +- src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ExecutionValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ExecutionValidatorBase.cs | 2 +- src/BenchmarkDotNet/Validators/GenericBenchmarksValidator.cs | 2 +- src/BenchmarkDotNet/Validators/IValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ParamsValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ReturnValueValidator.cs | 2 +- src/BenchmarkDotNet/Validators/RunModeValidator.cs | 2 +- src/BenchmarkDotNet/Validators/ValidationError.cs | 2 +- src/BenchmarkDotNet/Validators/ValidationErrorReporter.cs | 2 +- src/BenchmarkDotNet/Validators/ValidationParameters.cs | 2 +- .../AnalyzerTests/Attributes/ArgumentsAttributeAnalyzerTests.cs | 2 +- .../Attributes/GeneralArgumentAttributesAnalyzerTests.cs | 2 +- .../Attributes/GeneralParameterAttributesAnalyzerTests.cs | 2 +- .../Attributes/ParamsAllValuesAttributeAnalyzerTests.cs | 2 +- .../AnalyzerTests/Attributes/ParamsAttributeAnalyzerTests.cs | 2 +- .../AnalyzerTests/BenchmarkRunner/RunAnalyzerTests.cs | 2 +- .../AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs | 2 +- .../Fixtures/AnalyzerTestFixture.cs | 2 +- .../Fixtures/Extensions/TheoryDataExtensions.cs | 2 +- .../Fixtures/Generators/CombinationsGenerator.cs | 2 +- .../Fixtures/Serializable/ValueTupleDouble.cs | 2 +- .../Fixtures/Serializable/ValueTupleTriple.cs | 2 +- .../TheoryData/FieldOrPropertyDeclarationsTheoryData.cs | 2 +- .../TheoryData/NonPublicClassAccessModifiersTheoryData.cs | 2 +- .../TheoryData/NonPublicClassMemberAccessModifiersTheoryData.cs | 2 +- .../NonPublicPropertySetterAccessModifiersTheoryData.cs | 2 +- .../ScottPlotExporterTests.cs | 2 +- .../AssemblyConfigAttribute.cs | 2 +- .../AssemblyConfigBenchmarks.cs | 2 +- .../BenchmarksThatUseTypeFromCustomPathDll.cs | 2 +- .../BenchmarksThatUsesFileFromOutput.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../OptimizationsEnabledInCsproj.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../DotMemoryTests.cs | 2 +- .../DotTraceTests.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/AllSetupAndCleanupTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/AppConfigTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/AssemblyConfigTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/AsyncBenchmarksTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/AttributesTests.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/BaselineRatioColumnTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/CodeGenTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/CopyToOutputTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/CustomAwaitable.cs | 2 +- .../CustomBuildConfigurationTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/CustomEngineTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/CustomTask.cs | 2 +- .../Diagnosers/ProcessMetricsTests.cs | 2 +- .../DisassemblyDiagnoserTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/DryRunTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/EngineTests.cs | 2 +- .../EnvironmentVariablesTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/GcModeTests.cs | 2 +- .../InProcess.EmitTests/NaiveRunnableEmitDiff.cs | 2 +- .../InProcess.EmitTests/RunnableTestCasesHelperTypes.cs | 2 +- .../InProcess.EmitTests/SampleBenchmark.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs | 2 +- .../IntegrationTestSetupTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/JitOptimizationsTests.cs | 2 +- .../JitRuntimeValidationTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/LargeAddressAwareTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/MonoTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/MultipleRuntimesTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/PriorityTests.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/ProcessPropertiesTests.cs | 2 +- .../ProcessorArchitectureTest.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/Properties/AssemblyInfo.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/RunAsyncTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/RunStrategyTests.cs | 2 +- .../RunningEmptyBenchmarkTests.cs | 2 +- .../Shared/BenchmarkTestExecutor.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/Shared/Extensions.cs | 2 +- .../Shared/MisconfiguredEnvironmentException.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/Shared/TestConfigs.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/StatResultExtenderTests.cs | 2 +- .../BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/ToolchainTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/ValidatorsTest.cs | 2 +- .../ValuesReturnedByBenchmarkTest.cs | 2 +- tests/BenchmarkDotNet.IntegrationTests/Xunit/Constants.cs | 2 +- tests/BenchmarkDotNet.Tests/Analysers/OutliersAnalyserTests.cs | 2 +- .../Analysers/ZeroMeasurementHelperTests.cs | 2 +- .../BenchmarkDotNet.Tests/Attributes/MutatorAttributesTests.cs | 2 +- tests/BenchmarkDotNet.Tests/BenchmarkDotNetInfoTests.cs | 2 +- tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs | 2 +- tests/BenchmarkDotNet.Tests/CodeGeneratorTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Columns/RatioColumnTest.cs | 2 +- .../BenchmarkDotNet.Tests/Columns/StatisticalTestColumnTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Columns/TagColumnTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Common/AbsoluteEqualityComparer.cs | 2 +- tests/BenchmarkDotNet.Tests/Configs/CategoriesTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Configs/ConfigOptionsTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Configs/ConfigPerMethodTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Configs/EnvironmentVariableTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Configs/JobTests.cs | 2 +- tests/BenchmarkDotNet.Tests/CorrectionsSuggesterTests.cs | 2 +- tests/BenchmarkDotNet.Tests/CsvHelperTests.cs | 2 +- .../Detectors/Cpu/CpuInfoFormatterTests.cs | 2 +- .../Detectors/Cpu/CpuInfoParserTests_Cim.cs | 2 +- .../Detectors/Cpu/CpuInfoParserTests_Wmic.cs | 2 +- .../Detectors/Cpu/LinuxCpuInfoParserTests.cs | 2 +- .../Detectors/Cpu/SysctlCpuInfoParserTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Detectors/Cpu/TestHelper.cs | 2 +- .../Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs | 2 +- .../Arm64/Arm64DisassemblerTests.TryGetReferencedAddress.cs | 2 +- .../Arm64/Arm64DisassemblerTests.TryReadStubHead.cs | 2 +- .../Arm64/Arm64DisassemblerTests.TryResolvePreCode.cs | 2 +- .../Disassemblers/Arm64/Helpers/MockMemory.cs | 2 +- tests/BenchmarkDotNet.Tests/Engine/EngineActualStageTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Engine/EnginePilotStageTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Engine/EngineResultStageTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Engine/EngineWarmupStageTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Engine/EnumerateStagesTests.cs | 2 +- .../Environments/HostEnvironmentInfoTests.cs | 2 +- .../Exporters/CommonExporterVerifyTests.cs | 2 +- .../BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs | 2 +- tests/BenchmarkDotNet.Tests/FolderNameTests.cs | 2 +- tests/BenchmarkDotNet.Tests/FullNameProviderTests.cs | 2 +- tests/BenchmarkDotNet.Tests/GenericBuilderTests.cs | 2 +- tests/BenchmarkDotNet.Tests/GlobFilterTests.cs | 2 +- .../BenchmarkDotNet.Tests/Helpers/LinuxOsReleaseHelperTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Helpers/ShadowCopyHelperTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Infra/VerifyHelper.cs | 2 +- tests/BenchmarkDotNet.Tests/KnownIssue.cs | 2 +- .../BenchmarkDotNet.Tests/LevenshteinDistanceCalculatorTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Loggers/LoggerWithPrefixTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Mathematics/NumeralSystemTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Mathematics/RankTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Mathematics/StatisticsTests.cs | 2 +- tests/BenchmarkDotNet.Tests/MonoDisassemblyOutputParserTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Order/DefaultOrdererTests.cs | 2 +- tests/BenchmarkDotNet.Tests/ParameterComparerTests.cs | 2 +- tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarMock.cs | 2 +- .../Perfonar/Infra/PerfonarTestExtensions.cs | 2 +- tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs | 2 +- .../Properties/BenchmarkDotNetInfoTests.cs | 2 +- tests/BenchmarkDotNet.Tests/ReflectionTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs | 2 +- .../Reports/DefaultColumnProvidersTests.cs | 2 +- .../Reports/DisplayPrecisionManagerTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs | 2 +- .../Running/JobRuntimePropertiesComparerTests.cs | 2 +- .../Shared/Builders/HostEnvironmentInfoBuilder.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/Loggers/OutputLogger.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/Mocks/MockClock.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/Mocks/MockEngine.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/Mocks/MockFactory.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/TestCultureInfo.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/XUnit/EnvRequirement.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/XUnit/FactEnvSpecific.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/XUnit/SmartAssert.cs | 2 +- tests/BenchmarkDotNet.Tests/Shared/XUnit/TheoryEnvSpecific.cs | 2 +- tests/BenchmarkDotNet.Tests/SourceCodeHelperTests.cs | 2 +- tests/BenchmarkDotNet.Tests/StringExtensionsTests.cs | 2 +- tests/BenchmarkDotNet.Tests/SummaryStyleTests.cs | 2 +- tests/BenchmarkDotNet.Tests/TheoryDataHelper.cs | 2 +- tests/BenchmarkDotNet.Tests/TypeFilterTests.cs | 2 +- .../Validators/DeferredExecutionValidatorTests.cs | 2 +- .../BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs | 2 +- tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs | 2 +- .../Validators/ReturnValueValidatorTests.cs | 2 +- tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementCheckerTests.cs | 2 +- 661 files changed, 661 insertions(+), 661 deletions(-) diff --git a/samples/BenchmarkDotNet.Samples/IntroArguments.cs b/samples/BenchmarkDotNet.Samples/IntroArguments.cs index 63a4c1a76f..c91f0498b0 100644 --- a/samples/BenchmarkDotNet.Samples/IntroArguments.cs +++ b/samples/BenchmarkDotNet.Samples/IntroArguments.cs @@ -20,4 +20,4 @@ public void Benchmark(int a, int b) Thread.Sleep(a + b); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroArgumentsPriority.cs b/samples/BenchmarkDotNet.Samples/IntroArgumentsPriority.cs index 26cc83db19..6445334e6a 100644 --- a/samples/BenchmarkDotNet.Samples/IntroArgumentsPriority.cs +++ b/samples/BenchmarkDotNet.Samples/IntroArgumentsPriority.cs @@ -22,4 +22,4 @@ public IEnumerable Numbers() yield return new object[] { 1, 2 }; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroArgumentsSource.cs b/samples/BenchmarkDotNet.Samples/IntroArgumentsSource.cs index 7d13fa9b6c..8c4eef1288 100644 --- a/samples/BenchmarkDotNet.Samples/IntroArgumentsSource.cs +++ b/samples/BenchmarkDotNet.Samples/IntroArgumentsSource.cs @@ -46,4 +46,4 @@ public static IEnumerable TimeSpans() // For single argument it's an I yield return TimeSpan.FromMilliseconds(100); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroArrayParam.cs b/samples/BenchmarkDotNet.Samples/IntroArrayParam.cs index c216caec43..e7ce395cfd 100644 --- a/samples/BenchmarkDotNet.Samples/IntroArrayParam.cs +++ b/samples/BenchmarkDotNet.Samples/IntroArrayParam.cs @@ -27,4 +27,4 @@ public IEnumerable Data() yield return new object[] { Enumerable.Range(0, 100).ToArray(), 101 }; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroBenchmarkBaseline.cs b/samples/BenchmarkDotNet.Samples/IntroBenchmarkBaseline.cs index 14397db43a..c40c07cd47 100644 --- a/samples/BenchmarkDotNet.Samples/IntroBenchmarkBaseline.cs +++ b/samples/BenchmarkDotNet.Samples/IntroBenchmarkBaseline.cs @@ -13,4 +13,4 @@ public class IntroBenchmarkBaseline [Benchmark] public void Time150() => Thread.Sleep(150); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCategories.cs b/samples/BenchmarkDotNet.Samples/IntroCategories.cs index dd67a2cd29..0e77d1256d 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCategories.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCategories.cs @@ -24,4 +24,4 @@ public class IntroCategories [BenchmarkCategory("B", "2")] public void B2() => Thread.Sleep(10); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCategoryBaseline.cs b/samples/BenchmarkDotNet.Samples/IntroCategoryBaseline.cs index 532c9439a1..90a58dfff3 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCategoryBaseline.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCategoryBaseline.cs @@ -19,4 +19,4 @@ public class IntroCategoryBaseline [BenchmarkCategory("Slow"), Benchmark] public void Time600() => Thread.Sleep(600); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCategoryDiscoverer.cs b/samples/BenchmarkDotNet.Samples/IntroCategoryDiscoverer.cs index ba074317ce..f03c8c623a 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCategoryDiscoverer.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCategoryDiscoverer.cs @@ -41,4 +41,4 @@ public void Foo() { } [Benchmark] public void Bar() { } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroColdStart.cs b/samples/BenchmarkDotNet.Samples/IntroColdStart.cs index d8750d3e80..51b8df7cde 100644 --- a/samples/BenchmarkDotNet.Samples/IntroColdStart.cs +++ b/samples/BenchmarkDotNet.Samples/IntroColdStart.cs @@ -22,4 +22,4 @@ public void Foo() Thread.Sleep(10); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroComparableComplexParam.cs b/samples/BenchmarkDotNet.Samples/IntroComparableComplexParam.cs index 466675809f..8aa95bb8e6 100644 --- a/samples/BenchmarkDotNet.Samples/IntroComparableComplexParam.cs +++ b/samples/BenchmarkDotNet.Samples/IntroComparableComplexParam.cs @@ -41,4 +41,4 @@ public int CompareTo(object? obj) } } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroConfigSource.cs b/samples/BenchmarkDotNet.Samples/IntroConfigSource.cs index afdf7600cc..5e9b966bae 100644 --- a/samples/BenchmarkDotNet.Samples/IntroConfigSource.cs +++ b/samples/BenchmarkDotNet.Samples/IntroConfigSource.cs @@ -30,4 +30,4 @@ public void Foo() Thread.Sleep(10); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroConfigUnion.cs b/samples/BenchmarkDotNet.Samples/IntroConfigUnion.cs index 2db67218d9..94b4abe7f9 100644 --- a/samples/BenchmarkDotNet.Samples/IntroConfigUnion.cs +++ b/samples/BenchmarkDotNet.Samples/IntroConfigUnion.cs @@ -31,4 +31,4 @@ public void Foo() Thread.Sleep(10); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs b/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs index aaecd2548f..61dfd91b61 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs @@ -20,4 +20,4 @@ public Config() [Benchmark] public void Foo() => Thread.Sleep(100); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCustomMono.cs b/samples/BenchmarkDotNet.Samples/IntroCustomMono.cs index a0baa39a86..6b122ba9cd 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCustomMono.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCustomMono.cs @@ -98,4 +98,4 @@ public void Foo() // Benchmark body } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroCustomMonoArguments.cs b/samples/BenchmarkDotNet.Samples/IntroCustomMonoArguments.cs index 8051529241..623fc74315 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCustomMonoArguments.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCustomMonoArguments.cs @@ -38,4 +38,4 @@ public void Sample() private void ShouldGetInlined() { } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs b/samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs index 4e43593ccb..ced9cf8fb1 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs @@ -26,4 +26,4 @@ public class IntroDeferredExecution [Benchmark] public void Ok() => (from number in numbers orderby number descending select number).Consume(consumer); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDisassembly.cs b/samples/BenchmarkDotNet.Samples/IntroDisassembly.cs index cf97350331..a67582d806 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDisassembly.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDisassembly.cs @@ -30,4 +30,4 @@ public int SumField() return sum; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDisassemblyAllJits.cs b/samples/BenchmarkDotNet.Samples/IntroDisassemblyAllJits.cs index ae12d6acf7..a4822cb952 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDisassemblyAllJits.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDisassemblyAllJits.cs @@ -44,4 +44,4 @@ public abstract class Operation // abstract unary integer operation public override int Operate(int input) => input + Amount; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDisassemblyDry.cs b/samples/BenchmarkDotNet.Samples/IntroDisassemblyDry.cs index d9fa742070..f6838b567f 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDisassemblyDry.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDisassemblyDry.cs @@ -12,4 +12,4 @@ public void Foo() } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDisassemblyRyuJit.cs b/samples/BenchmarkDotNet.Samples/IntroDisassemblyRyuJit.cs index 8189d01d88..560661b7e6 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDisassemblyRyuJit.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDisassemblyRyuJit.cs @@ -30,4 +30,4 @@ public int SumField() return sum; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDotMemoryDiagnoser.cs b/samples/BenchmarkDotNet.Samples/IntroDotMemoryDiagnoser.cs index 2453e80c87..4051a73e9c 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDotMemoryDiagnoser.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDotMemoryDiagnoser.cs @@ -42,4 +42,4 @@ public int IterateEnumerable() return count; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroDotTraceDiagnoser.cs b/samples/BenchmarkDotNet.Samples/IntroDotTraceDiagnoser.cs index 047e6ee059..55bd70d4b3 100644 --- a/samples/BenchmarkDotNet.Samples/IntroDotTraceDiagnoser.cs +++ b/samples/BenchmarkDotNet.Samples/IntroDotTraceDiagnoser.cs @@ -18,4 +18,4 @@ private static int Fibonacci(int n) return n <= 1 ? n : Fibonacci(n - 1) + Fibonacci(n - 2); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroEventPipeProfiler.cs b/samples/BenchmarkDotNet.Samples/IntroEventPipeProfiler.cs index 379b06df9d..b88aa938e8 100644 --- a/samples/BenchmarkDotNet.Samples/IntroEventPipeProfiler.cs +++ b/samples/BenchmarkDotNet.Samples/IntroEventPipeProfiler.cs @@ -10,4 +10,4 @@ public class IntroEventPipeProfiler [Benchmark] public void Sleep() => Thread.Sleep(2000); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroEventPipeProfilerAdvanced.cs b/samples/BenchmarkDotNet.Samples/IntroEventPipeProfilerAdvanced.cs index ea73639893..8c6085648c 100644 --- a/samples/BenchmarkDotNet.Samples/IntroEventPipeProfilerAdvanced.cs +++ b/samples/BenchmarkDotNet.Samples/IntroEventPipeProfilerAdvanced.cs @@ -43,4 +43,4 @@ public void RentAndReturn_Shared() pool.Return(array); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroExport.cs b/samples/BenchmarkDotNet.Samples/IntroExport.cs index 20bbafdf6f..528e184e0d 100644 --- a/samples/BenchmarkDotNet.Samples/IntroExport.cs +++ b/samples/BenchmarkDotNet.Samples/IntroExport.cs @@ -34,4 +34,4 @@ public class IntroExport [Benchmark] public void Sleep50Noisy() => Thread.Sleep(random.Next(100)); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroExportJson.cs b/samples/BenchmarkDotNet.Samples/IntroExportJson.cs index 83636e80ce..cc048da34b 100644 --- a/samples/BenchmarkDotNet.Samples/IntroExportJson.cs +++ b/samples/BenchmarkDotNet.Samples/IntroExportJson.cs @@ -39,4 +39,4 @@ public Config() [Benchmark] public void Sleep10() => Thread.Sleep(10); [Benchmark] public void Sleep20() => Thread.Sleep(20); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroFilters.cs b/samples/BenchmarkDotNet.Samples/IntroFilters.cs index 8ade3662fc..1cf241ae68 100644 --- a/samples/BenchmarkDotNet.Samples/IntroFilters.cs +++ b/samples/BenchmarkDotNet.Samples/IntroFilters.cs @@ -36,4 +36,4 @@ public Config() [Benchmark] public void C3() => Thread.Sleep(10); [Benchmark] public void Aaa() => Thread.Sleep(10); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroFluentConfigBuilder.cs b/samples/BenchmarkDotNet.Samples/IntroFluentConfigBuilder.cs index a8321d2d58..134e19bd90 100644 --- a/samples/BenchmarkDotNet.Samples/IntroFluentConfigBuilder.cs +++ b/samples/BenchmarkDotNet.Samples/IntroFluentConfigBuilder.cs @@ -41,4 +41,4 @@ public static void Run() .AddValidator(ExecutionValidator.FailOnError)); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroGcMode.cs b/samples/BenchmarkDotNet.Samples/IntroGcMode.cs index a3eb2b0bf9..133757c934 100644 --- a/samples/BenchmarkDotNet.Samples/IntroGcMode.cs +++ b/samples/BenchmarkDotNet.Samples/IntroGcMode.cs @@ -40,4 +40,4 @@ private static unsafe void Consume(byte* input) { } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroGenericTypeArguments.cs b/samples/BenchmarkDotNet.Samples/IntroGenericTypeArguments.cs index 89abe587b7..90c0eb8a9e 100644 --- a/samples/BenchmarkDotNet.Samples/IntroGenericTypeArguments.cs +++ b/samples/BenchmarkDotNet.Samples/IntroGenericTypeArguments.cs @@ -8,4 +8,4 @@ public class IntroGenericTypeArguments { [Benchmark] public T Create() => Activator.CreateInstance(); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs b/samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs index 76204479a0..33700e6c9a 100644 --- a/samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs +++ b/samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs @@ -53,4 +53,4 @@ private static int Branchless(int[] data) [Benchmark] public int UnsortedBranchless() => Branchless(unsorted); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroInProcess.cs b/samples/BenchmarkDotNet.Samples/IntroInProcess.cs index 8c7144930d..3f74a2235a 100644 --- a/samples/BenchmarkDotNet.Samples/IntroInProcess.cs +++ b/samples/BenchmarkDotNet.Samples/IntroInProcess.cs @@ -45,4 +45,4 @@ private static unsafe void Consume(byte* input) { } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroInProcessWrongEnv.cs b/samples/BenchmarkDotNet.Samples/IntroInProcessWrongEnv.cs index 7ace7e8178..3791e8b42f 100644 --- a/samples/BenchmarkDotNet.Samples/IntroInProcessWrongEnv.cs +++ b/samples/BenchmarkDotNet.Samples/IntroInProcessWrongEnv.cs @@ -50,4 +50,4 @@ private static unsafe void Consume(byte* input) { } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroJitStatsDiagnoser.cs b/samples/BenchmarkDotNet.Samples/IntroJitStatsDiagnoser.cs index 98fd52aa85..fe628634b5 100644 --- a/samples/BenchmarkDotNet.Samples/IntroJitStatsDiagnoser.cs +++ b/samples/BenchmarkDotNet.Samples/IntroJitStatsDiagnoser.cs @@ -8,4 +8,4 @@ public class IntroJitStatsDiagnoser [Benchmark] public void Sleep() => Thread.Sleep(10); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroJobBaseline.cs b/samples/BenchmarkDotNet.Samples/IntroJobBaseline.cs index 856439e0bd..0913dfdf7d 100644 --- a/samples/BenchmarkDotNet.Samples/IntroJobBaseline.cs +++ b/samples/BenchmarkDotNet.Samples/IntroJobBaseline.cs @@ -12,4 +12,4 @@ public class IntroJobBaseline public int SplitJoin() => string.Join(",", new string[1000]).Split(',').Length; } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroJoin.cs b/samples/BenchmarkDotNet.Samples/IntroJoin.cs index fb3cdd68fe..9766a1aae2 100644 --- a/samples/BenchmarkDotNet.Samples/IntroJoin.cs +++ b/samples/BenchmarkDotNet.Samples/IntroJoin.cs @@ -27,4 +27,4 @@ public class IntroJoin2 [BenchmarkCategory("IntroJoinB")] public void B() => Thread.Sleep(10); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroMonitoring.cs b/samples/BenchmarkDotNet.Samples/IntroMonitoring.cs index fe9e1d2849..d5093067ca 100644 --- a/samples/BenchmarkDotNet.Samples/IntroMonitoring.cs +++ b/samples/BenchmarkDotNet.Samples/IntroMonitoring.cs @@ -15,4 +15,4 @@ public void Foo() Thread.Sleep(random.Next(10) * 10); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroMultimodal.cs b/samples/BenchmarkDotNet.Samples/IntroMultimodal.cs index 39fc97cb96..725fce47d3 100644 --- a/samples/BenchmarkDotNet.Samples/IntroMultimodal.cs +++ b/samples/BenchmarkDotNet.Samples/IntroMultimodal.cs @@ -17,4 +17,4 @@ private void Multimodal(int n) [Benchmark] public void Trimodal() => Multimodal(3); [Benchmark] public void Quadrimodal() => Multimodal(4); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroNuGet.cs b/samples/BenchmarkDotNet.Samples/IntroNuGet.cs index a61db57ee8..f99752970f 100644 --- a/samples/BenchmarkDotNet.Samples/IntroNuGet.cs +++ b/samples/BenchmarkDotNet.Samples/IntroNuGet.cs @@ -54,4 +54,4 @@ public void SerializeAnonymousObject() new { hello = "world", price = 1.99, now = DateTime.UtcNow }); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs b/samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs index 57719330e5..2df0658b79 100644 --- a/samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs +++ b/samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs @@ -16,4 +16,4 @@ public class IntroOrderAttr [Benchmark] public void Fast() => Thread.Sleep(X * 50); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroOrderManual.cs b/samples/BenchmarkDotNet.Samples/IntroOrderManual.cs index f1e0a16707..3c49327d9e 100644 --- a/samples/BenchmarkDotNet.Samples/IntroOrderManual.cs +++ b/samples/BenchmarkDotNet.Samples/IntroOrderManual.cs @@ -52,4 +52,4 @@ public IEnumerable> GetLogicalGroupOrder(IEnume [Benchmark] public void Slow() => Thread.Sleep(X * 100); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroOutliers.cs b/samples/BenchmarkDotNet.Samples/IntroOutliers.cs index d214901b47..397307c00e 100644 --- a/samples/BenchmarkDotNet.Samples/IntroOutliers.cs +++ b/samples/BenchmarkDotNet.Samples/IntroOutliers.cs @@ -28,4 +28,4 @@ public void Foo() Thread.Sleep(100 + noise); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroParams.cs b/samples/BenchmarkDotNet.Samples/IntroParams.cs index 3f8df40576..f38f6ccbbf 100644 --- a/samples/BenchmarkDotNet.Samples/IntroParams.cs +++ b/samples/BenchmarkDotNet.Samples/IntroParams.cs @@ -13,4 +13,4 @@ public class IntroParams [Benchmark] public void Benchmark() => Thread.Sleep(A + B + 5); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs b/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs index 93758772f8..73cc4f0932 100644 --- a/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs +++ b/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs @@ -26,4 +26,4 @@ public void Benchmark() (B == true ? 20 : B == false ? 10 : 0)); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroParamsPriority.cs b/samples/BenchmarkDotNet.Samples/IntroParamsPriority.cs index 9ed16ce3dd..780cdd22bf 100644 --- a/samples/BenchmarkDotNet.Samples/IntroParamsPriority.cs +++ b/samples/BenchmarkDotNet.Samples/IntroParamsPriority.cs @@ -13,4 +13,4 @@ public class IntroParamsPriority [Benchmark] public void Benchmark() => Thread.Sleep(A + B + 5); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroParamsSource.cs b/samples/BenchmarkDotNet.Samples/IntroParamsSource.cs index 64c7b8d6e1..0fb82a8a9b 100644 --- a/samples/BenchmarkDotNet.Samples/IntroParamsSource.cs +++ b/samples/BenchmarkDotNet.Samples/IntroParamsSource.cs @@ -46,4 +46,4 @@ public static class ParamsValues { public static IEnumerable ValuesForC() => [1000, 2000]; } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs b/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs index 7cdda5deb6..8a714af2fd 100644 --- a/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs +++ b/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs @@ -51,4 +51,4 @@ public void RareDelays() Thread.Sleep(rndTime); } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroPerfCollectProfiler.cs b/samples/BenchmarkDotNet.Samples/IntroPerfCollectProfiler.cs index 62fbc2fa34..51533bc12b 100644 --- a/samples/BenchmarkDotNet.Samples/IntroPerfCollectProfiler.cs +++ b/samples/BenchmarkDotNet.Samples/IntroPerfCollectProfiler.cs @@ -14,4 +14,4 @@ public class IntroPerfCollectProfiler [GlobalCleanup] public void Delete() => File.Delete(path); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroRankColumn.cs b/samples/BenchmarkDotNet.Samples/IntroRankColumn.cs index b3d1b0278c..267c3c19e7 100644 --- a/samples/BenchmarkDotNet.Samples/IntroRankColumn.cs +++ b/samples/BenchmarkDotNet.Samples/IntroRankColumn.cs @@ -20,4 +20,4 @@ public class IntroRankColumn [Benchmark] public void Bar() => Thread.Sleep(Factor * 200); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroRatioSD.cs b/samples/BenchmarkDotNet.Samples/IntroRatioSD.cs index 2765fece3a..2a60d16371 100644 --- a/samples/BenchmarkDotNet.Samples/IntroRatioSD.cs +++ b/samples/BenchmarkDotNet.Samples/IntroRatioSD.cs @@ -29,4 +29,4 @@ public void Base() [Benchmark] public void Fast() => Thread.Sleep(50); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroRatioStyle.cs b/samples/BenchmarkDotNet.Samples/IntroRatioStyle.cs index 6eb89f9fe9..03a5780889 100644 --- a/samples/BenchmarkDotNet.Samples/IntroRatioStyle.cs +++ b/samples/BenchmarkDotNet.Samples/IntroRatioStyle.cs @@ -25,4 +25,4 @@ public Config() } } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupGlobal.cs b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupGlobal.cs index daac819a05..59d619bfcf 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupGlobal.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupGlobal.cs @@ -30,4 +30,4 @@ public void GlobalCleanup() // Disposing logic } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs index 729a0bf314..0653742bb6 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupIteration.cs @@ -30,4 +30,4 @@ public void GlobalCleanup() public void Benchmark() => Console.WriteLine("// " + "Benchmark"); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupTarget.cs b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupTarget.cs index d5f802ff04..e912b775dc 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSetupCleanupTarget.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSetupCleanupTarget.cs @@ -31,4 +31,4 @@ public void BenchmarkC() public void BenchmarkD() => Console.WriteLine("// " + "Benchmark D"); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSmokeEmptyBasic.cs b/samples/BenchmarkDotNet.Samples/IntroSmokeEmptyBasic.cs index 7b402ff019..a602a6eca7 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSmokeEmptyBasic.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSmokeEmptyBasic.cs @@ -79,4 +79,4 @@ [Benchmark] public void Void4() { } [Benchmark] public object? Object2() => null; [Benchmark] public object? Object3() => null; [Benchmark] public object? Object4() => null; -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSmokeIncrements.cs b/samples/BenchmarkDotNet.Samples/IntroSmokeIncrements.cs index 6dfd15433d..bd771961a0 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSmokeIncrements.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSmokeIncrements.cs @@ -135,4 +135,4 @@ public void Increment20() Field++; Field++; } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSmokeStringBuilder.cs b/samples/BenchmarkDotNet.Samples/IntroSmokeStringBuilder.cs index ac3f212c07..aefd7be65a 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSmokeStringBuilder.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSmokeStringBuilder.cs @@ -31,4 +31,4 @@ public StringBuilder Append_Strings(int repeat) return builder; } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSmokeValueTypes.cs b/samples/BenchmarkDotNet.Samples/IntroSmokeValueTypes.cs index 1b00434112..5c1a03f740 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSmokeValueTypes.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSmokeValueTypes.cs @@ -65,4 +65,4 @@ public struct Long3 { public long _1, _2, _3; } public struct Long4 { public long _1, _2, _3, _4; } [Benchmark] public Long4 ReturnLong4() => new Long4(); } -// ReSharper restore InconsistentNaming \ No newline at end of file +// ReSharper restore InconsistentNaming diff --git a/samples/BenchmarkDotNet.Samples/IntroStaThread.cs b/samples/BenchmarkDotNet.Samples/IntroStaThread.cs index 1f61196e9c..dd60b8d67f 100644 --- a/samples/BenchmarkDotNet.Samples/IntroStaThread.cs +++ b/samples/BenchmarkDotNet.Samples/IntroStaThread.cs @@ -14,4 +14,4 @@ public void CheckForSTA() } } } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroStatisticalTesting.cs b/samples/BenchmarkDotNet.Samples/IntroStatisticalTesting.cs index 4549cbf3b4..ac14f3bbfd 100644 --- a/samples/BenchmarkDotNet.Samples/IntroStatisticalTesting.cs +++ b/samples/BenchmarkDotNet.Samples/IntroStatisticalTesting.cs @@ -15,4 +15,4 @@ public class IntroStatisticalTesting [Benchmark] public void Sleep103() => Thread.Sleep(103); [Benchmark] public void Sleep150() => Thread.Sleep(150); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroStatisticsColumns.cs b/samples/BenchmarkDotNet.Samples/IntroStatisticsColumns.cs index 64ea3b34fe..3562bf2857 100644 --- a/samples/BenchmarkDotNet.Samples/IntroStatisticsColumns.cs +++ b/samples/BenchmarkDotNet.Samples/IntroStatisticsColumns.cs @@ -27,4 +27,4 @@ public IntroStatisticsColumns() [Benchmark] public byte[] Sha256() => sha256.ComputeHash(data); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroStopOnFirstError.cs b/samples/BenchmarkDotNet.Samples/IntroStopOnFirstError.cs index 0622a96219..26543658e8 100644 --- a/samples/BenchmarkDotNet.Samples/IntroStopOnFirstError.cs +++ b/samples/BenchmarkDotNet.Samples/IntroStopOnFirstError.cs @@ -11,4 +11,4 @@ public class IntroStopOnFirstError [Benchmark] public int SecondMethod() => 1; } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/IntroSummaryStyle.cs b/samples/BenchmarkDotNet.Samples/IntroSummaryStyle.cs index b500cd296c..afc77a460f 100644 --- a/samples/BenchmarkDotNet.Samples/IntroSummaryStyle.cs +++ b/samples/BenchmarkDotNet.Samples/IntroSummaryStyle.cs @@ -36,4 +36,4 @@ public Config() [Benchmark] public void Sleep() => System.Threading.Thread.Sleep(N); } -} \ No newline at end of file +} diff --git a/samples/BenchmarkDotNet.Samples/Properties/AssemblyInfo.cs b/samples/BenchmarkDotNet.Samples/Properties/AssemblyInfo.cs index 9dfba3abde..1a4367d9de 100644 --- a/samples/BenchmarkDotNet.Samples/Properties/AssemblyInfo.cs +++ b/samples/BenchmarkDotNet.Samples/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Runtime.InteropServices; -[assembly: Guid("6f2232a9-0d0c-46cf-b08c-f6e28ab612e3")] \ No newline at end of file +[assembly: Guid("6f2232a9-0d0c-46cf-b08c-f6e28ab612e3")] diff --git a/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs b/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs index 6db6b69a5b..eda0441c39 100644 --- a/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs +++ b/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs @@ -439,4 +439,4 @@ public static ExpressionSyntax GetAttributeParamsArgumentExpression(this Attribu Debug.Assert(args[index].NameEquals is null); return args[index].Expression; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs index bcc2747016..6e1a48e7e5 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs @@ -541,4 +541,4 @@ private static bool ContainsTypeParameter(ITypeSymbol type) INamedTypeSymbol named => named.TypeArguments.Any(ContainsTypeParameter), _ => false, }; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralArgumentAttributesAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralArgumentAttributesAnalyzer.cs index c37fd73ccf..2493faa7b2 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralArgumentAttributesAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralArgumentAttributesAnalyzer.cs @@ -71,4 +71,4 @@ private static void AnalyzeMethodDeclaration(SyntaxNodeAnalysisContext context) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs index f661af121a..5dd5ce1110 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs @@ -594,4 +594,4 @@ private static bool AllAttributeTypeSymbolsExist( return true; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAllValuesAttributeAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAllValuesAttributeAnalyzer.cs index d20e54d6b7..4b856af78b 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAllValuesAttributeAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAllValuesAttributeAnalyzer.cs @@ -125,4 +125,4 @@ private static void AnalyzeFieldOrPropertyTypeSyntax(SyntaxNodeAnalysisContext c } private static INamedTypeSymbol? GetParamsAllValuesAttributeTypeSymbol(Compilation compilation) => compilation.GetTypeByMetadataName("BenchmarkDotNet.Attributes.ParamsAllValuesAttribute"); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs index 4d252f4f5c..cf340d71d4 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs @@ -155,4 +155,4 @@ void AnalyzeAssignableValueType(TypedConstant value, ExpressionSyntax expression private static INamedTypeSymbol? GetParamsAttributeTypeSymbol(Compilation compilation) => compilation.GetTypeByMetadataName("BenchmarkDotNet.Attributes.ParamsAttribute"); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/BenchmarkRunner/RunAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/BenchmarkRunner/RunAnalyzer.cs index 63b188769b..9b03f862d0 100644 --- a/src/BenchmarkDotNet.Analyzers/BenchmarkRunner/RunAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/BenchmarkRunner/RunAnalyzer.cs @@ -220,4 +220,4 @@ bool HasBenchmarkAttribute() void ReportDiagnostic(DiagnosticDescriptor diagnosticDescriptor) => context.ReportDiagnostic(Diagnostic.Create(diagnosticDescriptor, diagnosticLocation, AnalyzerHelper.NormalizeTypeName(benchmarkClassTypeSymbol))); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Analyzers/General/BenchmarkClassAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/General/BenchmarkClassAnalyzer.cs index 20c1c6206b..f16b70018b 100644 --- a/src/BenchmarkDotNet.Analyzers/General/BenchmarkClassAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/General/BenchmarkClassAnalyzer.cs @@ -583,4 +583,4 @@ private static string FormatBenchmarkCategory(List benchmarkCategories) return string.Join(",", benchmarkCategories.Distinct(StringComparer.OrdinalIgnoreCase)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsAttribute.cs index ff9d8bf6db..196f9a6d5b 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsAttribute.cs @@ -14,4 +14,4 @@ public class ArgumentsAttribute : PriorityAttribute public ArgumentsAttribute(params object?[]? values) => Values = values ?? [null]; // when users do Arguments(null) they mean one, null argument } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsSourceAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsSourceAttribute.cs index 6e97ad7682..81cc9fe4fc 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsSourceAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/ArgumentsSourceAttribute.cs @@ -18,4 +18,4 @@ public ArgumentsSourceAttribute(Type type, string name) Type = type; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkAttribute.cs index f9b3e7030f..5bb6985210 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkAttribute.cs @@ -23,4 +23,4 @@ public BenchmarkAttribute([CallerLineNumber] int sourceCodeLineNumber = 0, [Call public string SourceCodeFile { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkCategoryAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkCategoryAttribute.cs index 5faa0ebfee..999dafc185 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkCategoryAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/BenchmarkCategoryAttribute.cs @@ -12,4 +12,4 @@ public class BenchmarkCategoryAttribute : Attribute public BenchmarkCategoryAttribute(params string[] categories) => Categories = categories; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/CompilerServices/AggressivelyOptimizeMethods.cs b/src/BenchmarkDotNet.Annotations/Attributes/CompilerServices/AggressivelyOptimizeMethods.cs index 3e31272e6a..bb2a3d8d33 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/CompilerServices/AggressivelyOptimizeMethods.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/CompilerServices/AggressivelyOptimizeMethods.cs @@ -15,4 +15,4 @@ namespace BenchmarkDotNet.Attributes.CompilerServices; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)] public sealed class AggressivelyOptimizeMethodsAttribute : Attribute { -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/GenericTypeArgumentsAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/GenericTypeArgumentsAttribute.cs index 5f288e4630..e3c60b81c7 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/GenericTypeArgumentsAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/GenericTypeArgumentsAttribute.cs @@ -21,4 +21,4 @@ public GenericTypeArgumentsAttribute( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type3) => GenericTypeArguments = [type1, type2, type3]; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/GlobalCleanupAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/GlobalCleanupAttribute.cs index 20e4012cf7..a38ac5ad63 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/GlobalCleanupAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/GlobalCleanupAttribute.cs @@ -11,4 +11,4 @@ namespace BenchmarkDotNet.Attributes public class GlobalCleanupAttribute : TargetedAttribute { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/GlobalSetupAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/GlobalSetupAttribute.cs index 42226d9f92..7b244e0a54 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/GlobalSetupAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/GlobalSetupAttribute.cs @@ -11,4 +11,4 @@ namespace BenchmarkDotNet.Attributes public class GlobalSetupAttribute : TargetedAttribute { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/IterationCleanupAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/IterationCleanupAttribute.cs index c2474fd787..d5ce9af8c5 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/IterationCleanupAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/IterationCleanupAttribute.cs @@ -10,4 +10,4 @@ namespace BenchmarkDotNet.Attributes public class IterationCleanupAttribute : TargetedAttribute { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/ParamsAllValuesAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/ParamsAllValuesAttribute.cs index c0c3dc7ec9..096a4f7e4c 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/ParamsAllValuesAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/ParamsAllValuesAttribute.cs @@ -4,4 +4,4 @@ namespace BenchmarkDotNet.Attributes public class ParamsAllValuesAttribute : PriorityAttribute { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Annotations/Attributes/ParamsSourceAttribute.cs b/src/BenchmarkDotNet.Annotations/Attributes/ParamsSourceAttribute.cs index 8b2489d292..b68461954d 100644 --- a/src/BenchmarkDotNet.Annotations/Attributes/ParamsSourceAttribute.cs +++ b/src/BenchmarkDotNet.Annotations/Attributes/ParamsSourceAttribute.cs @@ -18,4 +18,4 @@ public ParamsSourceAttribute(Type type, string name) Type = type; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/ConcurrencyVisualizerProfiler.cs b/src/BenchmarkDotNet.Diagnostics.Windows/ConcurrencyVisualizerProfiler.cs index f79fd1a3ee..928183382b 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/ConcurrencyVisualizerProfiler.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/ConcurrencyVisualizerProfiler.cs @@ -192,4 +192,4 @@ private XElement GenerateCodeInfo(DiagnoserActionParameters parameters) return new XElement("JustMyCode", new XElement("MyCodeDirectory", folderWithDlls)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/ConcurrencyVisualizerProfilerAttribute.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/ConcurrencyVisualizerProfilerAttribute.cs index 0b0bc97505..82552728f2 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/ConcurrencyVisualizerProfilerAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/ConcurrencyVisualizerProfilerAttribute.cs @@ -11,4 +11,4 @@ public class ConcurrencyVisualizerProfilerAttribute : Attribute, IConfigSource public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/EtwProfilerAttribute.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/EtwProfilerAttribute.cs index 3284ea066c..bb536ed4d2 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/EtwProfilerAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/EtwProfilerAttribute.cs @@ -16,4 +16,4 @@ public EtwProfilerAttribute(bool performExtraBenchmarksRun = true, int bufferSiz public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/InliningDiagnoserAttribute.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/InliningDiagnoserAttribute.cs index ef134ab314..eff1d880d4 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/InliningDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/InliningDiagnoserAttribute.cs @@ -19,4 +19,4 @@ public InliningDiagnoserAttribute(bool logFailuresOnly = true, string[]? allowed public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/JitStatsDiagnoserAttribute.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/JitStatsDiagnoserAttribute.cs index 6f030996cf..54059af408 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/JitStatsDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/JitStatsDiagnoserAttribute.cs @@ -14,4 +14,4 @@ public JitStatsDiagnoserAttribute() public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/NativeMemoryProfilerAttribute.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/NativeMemoryProfilerAttribute.cs index 0ecdf13d26..89ed60cefe 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Configs/NativeMemoryProfilerAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Configs/NativeMemoryProfilerAttribute.cs @@ -14,4 +14,4 @@ public NativeMemoryProfilerAttribute() public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfiler.cs b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfiler.cs index 74ee96bc1b..c34095c446 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfiler.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfiler.cs @@ -164,4 +164,4 @@ private IReadOnlyDictionary BuildPmcStats() return builder.ToImmutable(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs index 89c385c562..af413bfb5b 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs @@ -73,4 +73,4 @@ public EtwProfilerConfig( ]; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/HardwareCounters.cs b/src/BenchmarkDotNet.Diagnostics.Windows/HardwareCounters.cs index a58706917f..88976ca87b 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/HardwareCounters.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/HardwareCounters.cs @@ -83,4 +83,4 @@ internal static void Enable(IEnumerable counters) counters.Select(counter => counter.Interval).ToArray()); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs index b895fb39b6..efdbd9f9e7 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs @@ -46,4 +46,4 @@ public void DisplayResults(ILogger outputLogger) outputLogger.Write(line.Kind, line.Text); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/NativeMemoryProfiler.cs b/src/BenchmarkDotNet.Diagnostics.Windows/NativeMemoryProfiler.cs index 8fec10e02e..a5818a9406 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/NativeMemoryProfiler.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/NativeMemoryProfiler.cs @@ -68,4 +68,4 @@ private static EtwProfilerConfig CreateDefaultConfig() createHeapSession: true); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Sessions.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Sessions.cs index d582e2f8f4..6dcfb49ed2 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Sessions.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Sessions.cs @@ -132,4 +132,4 @@ protected static string GetSessionName(BenchmarkCase benchmarkCase) return $"BenchmarkDotNet.EtwProfiler.Session_{MurmurHash.HashString(benchmarkName)}"; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs index 23be2febc7..c69acb5424 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs @@ -36,4 +36,4 @@ public override StringBuilder ToXml(StringBuilder sb) protected override void Dispatch() => target?.Invoke(this); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs index 8f8ae2de8a..9701dcafb5 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs @@ -204,4 +204,4 @@ protected override void EnumerateTemplates(Func Debug.Assert(!(Version == 0 && GetInt64At(0) == 0)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/NativeMemoryLogParser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/NativeMemoryLogParser.cs index 7510a4eb8c..be89dde670 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/NativeMemoryLogParser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/NativeMemoryLogParser.cs @@ -292,4 +292,4 @@ private static Dictionary CreateHeapCache( return ret; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs index 64327ca3c0..bc422f9d79 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs @@ -242,4 +242,4 @@ public bool TryHandle(double timeStamp, int profileSource, int interval) return true; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.dotMemory/DotMemoryDiagnoserAttribute.cs b/src/BenchmarkDotNet.Diagnostics.dotMemory/DotMemoryDiagnoserAttribute.cs index 7b535ccab7..e956f13c63 100644 --- a/src/BenchmarkDotNet.Diagnostics.dotMemory/DotMemoryDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.dotMemory/DotMemoryDiagnoserAttribute.cs @@ -18,4 +18,4 @@ public DotMemoryDiagnoserAttribute(Uri? nugetUrl, string? downloadTo = null) var diagnoser = new DotMemoryDiagnoser(nugetUrl, downloadTo); Config = ManualConfig.CreateEmpty().AddDiagnoser(diagnoser); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoserAttribute.cs b/src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoserAttribute.cs index 0dc858ebd2..ff74f5da0e 100644 --- a/src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoserAttribute.cs @@ -18,4 +18,4 @@ public DotTraceDiagnoserAttribute(Uri? nugetUrl, string? downloadTo = null) var diagnoser = new DotTraceDiagnoser(nugetUrl, downloadTo); Config = ManualConfig.CreateEmpty().AddDiagnoser(diagnoser); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs b/src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs index 06e5782b6a..84c37c7bcc 100644 --- a/src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs +++ b/src/BenchmarkDotNet.TestAdapter/BenchmarkCaseExtensions.cs @@ -101,4 +101,4 @@ internal static Guid GetTestCaseId(this BenchmarkCase benchmarkCase) return testIdProvider.GetId(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.TestAdapter/Remoting/TestExecutionRecorderWrapper.cs b/src/BenchmarkDotNet.TestAdapter/Remoting/TestExecutionRecorderWrapper.cs index 728039ade8..4c1f2b5469 100644 --- a/src/BenchmarkDotNet.TestAdapter/Remoting/TestExecutionRecorderWrapper.cs +++ b/src/BenchmarkDotNet.TestAdapter/Remoting/TestExecutionRecorderWrapper.cs @@ -35,4 +35,4 @@ internal void RecordResult(string serializedTestResult) testExecutionRecorder.RecordResult(SerializationHelpers.Deserialize(serializedTestResult)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs b/src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs index 546873f3b4..5e130dfff2 100644 --- a/src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs +++ b/src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs @@ -226,4 +226,4 @@ private static bool IsBenchmarkAttribute(CustomAttribute attribute, RuntimeConte } return false; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/AnalyserBase.cs b/src/BenchmarkDotNet/Analysers/AnalyserBase.cs index e5c2bf44dc..58e5c31a92 100644 --- a/src/BenchmarkDotNet/Analysers/AnalyserBase.cs +++ b/src/BenchmarkDotNet/Analysers/AnalyserBase.cs @@ -26,4 +26,4 @@ protected Conclusion CreateWarning(string message, BenchmarkReport? report = nul protected Conclusion CreateError(string message, BenchmarkReport? report = null, bool mergeable = true) => Conclusion.CreateError(Id, message, report, mergeable); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/CompositeAnalyser.cs b/src/BenchmarkDotNet/Analysers/CompositeAnalyser.cs index c59efde178..8cc9384783 100644 --- a/src/BenchmarkDotNet/Analysers/CompositeAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/CompositeAnalyser.cs @@ -14,4 +14,4 @@ public class CompositeAnalyser : IAnalyser public IEnumerable Analyse(Summary summary) => analysers.SelectMany(analyser => analyser.Analyse(summary)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/Conclusion.cs b/src/BenchmarkDotNet/Analysers/Conclusion.cs index 17526335f6..4a9842b9fd 100644 --- a/src/BenchmarkDotNet/Analysers/Conclusion.cs +++ b/src/BenchmarkDotNet/Analysers/Conclusion.cs @@ -64,4 +64,4 @@ public override int GetHashCode() : HashCode.Combine(AnalyserId, Kind, Report?.ToString()); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/ConclusionHelper.cs b/src/BenchmarkDotNet/Analysers/ConclusionHelper.cs index bd4b8f7b34..2f70c8fcea 100644 --- a/src/BenchmarkDotNet/Analysers/ConclusionHelper.cs +++ b/src/BenchmarkDotNet/Analysers/ConclusionHelper.cs @@ -37,4 +37,4 @@ private static string GetTitle(Conclusion conclusion) return b != null ? $"{b.Descriptor.DisplayInfo}: {b.Job.Id}" : "[Summary]"; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/ConclusionKind.cs b/src/BenchmarkDotNet/Analysers/ConclusionKind.cs index b1055dfb18..fccae42992 100644 --- a/src/BenchmarkDotNet/Analysers/ConclusionKind.cs +++ b/src/BenchmarkDotNet/Analysers/ConclusionKind.cs @@ -4,4 +4,4 @@ public enum ConclusionKind { Error, Warning, Hint } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/EnvironmentAnalyser.cs b/src/BenchmarkDotNet/Analysers/EnvironmentAnalyser.cs index cb85bee01c..31d1046604 100644 --- a/src/BenchmarkDotNet/Analysers/EnvironmentAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/EnvironmentAnalyser.cs @@ -58,4 +58,4 @@ private static string CreateWarningAboutAntivirus(ICollection avProdu return sb.ToString(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/HideColumnsAnalyser.cs b/src/BenchmarkDotNet/Analysers/HideColumnsAnalyser.cs index 38e9e03063..532872a1f3 100644 --- a/src/BenchmarkDotNet/Analysers/HideColumnsAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/HideColumnsAnalyser.cs @@ -22,4 +22,4 @@ protected override IEnumerable AnalyseSummary(Summary summary) yield return CreateHint(message); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/IAnalyser.cs b/src/BenchmarkDotNet/Analysers/IAnalyser.cs index 35e2034742..368c09cb72 100644 --- a/src/BenchmarkDotNet/Analysers/IAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/IAnalyser.cs @@ -8,4 +8,4 @@ public interface IAnalyser [PublicAPI] string Id { get; } [PublicAPI] IEnumerable Analyse(Summary summary); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/MinIterationTimeAnalyser.cs b/src/BenchmarkDotNet/Analysers/MinIterationTimeAnalyser.cs index a2549790d7..d682f68bb4 100644 --- a/src/BenchmarkDotNet/Analysers/MinIterationTimeAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/MinIterationTimeAnalyser.cs @@ -26,4 +26,4 @@ protected override IEnumerable AnalyseReport(BenchmarkReport report, yield return CreateWarning($"The minimum observed iteration time is {minActualIterationTime} which is very small. It's recommended to increase it to at least {MinSufficientIterationTime} using more operations.", report); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/MultimodalDistributionAnalyzer.cs b/src/BenchmarkDotNet/Analysers/MultimodalDistributionAnalyzer.cs index b5f496391b..66b914472e 100644 --- a/src/BenchmarkDotNet/Analysers/MultimodalDistributionAnalyzer.cs +++ b/src/BenchmarkDotNet/Analysers/MultimodalDistributionAnalyzer.cs @@ -31,4 +31,4 @@ protected override IEnumerable AnalyseReport(BenchmarkReport report, private Conclusion Create(string kind, double mValue, BenchmarkReport? report, CultureInfo cultureInfo) => CreateWarning($"It seems that the distribution {kind} (mValue = {mValue.ToString("0.##", cultureInfo)})", report); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/OutliersAnalyser.cs b/src/BenchmarkDotNet/Analysers/OutliersAnalyser.cs index c746c99f5f..a0f6205f4c 100644 --- a/src/BenchmarkDotNet/Analysers/OutliersAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/OutliersAnalyser.cs @@ -78,4 +78,4 @@ string Format(int n, string verb) }; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/RuntimeErrorAnalyser.cs b/src/BenchmarkDotNet/Analysers/RuntimeErrorAnalyser.cs index 0f42173030..101d76e29a 100644 --- a/src/BenchmarkDotNet/Analysers/RuntimeErrorAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/RuntimeErrorAnalyser.cs @@ -17,4 +17,4 @@ protected override IEnumerable AnalyseReport(BenchmarkReport report, yield return CreateError(error, report); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/ZeroMeasurementAnalyser.cs b/src/BenchmarkDotNet/Analysers/ZeroMeasurementAnalyser.cs index 93ca8cdcc9..3afaee750d 100644 --- a/src/BenchmarkDotNet/Analysers/ZeroMeasurementAnalyser.cs +++ b/src/BenchmarkDotNet/Analysers/ZeroMeasurementAnalyser.cs @@ -39,4 +39,4 @@ protected override IEnumerable AnalyseReport(BenchmarkReport report, report, false); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs b/src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs index 60891d1c6e..ba5ca30864 100644 --- a/src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs +++ b/src/BenchmarkDotNet/Analysers/ZeroMeasurementHelper.cs @@ -45,4 +45,4 @@ public static bool AreDistinguishable(double[] workload, double[] overhead, Thre public static bool AreDistinguishable(Sample workload, Sample overhead, Threshold? threshold = null) => !AreIndistinguishable(workload, overhead, threshold); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/CategoryDiscovererAttribute.cs b/src/BenchmarkDotNet/Attributes/CategoryDiscovererAttribute.cs index d8beb9c449..47d19ada9e 100644 --- a/src/BenchmarkDotNet/Attributes/CategoryDiscovererAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/CategoryDiscovererAttribute.cs @@ -13,4 +13,4 @@ public CategoryDiscovererAttribute(bool inherit = true) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/AllStatisticsColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/AllStatisticsColumnAttribute.cs index 7664d1a8f5..15767451b4 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/AllStatisticsColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/AllStatisticsColumnAttribute.cs @@ -10,4 +10,4 @@ public AllStatisticsColumnAttribute() : base(StatisticColumn.AllStatistics) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/BaselineColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/BaselineColumnAttribute.cs index 0851a406fe..94c7527dc6 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/BaselineColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/BaselineColumnAttribute.cs @@ -6,4 +6,4 @@ public class BaselineColumnAttribute : ColumnConfigBaseAttribute { public BaselineColumnAttribute() : base(BaselineColumn.Default) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/CategoriesColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/CategoriesColumnAttribute.cs index b19dcd0c13..6ec5100a27 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/CategoriesColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/CategoriesColumnAttribute.cs @@ -6,4 +6,4 @@ public class CategoriesColumnAttribute : ColumnConfigBaseAttribute { public CategoriesColumnAttribute() : base(CategoriesColumn.Default) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/ColumnConfigBaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/ColumnConfigBaseAttribute.cs index e777ec6dcd..f3b751ea6d 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/ColumnConfigBaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/ColumnConfigBaseAttribute.cs @@ -21,4 +21,4 @@ protected ColumnConfigBaseAttribute(params IColumn[] columns) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/ConfidenceIntervalErrorColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/ConfidenceIntervalErrorColumnAttribute.cs index 76f3348516..88a9a3d838 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/ConfidenceIntervalErrorColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/ConfidenceIntervalErrorColumnAttribute.cs @@ -10,4 +10,4 @@ public class ConfidenceIntervalErrorColumnAttribute : ColumnConfigBaseAttribute public ConfidenceIntervalErrorColumnAttribute() : base(StatisticColumn.CiError(ConfidenceLevel.L999)) { } public ConfidenceIntervalErrorColumnAttribute(ConfidenceLevel level) : base(StatisticColumn.CiError(level)) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/IterationsColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/IterationsColumnAttribute.cs index 42a6fa6a18..4ae716bfb0 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/IterationsColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/IterationsColumnAttribute.cs @@ -8,4 +8,4 @@ public class IterationsColumnAttribute : ColumnConfigBaseAttribute { public IterationsColumnAttribute() : base(StatisticColumn.Iterations) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/KurtosisColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/KurtosisColumnAttribute.cs index c67c745418..fa40b49a53 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/KurtosisColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/KurtosisColumnAttribute.cs @@ -8,4 +8,4 @@ public KurtosisColumnAttribute() : base(StatisticColumn.Kurtosis) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/LogicalGroupColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/LogicalGroupColumnAttribute.cs index 6e2f63ffc7..345b99d906 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/LogicalGroupColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/LogicalGroupColumnAttribute.cs @@ -6,4 +6,4 @@ public class LogicalGroupColumnAttribute : ColumnConfigBaseAttribute { public LogicalGroupColumnAttribute() : base(LogicalGroupColumn.Default) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/MValueColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/MValueColumnAttribute.cs index 01c8a33ee3..06efbd7a60 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/MValueColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/MValueColumnAttribute.cs @@ -14,4 +14,4 @@ public MValueColumnAttribute() : base(StatisticColumn.MValue) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/MaxColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/MaxColumnAttribute.cs index 8ec4f00707..519309a05a 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/MaxColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/MaxColumnAttribute.cs @@ -8,4 +8,4 @@ public MaxColumnAttribute() : base(StatisticColumn.Max) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/MeanColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/MeanColumnAttribute.cs index 8481f17550..2cd0ed755e 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/MeanColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/MeanColumnAttribute.cs @@ -8,4 +8,4 @@ public MeanColumnAttribute() : base(StatisticColumn.Mean) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/MedianColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/MedianColumnAttribute.cs index 47ec420d67..22a9b9ea51 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/MedianColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/MedianColumnAttribute.cs @@ -8,4 +8,4 @@ public MedianColumnAttribute() : base(StatisticColumn.Median) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/MinColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/MinColumnAttribute.cs index f6ae4546b3..932720ba5e 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/MinColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/MinColumnAttribute.cs @@ -8,4 +8,4 @@ public MinColumnAttribute() : base(StatisticColumn.Min) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/NamespaceColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/NamespaceColumnAttribute.cs index 031ed2bde7..394f6eb8c6 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/NamespaceColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/NamespaceColumnAttribute.cs @@ -13,4 +13,4 @@ public NamespaceColumnAttribute() : base(TargetMethodColumn.Namespace) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/Q1ColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/Q1ColumnAttribute.cs index f96fe9ed22..d67641a9c9 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/Q1ColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/Q1ColumnAttribute.cs @@ -8,4 +8,4 @@ public Q1ColumnAttribute() : base(StatisticColumn.Q1) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/Q3ColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/Q3ColumnAttribute.cs index 0da1e83733..f1faef4548 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/Q3ColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/Q3ColumnAttribute.cs @@ -8,4 +8,4 @@ public Q3ColumnAttribute() : base(StatisticColumn.Q3) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/RankColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/RankColumnAttribute.cs index 343850dc5a..ccb9d8ba55 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/RankColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/RankColumnAttribute.cs @@ -10,4 +10,4 @@ public RankColumnAttribute(NumeralSystem system = NumeralSystem.Arabic) : base(n { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/SkewnessColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/SkewnessColumnAttribute.cs index 1d1ec099c1..d9aa28d4f9 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/SkewnessColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/SkewnessColumnAttribute.cs @@ -8,4 +8,4 @@ public SkewnessColumnAttribute() : base(StatisticColumn.Skewness) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/StdDevColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/StdDevColumnAttribute.cs index d78cc68d43..af1af7bc65 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/StdDevColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/StdDevColumnAttribute.cs @@ -10,4 +10,4 @@ public StdDevColumnAttribute() : base(StatisticColumn.StdDev) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/StdErrorColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/StdErrorColumnAttribute.cs index a874f4ce29..6b038e62a3 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/StdErrorColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/StdErrorColumnAttribute.cs @@ -5,4 +5,4 @@ namespace BenchmarkDotNet.Attributes { [PublicAPI] public class StdErrorColumnAttribute() : ColumnConfigBaseAttribute(StatisticColumn.StdErr) { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Columns/WelchTTestPValueColumnAttribute.cs b/src/BenchmarkDotNet/Attributes/Columns/WelchTTestPValueColumnAttribute.cs index d24416fd61..449a755b22 100644 --- a/src/BenchmarkDotNet/Attributes/Columns/WelchTTestPValueColumnAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Columns/WelchTTestPValueColumnAttribute.cs @@ -15,4 +15,4 @@ public StatisticalTestColumnAttribute(string threshold) : base(StatisticalTestCo public StatisticalTestColumnAttribute(string threshold, SignificanceLevel significanceLevel) : base(StatisticalTestColumn.Create(threshold, significanceLevel)) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs b/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs index 8ae443ce4f..29587f1a44 100644 --- a/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs @@ -9,4 +9,4 @@ public class ConfigAttribute : Attribute, IConfigSource public ConfigAttribute(Type type) => Config = (IConfig)Activator.CreateInstance(type)!; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/DisassemblyDiagnoserAttribute.cs b/src/BenchmarkDotNet/Attributes/DisassemblyDiagnoserAttribute.cs index 9625592562..9639c0e489 100644 --- a/src/BenchmarkDotNet/Attributes/DisassemblyDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/DisassemblyDiagnoserAttribute.cs @@ -56,4 +56,4 @@ protected DisassemblyDiagnoserAttribute() public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/EventPipeProfilerAttribute.cs b/src/BenchmarkDotNet/Attributes/EventPipeProfilerAttribute.cs index b135047c22..c57d9ba2b0 100644 --- a/src/BenchmarkDotNet/Attributes/EventPipeProfilerAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/EventPipeProfilerAttribute.cs @@ -15,4 +15,4 @@ public EventPipeProfilerAttribute(EventPipeProfile profile, bool performExtraBen Config = ManualConfig.CreateEmpty().AddDiagnoser(new EventPipeProfiler(profile, performExtraBenchmarksRun: performExtraBenchmarksRun)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/AsciiDocExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/AsciiDocExporterAttribute.cs index eee78eece0..5b98934605 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/AsciiDocExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/AsciiDocExporterAttribute.cs @@ -8,4 +8,4 @@ public AsciiDocExporterAttribute() : base(DefaultExporters.AsciiDoc) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/CsvExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/CsvExporterAttribute.cs index 15a7c657aa..6e3134c823 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/CsvExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/CsvExporterAttribute.cs @@ -8,4 +8,4 @@ public CsvExporterAttribute(CsvSeparator separator = CsvSeparator.CurrentCulture { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/CsvMeasurementsExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/CsvMeasurementsExporterAttribute.cs index 317737a4c4..645dac5563 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/CsvMeasurementsExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/CsvMeasurementsExporterAttribute.cs @@ -8,4 +8,4 @@ public CsvMeasurementsExporterAttribute(CsvSeparator separator = CsvSeparator.Cu { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/ExporterConfigBaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/ExporterConfigBaseAttribute.cs index e7b9f65e4e..e31b7fb9f4 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/ExporterConfigBaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/ExporterConfigBaseAttribute.cs @@ -21,4 +21,4 @@ protected ExporterConfigBaseAttribute(params IExporter[] exporters) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/HtmlExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/HtmlExporterAttribute.cs index 6cbcbdc6f2..ace69c8a3f 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/HtmlExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/HtmlExporterAttribute.cs @@ -8,4 +8,4 @@ public HtmlExporterAttribute() : base(DefaultExporters.Html) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/JsonExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/JsonExporterAttribute.cs index 4a648e7e04..e64fc98d36 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/JsonExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/JsonExporterAttribute.cs @@ -43,4 +43,4 @@ public FullCompressed() : base(JsonExporter.FullCompressed) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/MarkdownExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/MarkdownExporterAttribute.cs index 4733addb68..9d76cd09da 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/MarkdownExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/MarkdownExporterAttribute.cs @@ -39,4 +39,4 @@ public Atlassian() : base(MarkdownExporter.Atlassian) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/OpenMetricsExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/OpenMetricsExporterAttribute.cs index fe40696269..205ea63104 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/OpenMetricsExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/OpenMetricsExporterAttribute.cs @@ -10,4 +10,4 @@ public OpenMetricsExporterAttribute() : base(OpenMetricsExporter.Default) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/PerfonarExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/PerfonarExporterAttribute.cs index ac9a0fba54..82afc50f2d 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/PerfonarExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/PerfonarExporterAttribute.cs @@ -6,4 +6,4 @@ namespace BenchmarkDotNet.Attributes; /// IMPORTANT: Not fully implemented yet /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)] -internal class PerfonarExporterAttribute() : ExporterConfigBaseAttribute(new PerfonarJsonExporter(), new PerfonarMdExporter()); \ No newline at end of file +internal class PerfonarExporterAttribute() : ExporterConfigBaseAttribute(new PerfonarJsonExporter(), new PerfonarMdExporter()); diff --git a/src/BenchmarkDotNet/Attributes/Exporters/PlainExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/PlainExporterAttribute.cs index f1de4bdfda..1cbf3ae42b 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/PlainExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/PlainExporterAttribute.cs @@ -8,4 +8,4 @@ public PlainExporterAttribute() : base(DefaultExporters.Plain) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Exporters/RPlotExporterAttribute.cs b/src/BenchmarkDotNet/Attributes/Exporters/RPlotExporterAttribute.cs index 4b4f6d9c39..b1381a8ec9 100644 --- a/src/BenchmarkDotNet/Attributes/Exporters/RPlotExporterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Exporters/RPlotExporterAttribute.cs @@ -8,4 +8,4 @@ public RPlotExporterAttribute() : base(DefaultExporters.RPlot) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Filters/AllCategoriesFilterAttribute.cs b/src/BenchmarkDotNet/Attributes/Filters/AllCategoriesFilterAttribute.cs index 8560f0cb10..e86559d85e 100644 --- a/src/BenchmarkDotNet/Attributes/Filters/AllCategoriesFilterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Filters/AllCategoriesFilterAttribute.cs @@ -11,4 +11,4 @@ public AllCategoriesFilterAttribute() { } public AllCategoriesFilterAttribute(params string[] targetCategories) : base(new AllCategoriesFilter(targetCategories)) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Filters/AnyCategoriesFilterAttribute.cs b/src/BenchmarkDotNet/Attributes/Filters/AnyCategoriesFilterAttribute.cs index b7020b3909..fb0e07ec04 100644 --- a/src/BenchmarkDotNet/Attributes/Filters/AnyCategoriesFilterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Filters/AnyCategoriesFilterAttribute.cs @@ -11,4 +11,4 @@ public AnyCategoriesFilterAttribute() { } public AnyCategoriesFilterAttribute(params string[] targetCategories) : base(new AnyCategoriesFilter(targetCategories)) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Filters/FilterConfigBaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Filters/FilterConfigBaseAttribute.cs index b399a9d4d4..fcc57b416f 100644 --- a/src/BenchmarkDotNet/Attributes/Filters/FilterConfigBaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Filters/FilterConfigBaseAttribute.cs @@ -19,4 +19,4 @@ protected FilterConfigBaseAttribute(params IFilter[] filters) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsArchitectureFilterAttribute.cs b/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsArchitectureFilterAttribute.cs index 63c392daaa..4912272bb8 100644 --- a/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsArchitectureFilterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsArchitectureFilterAttribute.cs @@ -22,4 +22,4 @@ public OperatingSystemsArchitectureFilterAttribute(bool allowed, params Architec { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsFilterAttribute.cs b/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsFilterAttribute.cs index 6c9c1fec02..a47761c996 100644 --- a/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsFilterAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Filters/OperatingSystemsFilterAttribute.cs @@ -53,4 +53,4 @@ private static OSPlatform Map(OS platform) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/GroupBenchmarksByAttribute.cs b/src/BenchmarkDotNet/Attributes/GroupBenchmarksByAttribute.cs index 8535843fb1..408298dca3 100644 --- a/src/BenchmarkDotNet/Attributes/GroupBenchmarksByAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/GroupBenchmarksByAttribute.cs @@ -20,4 +20,4 @@ public GroupBenchmarksByAttribute(params BenchmarkLogicalGroupRule[] rules) Config = ManualConfig.CreateEmpty().AddLogicalGroupRules(rules); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/HardwareCountersAttribute.cs b/src/BenchmarkDotNet/Attributes/HardwareCountersAttribute.cs index 2f75d4234d..1d7334aa85 100644 --- a/src/BenchmarkDotNet/Attributes/HardwareCountersAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/HardwareCountersAttribute.cs @@ -21,4 +21,4 @@ public HardwareCountersAttribute(params HardwareCounter[] counters) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/HideColumnsAttribute.cs b/src/BenchmarkDotNet/Attributes/HideColumnsAttribute.cs index 9fab13ddf4..63cea5c520 100644 --- a/src/BenchmarkDotNet/Attributes/HideColumnsAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/HideColumnsAttribute.cs @@ -14,4 +14,4 @@ public class HideColumnsAttribute : Attribute, IConfigSource public HideColumnsAttribute(params string[] names) => Config = ManualConfig.CreateEmpty().HideColumns(names); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/DryJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/DryJobAttribute.cs index d8522d1348..0c9b1e21a8 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/DryJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/DryJobAttribute.cs @@ -30,4 +30,4 @@ public DryJobAttribute(string runtimeMoniker, Jit jit, Platform platform) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/InProcessAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/InProcessAttribute.cs index 1c7e4f64dc..a79ec56106 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/InProcessAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/InProcessAttribute.cs @@ -45,4 +45,4 @@ internal static Job GetJob(Job baseJob, InProcessToolchainType toolchainType, bo return job.Freeze(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs index a923d42a5b..f8a51467a6 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/JobConfigbaseAttribute.cs @@ -60,4 +60,4 @@ protected static Job GetJob(Job sourceJob, string runtimeMoniker, Jit? jit, Plat return baseJob.WithId(id).Freeze(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX64JobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX64JobAttribute.cs index beda7638dd..df7f0349bf 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX64JobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX64JobAttribute.cs @@ -9,4 +9,4 @@ public LegacyJitX64JobAttribute() : base(Job.LegacyJitX64) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX86JobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX86JobAttribute.cs index 33083ff4d1..6619e7ede9 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX86JobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/LegacyJitX86JobAttribute.cs @@ -9,4 +9,4 @@ public LegacyJitX86JobAttribute() : base(Job.LegacyJitX86) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/LongRunJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/LongRunJobAttribute.cs index 4b89cdd227..773300d4a2 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/LongRunJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/LongRunJobAttribute.cs @@ -30,4 +30,4 @@ public LongRunJobAttribute(string runtimeMoniker, Jit jit, Platform platform) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/MediumRunJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/MediumRunJobAttribute.cs index 200afd0659..7ef2090ad9 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/MediumRunJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/MediumRunJobAttribute.cs @@ -30,4 +30,4 @@ public MediumRunJobAttribute(string runtimeMoniker, Jit jit, Platform platform) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/MonoJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/MonoJobAttribute.cs index eece8d46fb..74b24f70b0 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/MonoJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/MonoJobAttribute.cs @@ -20,4 +20,4 @@ public MonoJobAttribute(string name, string path, bool baseline = false) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX64JobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX64JobAttribute.cs index 01015337a6..413244be6d 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX64JobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX64JobAttribute.cs @@ -9,4 +9,4 @@ public RyuJitX64JobAttribute() : base(Job.RyuJitX64) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX86JobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX86JobAttribute.cs index 3d52a50cc9..fb2b8f1293 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX86JobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/RyuJitX86JobAttribute.cs @@ -11,4 +11,4 @@ public RyuJitX86JobAttribute() : base(Job.RyuJitX86) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/ShortRunJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/ShortRunJobAttribute.cs index f0c08f9cf6..79d2a665fe 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/ShortRunJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/ShortRunJobAttribute.cs @@ -30,4 +30,4 @@ public ShortRunJobAttribute(string runtimeMoniker, Jit jit, Platform platform) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/SimpleJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/SimpleJobAttribute.cs index f30cd717f2..6fca54f8d9 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/SimpleJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/SimpleJobAttribute.cs @@ -112,4 +112,4 @@ private static Job CreateJob(string id, int launchCount, int warmupCount, int it return job.Freeze(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Jobs/VeryLongRunJobAttribute.cs b/src/BenchmarkDotNet/Attributes/Jobs/VeryLongRunJobAttribute.cs index 22368e7047..43c28085db 100644 --- a/src/BenchmarkDotNet/Attributes/Jobs/VeryLongRunJobAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Jobs/VeryLongRunJobAttribute.cs @@ -32,4 +32,4 @@ public VeryLongRunJobAttribute(string runtimeMoniker, Jit jit, Platform platform { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/KeepBenchmarkFilesAttribute.cs b/src/BenchmarkDotNet/Attributes/KeepBenchmarkFilesAttribute.cs index 840f4bac38..3eed99f1b9 100644 --- a/src/BenchmarkDotNet/Attributes/KeepBenchmarkFilesAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/KeepBenchmarkFilesAttribute.cs @@ -17,4 +17,4 @@ public KeepBenchmarkFilesAttribute(bool value = true) Config = ManualConfig.CreateEmpty().WithOption(ConfigOptions.KeepBenchmarkFiles, value); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/MemoryDiagnoserAttribute.cs b/src/BenchmarkDotNet/Attributes/MemoryDiagnoserAttribute.cs index 72875a9b8a..0fa31b718c 100644 --- a/src/BenchmarkDotNet/Attributes/MemoryDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/MemoryDiagnoserAttribute.cs @@ -14,4 +14,4 @@ public MemoryDiagnoserAttribute(bool displayGenColumns = true) Config = ManualConfig.CreateEmpty().AddDiagnoser(new MemoryDiagnoser(new MemoryDiagnoserConfig(displayGenColumns))); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/EvaluateOverheadAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/EvaluateOverheadAttribute.cs index c5f89df5f0..000581a8f1 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/EvaluateOverheadAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/EvaluateOverheadAttribute.cs @@ -11,4 +11,4 @@ public EvaluateOverheadAttribute(bool value = true) : base(Job.Default.WithEvalu { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/GcConcurrentAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/GcConcurrentAttribute.cs index e5e5b2beb6..d03025f074 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/GcConcurrentAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/GcConcurrentAttribute.cs @@ -15,4 +15,4 @@ public GcConcurrentAttribute(bool value = true) : base(Job.Default.WithGcConcurr { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/GcForceAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/GcForceAttribute.cs index 6a6339c352..a9dc8a94eb 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/GcForceAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/GcForceAttribute.cs @@ -15,4 +15,4 @@ public GcForceAttribute(bool value = true) : base(Job.Default.WithGcForce(value) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/GcServerAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/GcServerAttribute.cs index 46a1edfcb3..c50554c20a 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/GcServerAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/GcServerAttribute.cs @@ -15,4 +15,4 @@ public GcServerAttribute(bool value = false) : base(Job.Default.WithGcServer(val { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/InnerIterationCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/InnerIterationCountAttribute.cs index 4bfbef2e8e..41c0cae257 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/InnerIterationCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/InnerIterationCountAttribute.cs @@ -17,4 +17,4 @@ public InnerIterationCountAttribute(int invocationCount) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/InvocationCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/InvocationCountAttribute.cs index 124eb0685e..18ed23a8d7 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/InvocationCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/InvocationCountAttribute.cs @@ -18,4 +18,4 @@ public InvocationCountAttribute(int invocationCount, int unrollFactor = 1) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/IterationCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/IterationCountAttribute.cs index 5e9fa71661..3c8392b02c 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/IterationCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/IterationCountAttribute.cs @@ -15,4 +15,4 @@ public IterationCountAttribute(int targetIterationCount) : base(Job.Default.With { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/IterationTimeAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/IterationTimeAttribute.cs index bf8121a1b6..68db363210 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/IterationTimeAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/IterationTimeAttribute.cs @@ -15,4 +15,4 @@ public IterationTimeAttribute(double milliseconds) : base(Job.Default.WithIterat { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/JobMutatorConfigBaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/JobMutatorConfigBaseAttribute.cs index e316ecb45a..aa56ce750e 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/JobMutatorConfigBaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/JobMutatorConfigBaseAttribute.cs @@ -15,4 +15,4 @@ public class JobMutatorConfigBaseAttribute : Attribute, IConfigSource public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MaxAbsoluteErrorAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MaxAbsoluteErrorAttribute.cs index a68a8ed1e7..7452a565c9 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MaxAbsoluteErrorAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MaxAbsoluteErrorAttribute.cs @@ -16,4 +16,4 @@ public MaxAbsoluteErrorAttribute(double nanoseconds) : base(Job.Default.WithMaxA { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MaxIterationCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MaxIterationCountAttribute.cs index 8bae800b86..32a881c28f 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MaxIterationCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MaxIterationCountAttribute.cs @@ -14,4 +14,4 @@ public MaxIterationCountAttribute(int maxTargetIterationCount) : base(Job.Defaul { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MaxRelativeErrorAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MaxRelativeErrorAttribute.cs index e822e2959e..7540035dbf 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MaxRelativeErrorAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MaxRelativeErrorAttribute.cs @@ -15,4 +15,4 @@ public MaxRelativeErrorAttribute(double maxRelativeError) : base(Job.Default.Wit { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MaxWarmupCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MaxWarmupCountAttribute.cs index 2ce8251043..260210ae14 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MaxWarmupCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MaxWarmupCountAttribute.cs @@ -18,4 +18,4 @@ public MaxWarmupCountAttribute(int maxWarmupCount, bool forceAutoWarmup = false) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MinInvokeCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MinInvokeCountAttribute.cs index d0318fd434..b7815784c2 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MinInvokeCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MinInvokeCountAttribute.cs @@ -14,4 +14,4 @@ public MinInvokeCountAttribute(int minInvokeCount) : base(Job.Default.WithMinInv { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MinIterationCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MinIterationCountAttribute.cs index e15379a691..f5a315c917 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MinIterationCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MinIterationCountAttribute.cs @@ -16,4 +16,4 @@ public MinIterationCountAttribute(int minTargetIterationCount) : base(Job.Defaul { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MinIterationTimeAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MinIterationTimeAttribute.cs index eece44a5b9..3561280838 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MinIterationTimeAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MinIterationTimeAttribute.cs @@ -15,4 +15,4 @@ public MinIterationTimeAttribute(double milliseconds) : base(Job.Default.WithMin { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/MinWarmupCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/MinWarmupCountAttribute.cs index d98ca141fc..02efb930ad 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/MinWarmupCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/MinWarmupCountAttribute.cs @@ -18,4 +18,4 @@ public MinWarmupCountAttribute(int minWarmupCount, bool forceAutoWarmup = false) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/OutliersAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/OutliersAttribute.cs index ca0c0781c9..9fd379acf9 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/OutliersAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/OutliersAttribute.cs @@ -12,4 +12,4 @@ public OutliersAttribute(OutlierMode outlierMode) : base(Job.Default.WithOutlier { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/ProcessCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/ProcessCountAttribute.cs index 5689c46519..714bd763ea 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/ProcessCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/ProcessCountAttribute.cs @@ -13,4 +13,4 @@ public ProcessCountAttribute(int processLaunchCount) : base(Job.Default.WithLaun { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/RunOncePerIterationAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/RunOncePerIterationAttribute.cs index 30496a6995..a4ce2b3de6 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/RunOncePerIterationAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/RunOncePerIterationAttribute.cs @@ -11,4 +11,4 @@ public RunOncePerIterationAttribute() : base(Job.Default.RunOncePerIteration()) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Mutators/WarmupCountAttribute.cs b/src/BenchmarkDotNet/Attributes/Mutators/WarmupCountAttribute.cs index 78b595dee1..5c272fcf05 100644 --- a/src/BenchmarkDotNet/Attributes/Mutators/WarmupCountAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Mutators/WarmupCountAttribute.cs @@ -13,4 +13,4 @@ public WarmupCountAttribute(int warmupCount) : base(Job.Default.WithWarmupCount( { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/OrdererAttribute.cs b/src/BenchmarkDotNet/Attributes/OrdererAttribute.cs index 69bad97015..bea9a1fdf1 100644 --- a/src/BenchmarkDotNet/Attributes/OrdererAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/OrdererAttribute.cs @@ -16,4 +16,4 @@ public OrdererAttribute( public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/PerfCollectProfilerAttribute.cs b/src/BenchmarkDotNet/Attributes/PerfCollectProfilerAttribute.cs index d53f86dcd9..5a0fe32e3e 100644 --- a/src/BenchmarkDotNet/Attributes/PerfCollectProfilerAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/PerfCollectProfilerAttribute.cs @@ -15,4 +15,4 @@ public PerfCollectProfilerAttribute(bool performExtraBenchmarksRun = false, int public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/StopOnFirstErrorAttribute.cs b/src/BenchmarkDotNet/Attributes/StopOnFirstErrorAttribute.cs index 51c4e9a339..b1605858e2 100644 --- a/src/BenchmarkDotNet/Attributes/StopOnFirstErrorAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/StopOnFirstErrorAttribute.cs @@ -17,4 +17,4 @@ public StopOnFirstErrorAttribute(bool value = true) Config = ManualConfig.CreateEmpty().WithOption(ConfigOptions.StopOnFirstError, value); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/ThreadingDiagnoserAttribute.cs b/src/BenchmarkDotNet/Attributes/ThreadingDiagnoserAttribute.cs index 2f17e2ebc5..860e8a45e1 100644 --- a/src/BenchmarkDotNet/Attributes/ThreadingDiagnoserAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/ThreadingDiagnoserAttribute.cs @@ -20,4 +20,4 @@ public ThreadingDiagnoserAttribute(bool displayLockContentionWhenZero = true, bo Config = ManualConfig.CreateEmpty().AddDiagnoser(new ThreadingDiagnoser(new ThreadingDiagnoserConfig(displayLockContentionWhenZero, displayCompletedWorkItemCountWhenZero))); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/UnicodeConsoleLoggerAttribute.cs b/src/BenchmarkDotNet/Attributes/UnicodeConsoleLoggerAttribute.cs index 4a6265202c..1ce3dcf088 100644 --- a/src/BenchmarkDotNet/Attributes/UnicodeConsoleLoggerAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/UnicodeConsoleLoggerAttribute.cs @@ -16,4 +16,4 @@ public UnicodeConsoleLoggerAttribute() public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Validators/ExecutionValidatorAttribute.cs b/src/BenchmarkDotNet/Attributes/Validators/ExecutionValidatorAttribute.cs index 458f00173c..426b2be1bb 100644 --- a/src/BenchmarkDotNet/Attributes/Validators/ExecutionValidatorAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Validators/ExecutionValidatorAttribute.cs @@ -12,4 +12,4 @@ public ExecutionValidatorAttribute() public ExecutionValidatorAttribute(bool failOnError) : base(failOnError ? ExecutionValidator.FailOnError : ExecutionValidator.DontFailOnError) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Validators/ReturnValueValidatorAttribute.cs b/src/BenchmarkDotNet/Attributes/Validators/ReturnValueValidatorAttribute.cs index 89cfe7040d..36351c4190 100644 --- a/src/BenchmarkDotNet/Attributes/Validators/ReturnValueValidatorAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Validators/ReturnValueValidatorAttribute.cs @@ -12,4 +12,4 @@ public ReturnValueValidatorAttribute() public ReturnValueValidatorAttribute(bool failOnError) : base(failOnError ? ReturnValueValidator.FailOnError : ReturnValueValidator.DontFailOnError) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Attributes/Validators/ValidatorConfigBaseAttribute.cs b/src/BenchmarkDotNet/Attributes/Validators/ValidatorConfigBaseAttribute.cs index 9b47bbe784..8ca2452cd9 100644 --- a/src/BenchmarkDotNet/Attributes/Validators/ValidatorConfigBaseAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/Validators/ValidatorConfigBaseAttribute.cs @@ -21,4 +21,4 @@ protected ValidatorConfigBaseAttribute(params IValidator[] validators) public IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/Characteristic.cs b/src/BenchmarkDotNet/Characteristics/Characteristic.cs index a5a1000c22..bb38c3318c 100644 --- a/src/BenchmarkDotNet/Characteristics/Characteristic.cs +++ b/src/BenchmarkDotNet/Characteristics/Characteristic.cs @@ -93,4 +93,4 @@ public object? this[CharacteristicObject obj] public override string ToString() => Id; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs index 2819ea7a4b..ba0108f8f0 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs @@ -125,4 +125,4 @@ public static IReadOnlyList GetAllPresentableCharacteristics( .ToArray(); #endregion } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs index d6fdcac56b..c862ccce0d 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs @@ -409,4 +409,4 @@ protected CharacteristicObject UnfreezeCopyCore() public override string ToString() => Id; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs index 57ce724023..0272883a98 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs @@ -39,4 +39,4 @@ public T Apply(params CharacteristicObject[] others) protected static Characteristic CreateIgnoreOnApplyCharacteristic<[DynamicallyAccessedMembers(CharacteristicMemberTypes)] TC>(string memberName) => Characteristic.CreateIgnoreOnApply(memberName); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicPresenter.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicPresenter.cs index c7f1d6f4db..294241fa28 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicPresenter.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicPresenter.cs @@ -98,4 +98,4 @@ public override string ToPresentation(object? characteristicValue, Characteristi => FolderNameHelper.ToFolderName(characteristicValue); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicSet.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicSet.cs index 7bc55b4efd..6efdfb0bfb 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicSet.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicSet.cs @@ -10,4 +10,4 @@ public sealed class CharacteristicSet : CharacteristicObject protected override bool IsPropertyBag => true; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicSetPresenter.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicSetPresenter.cs index 3db1d12948..005de2accb 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicSetPresenter.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicSetPresenter.cs @@ -85,4 +85,4 @@ protected override IEnumerable GetPresentableCharacteristics(Cha .Where(characteristic => !NonExportableTypes.Contains(characteristic.CharacteristicType)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs b/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs index ae9d6956a9..76500b0419 100644 --- a/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs +++ b/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs @@ -35,4 +35,4 @@ internal Characteristic( return Resolver(obj, (T?)base.ResolveValueCore(obj, currentValue)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/CompositeResolver.cs b/src/BenchmarkDotNet/Characteristics/CompositeResolver.cs index 3ea8cfa3d5..266ca9801e 100644 --- a/src/BenchmarkDotNet/Characteristics/CompositeResolver.cs +++ b/src/BenchmarkDotNet/Characteristics/CompositeResolver.cs @@ -57,4 +57,4 @@ public CompositeResolver(params IResolver[] resolvers) return defaultValue; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/IResolver.cs b/src/BenchmarkDotNet/Characteristics/IResolver.cs index 0afef6b8c5..7d3b6bb435 100644 --- a/src/BenchmarkDotNet/Characteristics/IResolver.cs +++ b/src/BenchmarkDotNet/Characteristics/IResolver.cs @@ -17,4 +17,4 @@ public interface IResolver T? Resolve<[DynamicallyAccessedMembers(CharacteristicObject.CharacteristicMemberTypes)] T>(CharacteristicObject obj, Characteristic characteristic, T defaultValue); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Characteristics/Resolver.cs b/src/BenchmarkDotNet/Characteristics/Resolver.cs index d1e035c0ed..eef0c6d371 100644 --- a/src/BenchmarkDotNet/Characteristics/Resolver.cs +++ b/src/BenchmarkDotNet/Characteristics/Resolver.cs @@ -56,4 +56,4 @@ public class Resolver : IResolver return defaultValue; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Code/CodeGenerator.cs b/src/BenchmarkDotNet/Code/CodeGenerator.cs index b4bb816ade..c1d0f89b2d 100644 --- a/src/BenchmarkDotNet/Code/CodeGenerator.cs +++ b/src/BenchmarkDotNet/Code/CodeGenerator.cs @@ -534,4 +534,4 @@ public SmartStringBuilder Replace(string oldValue, string? newValue) public override string ToString() => builder.ToString(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs b/src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs index 62cc46b774..6d145cfc09 100644 --- a/src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs +++ b/src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs @@ -87,4 +87,4 @@ private static bool IsNonBaselinesPrecise(Summary summary, IReadOnlyDictionary UnitType.Dimensionless; public override string Legend => "Allocated memory ratio distribution ([Current]/[Baseline])"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/BaselineColumn.cs b/src/BenchmarkDotNet/Columns/BaselineColumn.cs index 94498e0066..881a865c1d 100644 --- a/src/BenchmarkDotNet/Columns/BaselineColumn.cs +++ b/src/BenchmarkDotNet/Columns/BaselineColumn.cs @@ -23,4 +23,4 @@ public class BaselineColumn : IColumn public UnitType UnitType => UnitType.Dimensionless; public string Legend => ""; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/BaselineCustomColumn.cs b/src/BenchmarkDotNet/Columns/BaselineCustomColumn.cs index cc3d842ae6..b0546e6168 100644 --- a/src/BenchmarkDotNet/Columns/BaselineCustomColumn.cs +++ b/src/BenchmarkDotNet/Columns/BaselineCustomColumn.cs @@ -54,4 +54,4 @@ internal static bool ResultsAreInvalid(Summary summary, BenchmarkCase benchmarkC summary[benchmarkCase]?.ResultStatistics == null; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs b/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs index aa94a9b03f..74261f18d6 100644 --- a/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs +++ b/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs @@ -150,4 +150,4 @@ public override string Legend } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/CategoriesColumn.cs b/src/BenchmarkDotNet/Columns/CategoriesColumn.cs index 211fdb419d..669d3fd454 100644 --- a/src/BenchmarkDotNet/Columns/CategoriesColumn.cs +++ b/src/BenchmarkDotNet/Columns/CategoriesColumn.cs @@ -21,4 +21,4 @@ public class CategoriesColumn : IColumn public UnitType UnitType => UnitType.Dimensionless; public string Legend => "All categories of the corresponded method, class, and assembly"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/Column.cs b/src/BenchmarkDotNet/Columns/Column.cs index abc329ceaa..4eb15e1ce5 100644 --- a/src/BenchmarkDotNet/Columns/Column.cs +++ b/src/BenchmarkDotNet/Columns/Column.cs @@ -116,4 +116,4 @@ public static class Column public const string MaxWarmupIterationCount = "MaxWarmupIterationCount"; public const string MemoryRandomization = "MemoryRandomization"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/ColumnCategory.cs b/src/BenchmarkDotNet/Columns/ColumnCategory.cs index 8be2472335..94f0213c3e 100644 --- a/src/BenchmarkDotNet/Columns/ColumnCategory.cs +++ b/src/BenchmarkDotNet/Columns/ColumnCategory.cs @@ -4,4 +4,4 @@ public enum ColumnCategory { Job, Params, Statistics, Baseline, Custom, Meta, Metric } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/ColumnExtensions.cs b/src/BenchmarkDotNet/Columns/ColumnExtensions.cs index 0f5a9742b3..cf23b1902c 100644 --- a/src/BenchmarkDotNet/Columns/ColumnExtensions.cs +++ b/src/BenchmarkDotNet/Columns/ColumnExtensions.cs @@ -4,4 +4,4 @@ public static class ColumnExtensions { public static IColumnProvider ToProvider(this IColumn column) => new SimpleColumnProvider(column); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/CompositeColumnProvider.cs b/src/BenchmarkDotNet/Columns/CompositeColumnProvider.cs index 433c08f1f0..73b201e1d5 100644 --- a/src/BenchmarkDotNet/Columns/CompositeColumnProvider.cs +++ b/src/BenchmarkDotNet/Columns/CompositeColumnProvider.cs @@ -13,4 +13,4 @@ public CompositeColumnProvider(params IColumnProvider[] providers) public IEnumerable GetColumns(Summary summary) => providers.SelectMany(p => p.GetColumns(summary)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs b/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs index db5e741c49..dabe340cd6 100644 --- a/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs +++ b/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs @@ -120,4 +120,4 @@ public IEnumerable GetColumns(Summary summary) => summary .Select(descriptor => new MetricColumn(descriptor)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/EmptyColumnProvider.cs b/src/BenchmarkDotNet/Columns/EmptyColumnProvider.cs index 7229557579..22261c449c 100644 --- a/src/BenchmarkDotNet/Columns/EmptyColumnProvider.cs +++ b/src/BenchmarkDotNet/Columns/EmptyColumnProvider.cs @@ -12,4 +12,4 @@ private EmptyColumnProvider() public IEnumerable GetColumns(Summary summary) => []; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/IColumnHidingRule.cs b/src/BenchmarkDotNet/Columns/IColumnHidingRule.cs index 45e17c1c94..f9ab68af5c 100644 --- a/src/BenchmarkDotNet/Columns/IColumnHidingRule.cs +++ b/src/BenchmarkDotNet/Columns/IColumnHidingRule.cs @@ -4,4 +4,4 @@ public interface IColumnHidingRule { bool NeedToHide(IColumn column); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs b/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs index 3c296336e8..aa1b2752ba 100644 --- a/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs +++ b/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs @@ -69,4 +69,4 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase) public string Legend => ""; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/LogicalGroupColumn.cs b/src/BenchmarkDotNet/Columns/LogicalGroupColumn.cs index d764c7f431..800da08da2 100644 --- a/src/BenchmarkDotNet/Columns/LogicalGroupColumn.cs +++ b/src/BenchmarkDotNet/Columns/LogicalGroupColumn.cs @@ -23,4 +23,4 @@ public class LogicalGroupColumn : IColumn public UnitType UnitType => UnitType.Dimensionless; public string Legend => ""; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/MetricColumn.cs b/src/BenchmarkDotNet/Columns/MetricColumn.cs index 320085e34a..9cce2cff16 100644 --- a/src/BenchmarkDotNet/Columns/MetricColumn.cs +++ b/src/BenchmarkDotNet/Columns/MetricColumn.cs @@ -70,4 +70,4 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyl public override string ToString() => descriptor.DisplayName; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/ParamColumn.cs b/src/BenchmarkDotNet/Columns/ParamColumn.cs index 214a3f1f86..702ae5e367 100644 --- a/src/BenchmarkDotNet/Columns/ParamColumn.cs +++ b/src/BenchmarkDotNet/Columns/ParamColumn.cs @@ -31,4 +31,4 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase) => public string Legend => $"Value of the '{ColumnName}' parameter"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/RankColumn.cs b/src/BenchmarkDotNet/Columns/RankColumn.cs index ee72b3ee46..634bf0e1a9 100644 --- a/src/BenchmarkDotNet/Columns/RankColumn.cs +++ b/src/BenchmarkDotNet/Columns/RankColumn.cs @@ -46,4 +46,4 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase) public override string ToString() => ColumnName; public string Legend => $"Relative position of current benchmark mean among all benchmarks ({numeralSystem} style)"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/RatioColumnStyle.cs b/src/BenchmarkDotNet/Columns/RatioColumnStyle.cs index d5687a1e11..046f4d199c 100644 --- a/src/BenchmarkDotNet/Columns/RatioColumnStyle.cs +++ b/src/BenchmarkDotNet/Columns/RatioColumnStyle.cs @@ -6,4 +6,4 @@ public enum RatioStyle Percentage, Trend } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/StatisticColumn.cs b/src/BenchmarkDotNet/Columns/StatisticColumn.cs index d12b844b2c..4da93c4f98 100644 --- a/src/BenchmarkDotNet/Columns/StatisticColumn.cs +++ b/src/BenchmarkDotNet/Columns/StatisticColumn.cs @@ -167,4 +167,4 @@ private string Format(Summary summary, ImmutableConfig config, Statistics? stati private static IColumn CreatePercentileColumn(int percentiles, string columnName, Func calc) => new StatisticColumn( columnName, "Percentile " + percentiles, calc, Priority.Percentiles); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/StatisticalTestColumn.cs b/src/BenchmarkDotNet/Columns/StatisticalTestColumn.cs index 691c6d07b1..dc4bdaf935 100644 --- a/src/BenchmarkDotNet/Columns/StatisticalTestColumn.cs +++ b/src/BenchmarkDotNet/Columns/StatisticalTestColumn.cs @@ -59,4 +59,4 @@ public override string GetValue(Summary summary, BenchmarkCase benchmarkCase, St public override string Legend => $"MannWhitney-based equivalence test (threshold={Threshold}, alpha = {SignificanceLevel})"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/TagColumn.cs b/src/BenchmarkDotNet/Columns/TagColumn.cs index 1776ee278a..48bc299586 100644 --- a/src/BenchmarkDotNet/Columns/TagColumn.cs +++ b/src/BenchmarkDotNet/Columns/TagColumn.cs @@ -30,4 +30,4 @@ public TagColumn(string columnName, Func getTag) public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyle style) => GetValue(summary, benchmarkCase); public override string ToString() => ColumnName; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Columns/TargetMethodColumn.cs b/src/BenchmarkDotNet/Columns/TargetMethodColumn.cs index 4daed80067..f4a3bdbc36 100644 --- a/src/BenchmarkDotNet/Columns/TargetMethodColumn.cs +++ b/src/BenchmarkDotNet/Columns/TargetMethodColumn.cs @@ -34,4 +34,4 @@ private TargetMethodColumn(string columnName, Func valueP public bool IsDefault(Summary summary, BenchmarkCase benchmarkCase) => false; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/BenchmarkLogicalGroupRule.cs b/src/BenchmarkDotNet/Configs/BenchmarkLogicalGroupRule.cs index 183ad39c19..d2a7920c71 100644 --- a/src/BenchmarkDotNet/Configs/BenchmarkLogicalGroupRule.cs +++ b/src/BenchmarkDotNet/Configs/BenchmarkLogicalGroupRule.cs @@ -4,4 +4,4 @@ public enum BenchmarkLogicalGroupRule { ByMethod, ByJob, ByParams, ByCategory } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/ConfigUnionRule.cs b/src/BenchmarkDotNet/Configs/ConfigUnionRule.cs index 0d23ec2e1a..e662c0eb80 100644 --- a/src/BenchmarkDotNet/Configs/ConfigUnionRule.cs +++ b/src/BenchmarkDotNet/Configs/ConfigUnionRule.cs @@ -4,4 +4,4 @@ public enum ConfigUnionRule { Union, AlwaysUseLocal, AlwaysUseGlobal } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/DebugConfig.cs b/src/BenchmarkDotNet/Configs/DebugConfig.cs index 8b75139b70..46a60dffcf 100644 --- a/src/BenchmarkDotNet/Configs/DebugConfig.cs +++ b/src/BenchmarkDotNet/Configs/DebugConfig.cs @@ -76,4 +76,4 @@ public abstract class DebugConfig : IConfig public IReadOnlyList ConfigAnalysisConclusion => emptyConclusion; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/DefaultConfig.cs b/src/BenchmarkDotNet/Configs/DefaultConfig.cs index 15c3d4764e..0c4af704bc 100644 --- a/src/BenchmarkDotNet/Configs/DefaultConfig.cs +++ b/src/BenchmarkDotNet/Configs/DefaultConfig.cs @@ -136,4 +136,4 @@ public string ArtifactsPath public IEnumerable GetColumnHidingRules() => []; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/IConfig.cs b/src/BenchmarkDotNet/Configs/IConfig.cs index 343f9faa46..128a217d56 100644 --- a/src/BenchmarkDotNet/Configs/IConfig.cs +++ b/src/BenchmarkDotNet/Configs/IConfig.cs @@ -68,4 +68,4 @@ public interface IConfig /// IReadOnlyList ConfigAnalysisConclusion { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/IConfigSource.cs b/src/BenchmarkDotNet/Configs/IConfigSource.cs index 005f2afe2f..5104baf6eb 100644 --- a/src/BenchmarkDotNet/Configs/IConfigSource.cs +++ b/src/BenchmarkDotNet/Configs/IConfigSource.cs @@ -4,4 +4,4 @@ public interface IConfigSource { IConfig Config { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Configs/WakeLockType.cs b/src/BenchmarkDotNet/Configs/WakeLockType.cs index dad27ceeaf..991cd8bf3c 100644 --- a/src/BenchmarkDotNet/Configs/WakeLockType.cs +++ b/src/BenchmarkDotNet/Configs/WakeLockType.cs @@ -17,4 +17,4 @@ public enum WakeLockType /// Display } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/LevenshteinDistanceCalculator.cs b/src/BenchmarkDotNet/ConsoleArguments/LevenshteinDistanceCalculator.cs index e217d46082..fa54cc40a2 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/LevenshteinDistanceCalculator.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/LevenshteinDistanceCalculator.cs @@ -31,4 +31,4 @@ public int Calculate(string string1, string string2) return m[string1.Length, string2.Length]; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/BenchmarkCasesPrinter.cs b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/BenchmarkCasesPrinter.cs index b26d9ea856..fe567efa7c 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/BenchmarkCasesPrinter.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/BenchmarkCasesPrinter.cs @@ -20,4 +20,4 @@ public BenchmarkCasesPrinter(ListBenchmarkCaseMode listBenchmarkCaseMode) public void Print(IEnumerable benchmarkCases, ILogger logger) => printer.Print(benchmarkCases, logger); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/FlatBenchmarkCasesPrinter.cs b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/FlatBenchmarkCasesPrinter.cs index 227d6a8062..5ad093f8e3 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/FlatBenchmarkCasesPrinter.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/FlatBenchmarkCasesPrinter.cs @@ -17,4 +17,4 @@ public void Print(IEnumerable benchmarkCases, ILogger logger) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/IBenchmarkCasesPrinter.cs b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/IBenchmarkCasesPrinter.cs index 2f229572ef..18d2355043 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/IBenchmarkCasesPrinter.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/IBenchmarkCasesPrinter.cs @@ -7,4 +7,4 @@ internal interface IBenchmarkCasesPrinter { void Print(IEnumerable benchmarkCases, ILogger logger); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/ListBechnmarkCaseMode.cs b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/ListBechnmarkCaseMode.cs index a55036037f..1d6caab2bc 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/ListBechnmarkCaseMode.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/ListBechnmarkCaseMode.cs @@ -22,4 +22,4 @@ public enum ListBenchmarkCaseMode /// Json, } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/TreeBenchmarkCasesPrinter.cs b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/TreeBenchmarkCasesPrinter.cs index 240a9f26ab..1c9b28bf30 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/TreeBenchmarkCasesPrinter.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ListBenchmarks/TreeBenchmarkCasesPrinter.cs @@ -83,4 +83,4 @@ private void PrintChildNode(Node node, string indent, bool isLast, ILogger logge PrintNode(node, indent, logger); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/ConsoleArguments/LoggerWrapper.cs b/src/BenchmarkDotNet/ConsoleArguments/LoggerWrapper.cs index 7692515094..cdc2c92484 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/LoggerWrapper.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/LoggerWrapper.cs @@ -19,4 +19,4 @@ public override void Write(string? value) logger.WriteInfo(value); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/ICpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/ICpuDetector.cs index 72355b60e5..1f859becae 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/ICpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/ICpuDetector.cs @@ -9,4 +9,4 @@ public interface ICpuDetector { bool IsApplicable(); CpuInfo? Detect(); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuDetector.cs index 9f3d3f0787..33d2fe6cb8 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuDetector.cs @@ -31,4 +31,4 @@ internal class LinuxCpuDetector : ICpuDetector return LinuxCpuInfoParser.Parse(cpuInfo, lscpu); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuInfoParser.cs b/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuInfoParser.cs index d07e698324..f6d97edb6e 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuInfoParser.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Linux/LinuxCpuInfoParser.cs @@ -154,4 +154,4 @@ internal static CpuInfo Parse(string cpuInfo, string lscpu) return null; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Windows/PowershellWmiCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/Windows/PowershellWmiCpuDetector.cs index 89a8bc4efd..69da3fd071 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Windows/PowershellWmiCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Windows/PowershellWmiCpuDetector.cs @@ -32,4 +32,4 @@ internal class PowershellWmiCpuDetector : ICpuDetector return CpuInfoParser.ParseCimOutput(output); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Windows/WindowsCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/Windows/WindowsCpuDetector.cs index cef752c8cf..bc824744ac 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Windows/WindowsCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Windows/WindowsCpuDetector.cs @@ -1,4 +1,4 @@ namespace BenchmarkDotNet.Detectors.Cpu.Windows; internal class WindowsCpuDetector() : CpuDetector(new DefaultCpuDetector(), new PowershellWmiCpuDetector(), - new WmicCpuDetector()); \ No newline at end of file + new WmicCpuDetector()); diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs index 8be96f5e31..a54f92ce09 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs @@ -36,4 +36,4 @@ internal class WmicCpuDetector : ICpuDetector return CpuInfoParser.ParseWmicOutput(wmicOutput); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/macOS/MacOsCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/macOS/MacOsCpuDetector.cs index f347b5661a..a49450e0f8 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/macOS/MacOsCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/macOS/MacOsCpuDetector.cs @@ -22,4 +22,4 @@ internal class MacOsCpuDetector : ICpuDetector return SysctlCpuInfoParser.Parse(sysctlOutput); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/Cpu/macOS/SysctlCpuInfoParser.cs b/src/BenchmarkDotNet/Detectors/Cpu/macOS/SysctlCpuInfoParser.cs index 399a4e0c99..6cf06afeca 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/macOS/SysctlCpuInfoParser.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/macOS/SysctlCpuInfoParser.cs @@ -56,4 +56,4 @@ internal static CpuInfo Parse(string sysctlOutput) return result; return null; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/CpuDetector.cs b/src/BenchmarkDotNet/Detectors/CpuDetector.cs index 57ca847adc..c66a56acf2 100644 --- a/src/BenchmarkDotNet/Detectors/CpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/CpuDetector.cs @@ -24,4 +24,4 @@ public class CpuDetector(params ICpuDetector[] detectors) : ICpuDetector .Select(loader => loader.Detect()) .WhereNotNull() .FirstOrDefault(); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Detectors/OsDetector.cs b/src/BenchmarkDotNet/Detectors/OsDetector.cs index 4335953a06..c1c8f90194 100644 --- a/src/BenchmarkDotNet/Detectors/OsDetector.cs +++ b/src/BenchmarkDotNet/Detectors/OsDetector.cs @@ -183,4 +183,4 @@ internal static bool IsWindows7OrLater() => #else RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version >= new Version(6, 1); #endif -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/AllocatedMemoryMetricDescriptor.cs b/src/BenchmarkDotNet/Diagnosers/AllocatedMemoryMetricDescriptor.cs index 902549e8a0..a1a66f4a25 100644 --- a/src/BenchmarkDotNet/Diagnosers/AllocatedMemoryMetricDescriptor.cs +++ b/src/BenchmarkDotNet/Diagnosers/AllocatedMemoryMetricDescriptor.cs @@ -18,4 +18,4 @@ internal class AllocatedMemoryMetricDescriptor : IMetricDescriptor public int PriorityInCategory => GC.MaxGeneration + 1; public bool GetIsAvailable(Metric metric) => true; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/AllocatedNativeMemoryDescriptor.cs b/src/BenchmarkDotNet/Diagnosers/AllocatedNativeMemoryDescriptor.cs index bcf9b4c2b3..645d6e6db5 100644 --- a/src/BenchmarkDotNet/Diagnosers/AllocatedNativeMemoryDescriptor.cs +++ b/src/BenchmarkDotNet/Diagnosers/AllocatedNativeMemoryDescriptor.cs @@ -33,4 +33,4 @@ internal class NativeMemoryLeakDescriptor : IMetricDescriptor public int PriorityInCategory => 0; public bool GetIsAvailable(Metric metric) => true; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/DiagnoserActionParameters.cs b/src/BenchmarkDotNet/Diagnosers/DiagnoserActionParameters.cs index bf50ff2f9f..e1962fbdc2 100644 --- a/src/BenchmarkDotNet/Diagnosers/DiagnoserActionParameters.cs +++ b/src/BenchmarkDotNet/Diagnosers/DiagnoserActionParameters.cs @@ -26,4 +26,4 @@ public DiagnoserActionParameters(Process? process, BenchmarkCase benchmarkCase, public ImmutableConfig Config => BenchmarkCase.Config; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/DiagnoserResults.cs b/src/BenchmarkDotNet/Diagnosers/DiagnoserResults.cs index a835d6bcb5..d2b49c37be 100644 --- a/src/BenchmarkDotNet/Diagnosers/DiagnoserResults.cs +++ b/src/BenchmarkDotNet/Diagnosers/DiagnoserResults.cs @@ -15,4 +15,4 @@ public class DiagnoserResults(BenchmarkCase benchmarkCase, ExecuteResult execute public IReadOnlyList Measurements { get; } = executeResult.Measurements; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs b/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs index 3d9c23a8d7..a470b1c334 100644 --- a/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs +++ b/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs @@ -92,4 +92,4 @@ private static IDiagnoser[] LoadWindowsDiagnosers() private static IDiagnoser CreateDiagnoser(Assembly loadedAssembly, string typeName) => (IDiagnoser)Activator.CreateInstance(loadedAssembly.GetType(typeName)!)!; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs b/src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs index 5a9cece699..a0357e812c 100644 --- a/src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs +++ b/src/BenchmarkDotNet/Diagnosers/EventPipeProfile.cs @@ -22,4 +22,4 @@ public enum EventPipeProfile /// Jit } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/ExceptionDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/ExceptionDiagnoser.cs index ab86e52cbe..cf46bc069c 100644 --- a/src/BenchmarkDotNet/Diagnosers/ExceptionDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/ExceptionDiagnoser.cs @@ -100,4 +100,4 @@ private void OnFirstChanceException(object? sender, FirstChanceExceptionEventArg Interlocked.Increment(ref exceptionsCount); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/HardwareCounter.cs b/src/BenchmarkDotNet/Diagnosers/HardwareCounter.cs index 6ca957550e..b0202b8ea2 100644 --- a/src/BenchmarkDotNet/Diagnosers/HardwareCounter.cs +++ b/src/BenchmarkDotNet/Diagnosers/HardwareCounter.cs @@ -84,4 +84,4 @@ public static bool TheGreaterTheBetter(this HardwareCounter hardwareCounter) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs index 4c76c9a670..d71ca695cf 100644 --- a/src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs @@ -74,4 +74,4 @@ public interface IInProcessDiagnoserHandler /// string SerializeResults(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/IHardwareCounterDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/IHardwareCounterDiagnoser.cs index 5704513323..3a22115b72 100644 --- a/src/BenchmarkDotNet/Diagnosers/IHardwareCounterDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/IHardwareCounterDiagnoser.cs @@ -6,4 +6,4 @@ internal interface IHardwareCountersDiagnoser : IDiagnoser { IReadOnlyDictionary Results { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/IProfiler.cs b/src/BenchmarkDotNet/Diagnosers/IProfiler.cs index d853d7badc..f07bbfe02e 100644 --- a/src/BenchmarkDotNet/Diagnosers/IProfiler.cs +++ b/src/BenchmarkDotNet/Diagnosers/IProfiler.cs @@ -4,4 +4,4 @@ internal interface IProfiler : IDiagnoser { string ShortName { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserActionParameters.cs b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserActionParameters.cs index dbe2d929fe..340fd2d295 100644 --- a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserActionParameters.cs +++ b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserActionParameters.cs @@ -3,4 +3,4 @@ namespace BenchmarkDotNet.Diagnosers; public class InProcessDiagnoserActionArgs(object benchmarkInstance) { public object BenchmarkInstance { get; } = benchmarkInstance; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs index 5a8b0dc0e1..a6901dbc1b 100644 --- a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs +++ b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserHandlerData.cs @@ -26,4 +26,4 @@ public readonly struct InProcessDiagnoserHandlerData( /// The serialized config that will be passed to . /// public string? SerializedConfig { get; } = serializedConfig; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs index bdfad1559a..bce95eba2c 100644 --- a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs +++ b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs @@ -39,4 +39,4 @@ internal readonly bool ShouldHandle(RunMode runMode) => this.runMode == runMode // ExtraIteration is merged with NoOverhead, so we need to check it explicitly. || (runMode == RunMode.NoOverhead && this.runMode == RunMode.ExtraIteration); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs index 46cc932a6f..745d96ce81 100644 --- a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs @@ -67,4 +67,4 @@ private GarbageCollectionsMetricDescriptor(int generationId, string columnName) public bool GetIsAvailable(Metric metric) => metric.Value > 0; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoserConfig.cs b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoserConfig.cs index 0cca72e52e..dca6cfeb51 100644 --- a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoserConfig.cs +++ b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoserConfig.cs @@ -13,4 +13,4 @@ public MemoryDiagnoserConfig(bool displayGenColumns = true) public bool DisplayGenColumns { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/PmcMetricDescriptor.cs b/src/BenchmarkDotNet/Diagnosers/PmcMetricDescriptor.cs index 363a84e97a..88ba356bce 100644 --- a/src/BenchmarkDotNet/Diagnosers/PmcMetricDescriptor.cs +++ b/src/BenchmarkDotNet/Diagnosers/PmcMetricDescriptor.cs @@ -23,4 +23,4 @@ internal PmcMetricDescriptor(PreciseMachineCounter counter) public int PriorityInCategory => 0; public bool GetIsAvailable(Metric metric) => true; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/PmcStats.cs b/src/BenchmarkDotNet/Diagnosers/PmcStats.cs index a1381a5d92..bb179f33a8 100644 --- a/src/BenchmarkDotNet/Diagnosers/PmcStats.cs +++ b/src/BenchmarkDotNet/Diagnosers/PmcStats.cs @@ -26,4 +26,4 @@ internal void Handle(int profileSourceId, ulong instructionPointer) counter.OnSample(instructionPointer); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs b/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs index 1018f6c175..fccff80e5c 100644 --- a/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs +++ b/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs @@ -34,4 +34,4 @@ public void OnSample(ulong instructionPointer) } } #pragma warning restore CS3001 // Argument type is not CLS-compliant -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/RunMode.cs b/src/BenchmarkDotNet/Diagnosers/RunMode.cs index ebb8329cf3..357afcf99b 100644 --- a/src/BenchmarkDotNet/Diagnosers/RunMode.cs +++ b/src/BenchmarkDotNet/Diagnosers/RunMode.cs @@ -26,4 +26,4 @@ public enum RunMode : byte /// SeparateLogic } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs b/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs index d49569aa32..e1e47c1a3e 100644 --- a/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs +++ b/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs @@ -214,4 +214,4 @@ public void Report(double value) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs index a5613fb805..c8b9215c12 100644 --- a/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs @@ -170,4 +170,4 @@ private static Func CreateGetterDelegate(Type type, string propertyName) } #endif } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs index 49cb513c52..46c6b4dddb 100644 --- a/src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/UnresolvedDiagnoser.cs @@ -38,4 +38,4 @@ public async IAsyncEnumerable ValidateAsync(ValidationParameter + "The alternative is to use `true` in your project file." : $"Please make sure that it's supported on {OsDetector.GetOs()}")}"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs b/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs index c43ebdcc13..dac869f3d3 100644 --- a/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs +++ b/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs @@ -387,4 +387,4 @@ public bool Equals(Sharp? x, Sharp? y) public int GetHashCode(Sharp obj) => HashCode.Combine(obj.FilePath, obj.LineNumber); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/DataContracts.cs b/src/BenchmarkDotNet/Disassemblers/DataContracts.cs index cbc6b9406f..33d393ed1a 100644 --- a/src/BenchmarkDotNet/Disassemblers/DataContracts.cs +++ b/src/BenchmarkDotNet/Disassemblers/DataContracts.cs @@ -255,4 +255,4 @@ internal MethodInfo(IClrMethod method, int depth) Method = method; Depth = depth; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/DisassemblyAnalyzer.cs b/src/BenchmarkDotNet/Disassemblers/DisassemblyAnalyzer.cs index a35c5c93ea..c741794924 100644 --- a/src/BenchmarkDotNet/Disassemblers/DisassemblyAnalyzer.cs +++ b/src/BenchmarkDotNet/Disassemblers/DisassemblyAnalyzer.cs @@ -17,4 +17,4 @@ public IEnumerable Analyse(Summary summary) from error in pair.Value.Errors select Conclusion.CreateWarning(Id, error, summary[pair.Key]); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs b/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs index 1fa426b657..33e40e67c2 100644 --- a/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs +++ b/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoser.cs @@ -301,4 +301,4 @@ string IInProcessDiagnoserHandler.SerializeResults() return BdnJsonSerializer.Serialize(_result); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoserConfig.cs b/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoserConfig.cs index f1596ae0a9..07b58ac67e 100644 --- a/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoserConfig.cs +++ b/src/BenchmarkDotNet/Disassemblers/DisassemblyDiagnoserConfig.cs @@ -89,4 +89,4 @@ private static FormatterOptions GetDefaults(DisassemblySyntax syntax) return options; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/DisassemblySyntax.cs b/src/BenchmarkDotNet/Disassemblers/DisassemblySyntax.cs index 5bb139f547..884f4eec86 100644 --- a/src/BenchmarkDotNet/Disassemblers/DisassemblySyntax.cs +++ b/src/BenchmarkDotNet/Disassemblers/DisassemblySyntax.cs @@ -15,4 +15,4 @@ public enum DisassemblySyntax /// Att } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/Exporters/DisassemblyPrettifier.cs b/src/BenchmarkDotNet/Disassemblers/Exporters/DisassemblyPrettifier.cs index d81150a1a9..655a62fa4a 100644 --- a/src/BenchmarkDotNet/Disassemblers/Exporters/DisassemblyPrettifier.cs +++ b/src/BenchmarkDotNet/Disassemblers/Exporters/DisassemblyPrettifier.cs @@ -102,4 +102,4 @@ internal static IReadOnlyList Prettify(DisassembledMethod method, Disas return prettified; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDiffDisassemblyExporter.cs b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDiffDisassemblyExporter.cs index b462104fc2..b0c115a107 100644 --- a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDiffDisassemblyExporter.cs +++ b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDiffDisassemblyExporter.cs @@ -113,4 +113,4 @@ private static async ValueTask RunGitDiff(string firstFile, string secondFile, S } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs index 1ac2e5f4fa..3bc445fd79 100644 --- a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs +++ b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs @@ -93,4 +93,4 @@ internal static async ValueTask ExportAsync(CancelableStreamWriter writer, Disas await writer.WriteLineAsync(cancellationToken).ConfigureAwait(false); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/Exporters/HtmlDisassemblyExporter.cs b/src/BenchmarkDotNet/Disassemblers/Exporters/HtmlDisassemblyExporter.cs index 79175d8003..6fd269cfcc 100644 --- a/src/BenchmarkDotNet/Disassemblers/Exporters/HtmlDisassemblyExporter.cs +++ b/src/BenchmarkDotNet/Disassemblers/Exporters/HtmlDisassemblyExporter.cs @@ -105,4 +105,4 @@ private async ValueTask Export(CancelableStreamWriter writer, Summary summa return referenceIndex; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Disassemblers/MonoDisassembler.cs b/src/BenchmarkDotNet/Disassemblers/MonoDisassembler.cs index d020056f3f..52c5bec063 100644 --- a/src/BenchmarkDotNet/Disassemblers/MonoDisassembler.cs +++ b/src/BenchmarkDotNet/Disassemblers/MonoDisassembler.cs @@ -141,4 +141,4 @@ private static bool TryParseInstruction(string line, [NotNullWhen(true)] out Mon } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/BenchmarkSignal.cs b/src/BenchmarkDotNet/Engines/BenchmarkSignal.cs index 01ba0a8109..55770a9e0f 100644 --- a/src/BenchmarkDotNet/Engines/BenchmarkSignal.cs +++ b/src/BenchmarkDotNet/Engines/BenchmarkSignal.cs @@ -31,4 +31,4 @@ public enum BenchmarkSignal /// used to run some code independent of the benchmarks /// SeparateLogic, -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/Consumer.cs b/src/BenchmarkDotNet/Engines/Consumer.cs index bf3b3bbfb5..82f2ba29b0 100644 --- a/src/BenchmarkDotNet/Engines/Consumer.cs +++ b/src/BenchmarkDotNet/Engines/Consumer.cs @@ -149,4 +149,4 @@ public void Consume(in T value) DeadCodeEliminationHelper.KeepAliveWithoutBoxing(in value); // non-primitive and nullable value types } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/ConsumerExtensions.cs b/src/BenchmarkDotNet/Engines/ConsumerExtensions.cs index ac7f23bda4..33aa07a429 100644 --- a/src/BenchmarkDotNet/Engines/ConsumerExtensions.cs +++ b/src/BenchmarkDotNet/Engines/ConsumerExtensions.cs @@ -63,4 +63,4 @@ public static void Consume(this IQueryable queryable, Consumer consumer) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/DeadCodeEliminationHelper.cs b/src/BenchmarkDotNet/Engines/DeadCodeEliminationHelper.cs index 0288894851..7d1c658e0f 100644 --- a/src/BenchmarkDotNet/Engines/DeadCodeEliminationHelper.cs +++ b/src/BenchmarkDotNet/Engines/DeadCodeEliminationHelper.cs @@ -27,4 +27,4 @@ public static void KeepAliveWithoutBoxing(in T value) where T : allows ref struct #endif { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/Engine.cs b/src/BenchmarkDotNet/Engines/Engine.cs index 0d43a89ac4..9187e03812 100644 --- a/src/BenchmarkDotNet/Engines/Engine.cs +++ b/src/BenchmarkDotNet/Engines/Engine.cs @@ -340,4 +340,4 @@ public static bool TryGetSignal(string message, out HostSignal signal) => MessagesToSignals.TryGetValue(message, out signal); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineActualStage.cs b/src/BenchmarkDotNet/Engines/EngineActualStage.cs index cd67f8d41a..8f3da7b253 100644 --- a/src/BenchmarkDotNet/Engines/EngineActualStage.cs +++ b/src/BenchmarkDotNet/Engines/EngineActualStage.cs @@ -115,4 +115,4 @@ internal override bool GetShouldRunIteration(List measurements, out return false; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineEventSource.cs b/src/BenchmarkDotNet/Engines/EngineEventSource.cs index 72776bb43e..5cafeadf1b 100644 --- a/src/BenchmarkDotNet/Engines/EngineEventSource.cs +++ b/src/BenchmarkDotNet/Engines/EngineEventSource.cs @@ -151,4 +151,4 @@ internal void IterationStop(IterationMode mode, IterationStage stage, long total } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineFactory.cs b/src/BenchmarkDotNet/Engines/EngineFactory.cs index 8169c7a175..43cd077ac7 100644 --- a/src/BenchmarkDotNet/Engines/EngineFactory.cs +++ b/src/BenchmarkDotNet/Engines/EngineFactory.cs @@ -4,4 +4,4 @@ public class EngineFactory : IEngineFactory { public IEngine Create(EngineParameters engineParameters) => new Engine(engineParameters); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineJitStage.cs b/src/BenchmarkDotNet/Engines/EngineJitStage.cs index e8ae45391b..0bbba2d604 100644 --- a/src/BenchmarkDotNet/Engines/EngineJitStage.cs +++ b/src/BenchmarkDotNet/Engines/EngineJitStage.cs @@ -229,4 +229,4 @@ private IterationData GetOverheadIterationData(long invokeCount) private IterationData GetWorkloadIterationData(long invokeCount) => new(IterationMode.Workload, IterationStage.Jitting, iterationIndex, invokeCount, 1, parameters.IterationSetupAction, parameters.IterationCleanupAction, parameters.WorkloadActionNoUnroll); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineParameters.cs b/src/BenchmarkDotNet/Engines/EngineParameters.cs index 552b1d6dbb..c61d10af01 100644 --- a/src/BenchmarkDotNet/Engines/EngineParameters.cs +++ b/src/BenchmarkDotNet/Engines/EngineParameters.cs @@ -36,4 +36,4 @@ public class EngineParameters public Job TargetJob { get; set; } = Job.Default; public Diagnosers.CompositeInProcessDiagnoserHandler InProcessDiagnoserHandler { get; set; } = null!; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EnginePilotStage.cs b/src/BenchmarkDotNet/Engines/EnginePilotStage.cs index 53b18cb848..7bad67c74d 100644 --- a/src/BenchmarkDotNet/Engines/EnginePilotStage.cs +++ b/src/BenchmarkDotNet/Engines/EnginePilotStage.cs @@ -167,4 +167,4 @@ internal override bool GetShouldRunIteration(List measurements, out return true; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineResolver.cs b/src/BenchmarkDotNet/Engines/EngineResolver.cs index d21606067c..46d7ad181c 100644 --- a/src/BenchmarkDotNet/Engines/EngineResolver.cs +++ b/src/BenchmarkDotNet/Engines/EngineResolver.cs @@ -56,4 +56,4 @@ private EngineResolver() }); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineStage.cs b/src/BenchmarkDotNet/Engines/EngineStage.cs index 9acb188ce1..97627622aa 100644 --- a/src/BenchmarkDotNet/Engines/EngineStage.cs +++ b/src/BenchmarkDotNet/Engines/EngineStage.cs @@ -83,4 +83,4 @@ internal static IEnumerable EnumerateStages(EngineParameters parame yield return EngineActualStage.GetWorkload(strategy, invokeCount, unrollFactor, parameters); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/EngineWarmupStage.cs b/src/BenchmarkDotNet/Engines/EngineWarmupStage.cs index 0c4b5f81f4..5ab1206bbd 100644 --- a/src/BenchmarkDotNet/Engines/EngineWarmupStage.cs +++ b/src/BenchmarkDotNet/Engines/EngineWarmupStage.cs @@ -95,4 +95,4 @@ internal override bool GetShouldRunIteration(List measurements, out return false; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/HostSignal.cs b/src/BenchmarkDotNet/Engines/HostSignal.cs index 23cd4a0169..9c2de481cc 100644 --- a/src/BenchmarkDotNet/Engines/HostSignal.cs +++ b/src/BenchmarkDotNet/Engines/HostSignal.cs @@ -52,4 +52,4 @@ public enum HostSignal /// AfterProcessExit } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/IEngine.cs b/src/BenchmarkDotNet/Engines/IEngine.cs index c29e5e26dc..aaf9421870 100644 --- a/src/BenchmarkDotNet/Engines/IEngine.cs +++ b/src/BenchmarkDotNet/Engines/IEngine.cs @@ -3,4 +3,4 @@ namespace BenchmarkDotNet.Engines; public interface IEngine { ValueTask RunAsync(); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/IEngineFactory.cs b/src/BenchmarkDotNet/Engines/IEngineFactory.cs index 89dfb14eb3..fa19a44788 100644 --- a/src/BenchmarkDotNet/Engines/IEngineFactory.cs +++ b/src/BenchmarkDotNet/Engines/IEngineFactory.cs @@ -4,4 +4,4 @@ public interface IEngineFactory { IEngine Create(EngineParameters engineParameters); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/IterationData.cs b/src/BenchmarkDotNet/Engines/IterationData.cs index d5eb77d343..f77706d0ec 100644 --- a/src/BenchmarkDotNet/Engines/IterationData.cs +++ b/src/BenchmarkDotNet/Engines/IterationData.cs @@ -13,4 +13,4 @@ internal readonly struct IterationData(IterationMode iterationMode, IterationSta public readonly Func setupAction = setupAction; public readonly Func cleanupAction = cleanupAction; public readonly Func> workloadAction = workloadAction; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/IterationMode.cs b/src/BenchmarkDotNet/Engines/IterationMode.cs index 44b346d2ae..6d1b0aedc9 100644 --- a/src/BenchmarkDotNet/Engines/IterationMode.cs +++ b/src/BenchmarkDotNet/Engines/IterationMode.cs @@ -8,4 +8,4 @@ public enum IterationMode Unknown } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/IterationStage.cs b/src/BenchmarkDotNet/Engines/IterationStage.cs index ced03cdc00..aeb33fc376 100644 --- a/src/BenchmarkDotNet/Engines/IterationStage.cs +++ b/src/BenchmarkDotNet/Engines/IterationStage.cs @@ -19,4 +19,4 @@ public enum IterationStage Extra, } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/RunResults.cs b/src/BenchmarkDotNet/Engines/RunResults.cs index dfdeede6a5..60b07b278b 100644 --- a/src/BenchmarkDotNet/Engines/RunResults.cs +++ b/src/BenchmarkDotNet/Engines/RunResults.cs @@ -78,4 +78,4 @@ internal void Print(IHost host) // If we get value < 0.1ns, it's probably a random noise, the actual value is 0.0ns. private static bool IsSuspiciouslySmall(double value) => value < 0.1; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/RunStrategy.cs b/src/BenchmarkDotNet/Engines/RunStrategy.cs index a13e50fd45..391065f1cc 100644 --- a/src/BenchmarkDotNet/Engines/RunStrategy.cs +++ b/src/BenchmarkDotNet/Engines/RunStrategy.cs @@ -20,4 +20,4 @@ public enum RunStrategy /// Monitoring } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Engines/WorkloadValueTaskSource.cs b/src/BenchmarkDotNet/Engines/WorkloadValueTaskSource.cs index 0c04608a26..002c81e82a 100644 --- a/src/BenchmarkDotNet/Engines/WorkloadValueTaskSource.cs +++ b/src/BenchmarkDotNet/Engines/WorkloadValueTaskSource.cs @@ -61,4 +61,4 @@ ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) void IValueTaskSource.OnCompleted(Action continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => clockSpanSource.OnCompleted(continuation, state, token, flags); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/BenchmarkEnvironmentInfo.cs b/src/BenchmarkDotNet/Environments/BenchmarkEnvironmentInfo.cs index f3d23b3ca2..73a17e3a3c 100644 --- a/src/BenchmarkDotNet/Environments/BenchmarkEnvironmentInfo.cs +++ b/src/BenchmarkDotNet/Environments/BenchmarkEnvironmentInfo.cs @@ -79,4 +79,4 @@ public static IEnumerable Validate(Job job) yield return new ValidationError(true, $"LegacyJIT is requested but it is not available for {currentRuntime}"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/EnvironmentResolver.cs b/src/BenchmarkDotNet/Environments/EnvironmentResolver.cs index 4292f4fd83..7122f33bd2 100644 --- a/src/BenchmarkDotNet/Environments/EnvironmentResolver.cs +++ b/src/BenchmarkDotNet/Environments/EnvironmentResolver.cs @@ -40,4 +40,4 @@ private EnvironmentResolver() }); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/GcResolver.cs b/src/BenchmarkDotNet/Environments/GcResolver.cs index 1c8b782041..2bf2ea7c38 100644 --- a/src/BenchmarkDotNet/Environments/GcResolver.cs +++ b/src/BenchmarkDotNet/Environments/GcResolver.cs @@ -18,4 +18,4 @@ private GcResolver() Register(GcMode.NoAffinitizeCharacteristic, () => false); // Maoni0: https://github.com/dotnet/coreclr/pull/6104/commits/d088712003e8d483872754d6b3c72aa2d4443a93 } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs b/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs index cca0dabf54..ebc63d27da 100644 --- a/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs +++ b/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs @@ -151,4 +151,4 @@ public static string GetInformation() HardwareTimerKind = HardwareTimerKind.ToString() }; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/InfrastructureResolver.cs b/src/BenchmarkDotNet/Environments/InfrastructureResolver.cs index 3d4987c6ea..f6838e1476 100644 --- a/src/BenchmarkDotNet/Environments/InfrastructureResolver.cs +++ b/src/BenchmarkDotNet/Environments/InfrastructureResolver.cs @@ -20,4 +20,4 @@ private InfrastructureResolver() Register(InfrastructureMode.ArgumentsCharacteristic, Array.Empty); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Environments/Jit.cs b/src/BenchmarkDotNet/Environments/Jit.cs index 1b1cd6f383..9aba8a5af9 100644 --- a/src/BenchmarkDotNet/Environments/Jit.cs +++ b/src/BenchmarkDotNet/Environments/Jit.cs @@ -26,4 +26,4 @@ public enum Jit /// Llvm } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/AsciiDocExporter.cs b/src/BenchmarkDotNet/Exporters/AsciiDocExporter.cs index fa27844285..aedbc3a697 100644 --- a/src/BenchmarkDotNet/Exporters/AsciiDocExporter.cs +++ b/src/BenchmarkDotNet/Exporters/AsciiDocExporter.cs @@ -63,4 +63,4 @@ public override async ValueTask ExportAsync(Summary summary, CancelableStreamWri } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/CompositeExporter.cs b/src/BenchmarkDotNet/Exporters/CompositeExporter.cs index cd77a8eb4d..54f0dee7c6 100644 --- a/src/BenchmarkDotNet/Exporters/CompositeExporter.cs +++ b/src/BenchmarkDotNet/Exporters/CompositeExporter.cs @@ -27,4 +27,4 @@ public async ValueTask ExportAsync(Summary summary, ILogger logger, Cancellation } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/Csv/CsvHelper.cs b/src/BenchmarkDotNet/Exporters/Csv/CsvHelper.cs index 67d281f90e..0cf53b72bf 100644 --- a/src/BenchmarkDotNet/Exporters/Csv/CsvHelper.cs +++ b/src/BenchmarkDotNet/Exporters/Csv/CsvHelper.cs @@ -19,4 +19,4 @@ public static string Escape(string? value, string currentListSeparator) return value; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/Csv/CsvSeparator.cs b/src/BenchmarkDotNet/Exporters/Csv/CsvSeparator.cs index 3968c07918..586bfe38c9 100644 --- a/src/BenchmarkDotNet/Exporters/Csv/CsvSeparator.cs +++ b/src/BenchmarkDotNet/Exporters/Csv/CsvSeparator.cs @@ -17,4 +17,4 @@ public enum CsvSeparator /// CurrentCulture } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/Csv/CsvSeparatorExtensions.cs b/src/BenchmarkDotNet/Exporters/Csv/CsvSeparatorExtensions.cs index 3dc8464edd..0d88ed17ed 100644 --- a/src/BenchmarkDotNet/Exporters/Csv/CsvSeparatorExtensions.cs +++ b/src/BenchmarkDotNet/Exporters/Csv/CsvSeparatorExtensions.cs @@ -23,4 +23,4 @@ public static string ToRealSeparator(this CsvSeparator separator) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/DefaultExporters.cs b/src/BenchmarkDotNet/Exporters/DefaultExporters.cs index 813c412a41..3bb4e0f6e3 100644 --- a/src/BenchmarkDotNet/Exporters/DefaultExporters.cs +++ b/src/BenchmarkDotNet/Exporters/DefaultExporters.cs @@ -29,4 +29,4 @@ public static class DefaultExporters [PublicAPI] public static readonly IExporter XmlFull = XmlExporter.Full; [PublicAPI] public static readonly IExporter XmlFullCompressed = XmlExporter.FullCompressed; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/ExporterBase.cs b/src/BenchmarkDotNet/Exporters/ExporterBase.cs index 87eadc31e9..7f154fb95f 100644 --- a/src/BenchmarkDotNet/Exporters/ExporterBase.cs +++ b/src/BenchmarkDotNet/Exporters/ExporterBase.cs @@ -47,4 +47,4 @@ public async ValueTask ExportAsync(Summary summary, ILogger logger, Cancellation public string GetArtifactFullName(Summary summary) => $"{Path.Combine(summary.ResultsDirectoryPath, summary.Title)}-{FileCaption}{FileNameSuffix}.{FileExtension}"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/IExporter.cs b/src/BenchmarkDotNet/Exporters/IExporter.cs index e3b32955f9..eb7a1a9966 100644 --- a/src/BenchmarkDotNet/Exporters/IExporter.cs +++ b/src/BenchmarkDotNet/Exporters/IExporter.cs @@ -8,4 +8,4 @@ public interface IExporter string Name { get; } ValueTask ExportAsync(Summary summary, ILogger logger, CancellationToken cancellationToken); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs b/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs index f40f768850..ee63c9754d 100644 --- a/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs +++ b/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs @@ -302,4 +302,4 @@ private class MethodWithCounters internal bool HasCounters => SumPerCounter.Values.Any(value => value != default); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/Json/JsonExporter.cs b/src/BenchmarkDotNet/Exporters/Json/JsonExporter.cs index 176e36e139..b8b4c3ae2e 100644 --- a/src/BenchmarkDotNet/Exporters/Json/JsonExporter.cs +++ b/src/BenchmarkDotNet/Exporters/Json/JsonExporter.cs @@ -19,4 +19,4 @@ public JsonExporter(string fileNameSuffix = "", bool indentJson = false, bool ex public static IExporter Custom(string fileNameSuffix = "", bool indentJson = false, bool excludeMeasurements = false) => new JsonExporter(fileNameSuffix, indentJson, excludeMeasurements); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs b/src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs index 13f70f0163..c3ff88ad79 100644 --- a/src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs +++ b/src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs @@ -106,4 +106,4 @@ internal struct GcStats public long TotalOperations { get; set; } public long? BytesAllocatedPerOperation { get; set; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/AssemblyExtensions.cs b/src/BenchmarkDotNet/Extensions/AssemblyExtensions.cs index c5370a764c..f95ea301d9 100644 --- a/src/BenchmarkDotNet/Extensions/AssemblyExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/AssemblyExtensions.cs @@ -29,4 +29,4 @@ internal static class AssemblyExtensions private static bool? IsJitTrackingEnabled(this DebuggableAttribute? attribute) => attribute?.IsJITTrackingEnabled; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/CommonExtensions.cs b/src/BenchmarkDotNet/Extensions/CommonExtensions.cs index b79bd41654..d51dc91dbb 100644 --- a/src/BenchmarkDotNet/Extensions/CommonExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/CommonExtensions.cs @@ -124,4 +124,4 @@ internal static string EnsureFolderExists(this string filePath) internal static bool IsNotNullButDoesNotExist(this FileSystemInfo? fileInfo) => fileInfo != null && !fileInfo.Exists; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/CultureInfoExtensions.cs b/src/BenchmarkDotNet/Extensions/CultureInfoExtensions.cs index 8083c74b32..87d5df9bfb 100644 --- a/src/BenchmarkDotNet/Extensions/CultureInfoExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/CultureInfoExtensions.cs @@ -19,4 +19,4 @@ public static string GetActualListSeparator(this CultureInfo? cultureInfo) return listSeparator; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/DoubleExtensions.cs b/src/BenchmarkDotNet/Extensions/DoubleExtensions.cs index 1d050ca4e2..e29df9b48b 100644 --- a/src/BenchmarkDotNet/Extensions/DoubleExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/DoubleExtensions.cs @@ -7,4 +7,4 @@ internal static class DoubleExtensions public static string ToInvariantString(this double value) => value.ToString(CultureInfo.InvariantCulture); public static string ToInvariantString(this double value, string format) => value.ToString(format, CultureInfo.InvariantCulture); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/EncodingExtensions.cs b/src/BenchmarkDotNet/Extensions/EncodingExtensions.cs index 367e9eac5e..c1f9e406c0 100644 --- a/src/BenchmarkDotNet/Extensions/EncodingExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/EncodingExtensions.cs @@ -16,4 +16,4 @@ internal static string ToTemplateString(this Encoding encoding) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/MathExtensions.cs b/src/BenchmarkDotNet/Extensions/MathExtensions.cs index 09b513b91a..e7e1a34676 100644 --- a/src/BenchmarkDotNet/Extensions/MathExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/MathExtensions.cs @@ -4,4 +4,4 @@ internal static class MathExtensions { public static int RoundToInt(this double x) => (int)Math.Round(x); public static long RoundToLong(this double x) => (long)Math.Round(x); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs b/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs index 8004940fcb..66b443089c 100644 --- a/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs @@ -21,4 +21,4 @@ public static T CreateDelegate(this MethodInfo methodInfo, object? target) } } -#endif \ No newline at end of file +#endif diff --git a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs index 6fb5e9ad55..8fca6d5f2f 100644 --- a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs @@ -608,4 +608,4 @@ internal sealed record AsyncEnumerableInfo( AwaitableInfo MoveNextAwaitable, PropertyInfo CurrentProperty, bool IsInterfaceDispatch); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/StatisticsExtensions.cs b/src/BenchmarkDotNet/Extensions/StatisticsExtensions.cs index 00489e5758..655cca4f84 100644 --- a/src/BenchmarkDotNet/Extensions/StatisticsExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/StatisticsExtensions.cs @@ -127,4 +127,4 @@ private static void MakePositive(Histogram histogram) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs b/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs index a32e490faf..bb564331c8 100644 --- a/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs @@ -157,4 +157,4 @@ public static string EnsureNotNull(this string? value) return value ?? ""; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/AllCategoriesFilter.cs b/src/BenchmarkDotNet/Filters/AllCategoriesFilter.cs index 37428cd170..6ed459209b 100644 --- a/src/BenchmarkDotNet/Filters/AllCategoriesFilter.cs +++ b/src/BenchmarkDotNet/Filters/AllCategoriesFilter.cs @@ -13,4 +13,4 @@ public class AllCategoriesFilter : IFilter public bool Predicate(BenchmarkCase benchmarkCase) => targetCategories.All(c => benchmarkCase.Descriptor.HasCategory(c)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/AnyCategoriesFilter.cs b/src/BenchmarkDotNet/Filters/AnyCategoriesFilter.cs index 38fce1f953..6b99c798cd 100644 --- a/src/BenchmarkDotNet/Filters/AnyCategoriesFilter.cs +++ b/src/BenchmarkDotNet/Filters/AnyCategoriesFilter.cs @@ -13,4 +13,4 @@ public class AnyCategoriesFilter : IFilter public bool Predicate(BenchmarkCase benchmarkCase) => targetCategories.Any(c => benchmarkCase.Descriptor.HasCategory(c)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/AttributesFilter.cs b/src/BenchmarkDotNet/Filters/AttributesFilter.cs index d1a99998c0..2f5e2f03cc 100644 --- a/src/BenchmarkDotNet/Filters/AttributesFilter.cs +++ b/src/BenchmarkDotNet/Filters/AttributesFilter.cs @@ -21,4 +21,4 @@ public bool Predicate(BenchmarkCase benchmarkCase) return attributes.Any(attributeName => allCustomAttributes.Any(attribute => attribute.Name.StartsWith(attributeName, StringComparison.InvariantCultureIgnoreCase))); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/DisjunctionFilter.cs b/src/BenchmarkDotNet/Filters/DisjunctionFilter.cs index 5e39760fe2..dfebc56989 100644 --- a/src/BenchmarkDotNet/Filters/DisjunctionFilter.cs +++ b/src/BenchmarkDotNet/Filters/DisjunctionFilter.cs @@ -10,4 +10,4 @@ public class DisjunctionFilter : IFilter public bool Predicate(BenchmarkCase benchmarkCase) => filters.Any(filter => filter.Predicate(benchmarkCase)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/GlobFilter.cs b/src/BenchmarkDotNet/Filters/GlobFilter.cs index 1a30c9af81..1a764e246d 100644 --- a/src/BenchmarkDotNet/Filters/GlobFilter.cs +++ b/src/BenchmarkDotNet/Filters/GlobFilter.cs @@ -28,4 +28,4 @@ internal static Regex[] ToRegex(string[] patterns) // https://stackoverflow.com/a/6907849/5852046 not perfect but should work for all we need private static string WildcardToRegex(string pattern) => $"^{Regex.Escape(pattern).Replace(@"\*", ".*").Replace(@"\?", ".")}$"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/IFilter.cs b/src/BenchmarkDotNet/Filters/IFilter.cs index 5d3c67ca93..bb9f5305da 100644 --- a/src/BenchmarkDotNet/Filters/IFilter.cs +++ b/src/BenchmarkDotNet/Filters/IFilter.cs @@ -6,4 +6,4 @@ public interface IFilter { bool Predicate(BenchmarkCase benchmarkCase); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/NameFilter.cs b/src/BenchmarkDotNet/Filters/NameFilter.cs index e1c9c61b9a..cfc3fc78dd 100644 --- a/src/BenchmarkDotNet/Filters/NameFilter.cs +++ b/src/BenchmarkDotNet/Filters/NameFilter.cs @@ -4,4 +4,4 @@ public class NameFilter : SimpleFilter { public NameFilter(Func predicate) : base(b => predicate(b.Descriptor.WorkloadMethod.Name)) { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/SimpleFilter.cs b/src/BenchmarkDotNet/Filters/SimpleFilter.cs index ee871c0405..64c6ce7d0b 100644 --- a/src/BenchmarkDotNet/Filters/SimpleFilter.cs +++ b/src/BenchmarkDotNet/Filters/SimpleFilter.cs @@ -13,4 +13,4 @@ public class SimpleFilter : IFilter [PublicAPI] public bool Predicate(BenchmarkCase benchmarkCase) => predicate(benchmarkCase); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Filters/UnionFilter.cs b/src/BenchmarkDotNet/Filters/UnionFilter.cs index 854942d43a..0830d3c1c1 100644 --- a/src/BenchmarkDotNet/Filters/UnionFilter.cs +++ b/src/BenchmarkDotNet/Filters/UnionFilter.cs @@ -10,4 +10,4 @@ public class UnionFilter : IFilter public bool Predicate(BenchmarkCase benchmarkCase) => filters.All(filter => filter.Predicate(benchmarkCase)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/AsciiHelper.cs b/src/BenchmarkDotNet/Helpers/AsciiHelper.cs index bbe4ae77b0..8c282668fa 100644 --- a/src/BenchmarkDotNet/Helpers/AsciiHelper.cs +++ b/src/BenchmarkDotNet/Helpers/AsciiHelper.cs @@ -13,4 +13,4 @@ public static string ToAscii(this string s) return s.Replace(Mu, "u"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/AwaitHelper.cs b/src/BenchmarkDotNet/Helpers/AwaitHelper.cs index 9f6062af01..294fd85a29 100644 --- a/src/BenchmarkDotNet/Helpers/AwaitHelper.cs +++ b/src/BenchmarkDotNet/Helpers/AwaitHelper.cs @@ -329,4 +329,4 @@ public ConfiguredValueTaskAwaiter DisposeAsync() => _enumerator.DisposeAsync().ConfigureAwait(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs b/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs index 95d978cfac..72b921a1d5 100644 --- a/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs +++ b/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs @@ -12,4 +12,4 @@ static DefaultCultureInfo() Instance.NumberFormat.NumberDecimalSeparator = "."; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/ExternalToolsHelper.cs b/src/BenchmarkDotNet/Helpers/ExternalToolsHelper.cs index e6aea8fd21..dba7437716 100644 --- a/src/BenchmarkDotNet/Helpers/ExternalToolsHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ExternalToolsHelper.cs @@ -20,4 +20,4 @@ private static Lazy LazyParse(Func isAvailable, string fileName, str }); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs b/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs index e0bbcccb82..8230f68211 100644 --- a/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs +++ b/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs @@ -58,4 +58,4 @@ private static string Escape(StringBuilder builder) return builder.ToString(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/GenericBenchmarksBuilder.cs b/src/BenchmarkDotNet/Helpers/GenericBenchmarksBuilder.cs index e0a336960f..cecab878bd 100644 --- a/src/BenchmarkDotNet/Helpers/GenericBenchmarksBuilder.cs +++ b/src/BenchmarkDotNet/Helpers/GenericBenchmarksBuilder.cs @@ -41,4 +41,4 @@ private static bool TryMakeGenericType(this Type type, Type[] typeArguments, out } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/HashCode.cs b/src/BenchmarkDotNet/Helpers/HashCode.cs index 80ba142c0d..1a8cbc2141 100644 --- a/src/BenchmarkDotNet/Helpers/HashCode.cs +++ b/src/BenchmarkDotNet/Helpers/HashCode.cs @@ -153,4 +153,4 @@ private static int Hash(int hashCode, T value, IEqualityComparer comparer) public override bool Equals(object? obj) => throw new NotSupportedException(); #pragma warning restore CS0809 // Obsolete member 'HashCode.GetHashCode()' overrides non-obsolete member 'object.GetHashCode()' } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Hashing/BitOperations.cs b/src/BenchmarkDotNet/Helpers/Hashing/BitOperations.cs index 2ce318581d..b1315909f8 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/BitOperations.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/BitOperations.cs @@ -30,4 +30,4 @@ public static ulong RotateLeft(ulong value, int offset) public static uint RotateRight(uint value, int offset) => (value >> offset) | (value << (32 - offset)); } -#endif \ No newline at end of file +#endif diff --git a/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs b/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs index 6a7fc93fc1..4b803d90cb 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs @@ -475,4 +475,4 @@ public Hash128(ulong low64, ulong high64) High64 = high64; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs b/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs index 6093e65df6..058ecf11ca 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs @@ -928,4 +928,4 @@ public struct State /// The seed employed (possibly 0). internal ulong Seed; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/LinuxOsReleaseHelper.cs b/src/BenchmarkDotNet/Helpers/LinuxOsReleaseHelper.cs index 14dfa66dde..c9fa69394e 100644 --- a/src/BenchmarkDotNet/Helpers/LinuxOsReleaseHelper.cs +++ b/src/BenchmarkDotNet/Helpers/LinuxOsReleaseHelper.cs @@ -59,4 +59,4 @@ internal static class LinuxOsReleaseHelper } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs index 4a570c8716..d8ba2fe803 100644 --- a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs @@ -236,4 +236,4 @@ internal static bool TryResolveExecutableInPath(string? value, [NotNullWhen(true return false; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/EmitParameterInfo.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/EmitParameterInfo.cs index c1dec33b2f..e1597411ea 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/EmitParameterInfo.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/EmitParameterInfo.cs @@ -45,4 +45,4 @@ public ParameterInfo SetMember(MemberInfo member) return this; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorCallExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorCallExtensions.cs index 89ca218ff3..96260a4494 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorCallExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorCallExtensions.cs @@ -105,4 +105,4 @@ private static void EmitCallCore( } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorDefaultValueExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorDefaultValueExtensions.cs index 0bc256d521..7c39f5916c 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorDefaultValueExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorDefaultValueExtensions.cs @@ -156,4 +156,4 @@ private static void EmitLoadDefaultPrimitive(this ILGenerator ilBuilder, Type re throw new NotSupportedException($"Cannot emit default for {resultType}."); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs index bd54b79172..8e0a1da4eb 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs @@ -173,4 +173,4 @@ public static void EmitLdc_I4(this ILGenerator ilBuilder, int value) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorStatementExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorStatementExtensions.cs index fa4353d732..5c9724d7ec 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorStatementExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorStatementExtensions.cs @@ -136,4 +136,4 @@ public static void EmitLoopEndFromArgToZero( ilBuilder.Emit(OpCodes.Bge, loopStartLabel); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs index 49b8325b0c..7fd7135dea 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs @@ -41,4 +41,4 @@ public static MethodBuilder SetAggressiveOptimizationImplementationFlag(this Met return methodBuilder; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/TypeBuilderExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/TypeBuilderExtensions.cs index 6862425319..e5f8bea330 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/TypeBuilderExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/TypeBuilderExtensions.cs @@ -108,4 +108,4 @@ public static MethodBuilder DefineStaticMethod( return result; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/ResourceHelper.cs b/src/BenchmarkDotNet/Helpers/ResourceHelper.cs index 9edcf480ff..5d4fecc752 100644 --- a/src/BenchmarkDotNet/Helpers/ResourceHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ResourceHelper.cs @@ -35,4 +35,4 @@ private static string LoadResource(string resourceName) private static Stream GetResourceStream(string resourceName) => typeof(ResourceHelper).GetTypeInfo().Assembly.GetManifestResourceStream(resourceName)!; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/SectionsHelper.cs b/src/BenchmarkDotNet/Helpers/SectionsHelper.cs index c4ad06f74b..ce22ce166c 100644 --- a/src/BenchmarkDotNet/Helpers/SectionsHelper.cs +++ b/src/BenchmarkDotNet/Helpers/SectionsHelper.cs @@ -39,4 +39,4 @@ public static List> ParseSectionsForPowershellWmi(str .ToList(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs b/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs index ffca3fd801..0c4aaa8add 100644 --- a/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs +++ b/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs @@ -86,4 +86,4 @@ public static string GetNestedTypeName(this Type type) typeName = $"{t.Name}+{typeName}"; return typeName; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/UserInteractionHelper.cs b/src/BenchmarkDotNet/Helpers/UserInteractionHelper.cs index b207c33eab..721c2a6c48 100644 --- a/src/BenchmarkDotNet/Helpers/UserInteractionHelper.cs +++ b/src/BenchmarkDotNet/Helpers/UserInteractionHelper.cs @@ -22,4 +22,4 @@ public static string EscapeCommandExample(string input) return !OsDetector.IsWindows() && input.Contains('*') ? $"'{input}'" : input; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Helpers/XUnitHelper.cs b/src/BenchmarkDotNet/Helpers/XUnitHelper.cs index 7de30ead7a..9db6c1b1ec 100644 --- a/src/BenchmarkDotNet/Helpers/XUnitHelper.cs +++ b/src/BenchmarkDotNet/Helpers/XUnitHelper.cs @@ -4,4 +4,4 @@ internal static class XUnitHelper { public static Lazy IsIntegrationTest = new(() => AppDomain.CurrentDomain.GetAssemblies().Any(assembly => assembly.GetName().Name == "BenchmarkDotNet.IntegrationTests")); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/AccuracyMode.cs b/src/BenchmarkDotNet/Jobs/AccuracyMode.cs index fbb894e77a..351e4fb8be 100644 --- a/src/BenchmarkDotNet/Jobs/AccuracyMode.cs +++ b/src/BenchmarkDotNet/Jobs/AccuracyMode.cs @@ -83,4 +83,4 @@ public bool AnalyzeLaunchVariance set => AnalyzeLaunchVarianceCharacteristic[this] = value; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs b/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs index 754667cf8a..275844b619 100644 --- a/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs +++ b/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs @@ -129,4 +129,4 @@ public void SetEnvironmentVariable(EnvironmentVariable variable) Affinity = HasValue(AffinityCharacteristic) ? (long)Affinity : null }; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs b/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs index 38c221a563..dfc1b54719 100644 --- a/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs +++ b/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs @@ -33,4 +33,4 @@ public override bool Equals(object? obj) public override int GetHashCode() => HashCode.Combine(Key, Value); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/GcMode.cs b/src/BenchmarkDotNet/Jobs/GcMode.cs index d20989ee57..94af7a9a63 100644 --- a/src/BenchmarkDotNet/Jobs/GcMode.cs +++ b/src/BenchmarkDotNet/Jobs/GcMode.cs @@ -124,4 +124,4 @@ public bool Equals(GcMode? other) public override int GetHashCode() => HashCode.Combine(AllowVeryLargeObjects, Concurrent, CpuGroups, Force, NoAffinitize, RetainVm, Server); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/GcModeExtensions.cs b/src/BenchmarkDotNet/Jobs/GcModeExtensions.cs index 29a23d881c..5a048a3d7d 100644 --- a/src/BenchmarkDotNet/Jobs/GcModeExtensions.cs +++ b/src/BenchmarkDotNet/Jobs/GcModeExtensions.cs @@ -78,4 +78,4 @@ private static GcMode WithCore(this GcMode mode, Action updateCallback) return mode; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/InfrastructureMode.cs b/src/BenchmarkDotNet/Jobs/InfrastructureMode.cs index 7ab093d1a3..eeee43d3f0 100644 --- a/src/BenchmarkDotNet/Jobs/InfrastructureMode.cs +++ b/src/BenchmarkDotNet/Jobs/InfrastructureMode.cs @@ -99,4 +99,4 @@ public bool TryGetToolchain([NotNullWhen(true)] out IToolchain? toolchain) Runtime = HasValue(RuntimeCharacteristic) ? Runtime?.ToString() : null }; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/Job.cs b/src/BenchmarkDotNet/Jobs/Job.cs index 9c99fb0234..fca5c86562 100644 --- a/src/BenchmarkDotNet/Jobs/Job.cs +++ b/src/BenchmarkDotNet/Jobs/Job.cs @@ -78,4 +78,4 @@ public string DisplayInfo } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/JobComparer.cs b/src/BenchmarkDotNet/Jobs/JobComparer.cs index afd88761de..3038d4251a 100644 --- a/src/BenchmarkDotNet/Jobs/JobComparer.cs +++ b/src/BenchmarkDotNet/Jobs/JobComparer.cs @@ -203,4 +203,4 @@ public int Compare(string? x, string? y) } #endif } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/JobExtensions.cs b/src/BenchmarkDotNet/Jobs/JobExtensions.cs index 216397e03f..9059d7abee 100644 --- a/src/BenchmarkDotNet/Jobs/JobExtensions.cs +++ b/src/BenchmarkDotNet/Jobs/JobExtensions.cs @@ -389,4 +389,4 @@ internal static bool HasDynamicBuildCharacteristic(this Job job) => job.HasValue(InfrastructureMode.BuildConfigurationCharacteristic) || job.HasValue(InfrastructureMode.ArgumentsCharacteristic); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs b/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs index ab86ad1c65..87ffa06804 100644 --- a/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs +++ b/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs @@ -28,4 +28,4 @@ private static int GetStableHashCode(string value) return unchecked((int)hash); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/JobMode`1.cs b/src/BenchmarkDotNet/Jobs/JobMode`1.cs index e7bf3449fc..ac8b8716fe 100644 --- a/src/BenchmarkDotNet/Jobs/JobMode`1.cs +++ b/src/BenchmarkDotNet/Jobs/JobMode`1.cs @@ -13,4 +13,4 @@ protected JobMode(string id) : base(id) { } [PublicAPI] public Job Job => (Job)OwnerOrSelf; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Jobs/RunMode.cs b/src/BenchmarkDotNet/Jobs/RunMode.cs index 4aec5a44db..308d3bdda7 100644 --- a/src/BenchmarkDotNet/Jobs/RunMode.cs +++ b/src/BenchmarkDotNet/Jobs/RunMode.cs @@ -235,4 +235,4 @@ public JitTieringMode JitTieringMode RunStrategy = HasValue(RunStrategyCharacteristic) ? RunStrategy : null, }; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/AccumulationLogger.cs b/src/BenchmarkDotNet/Loggers/AccumulationLogger.cs index c7d19ce85f..ab480de3a6 100644 --- a/src/BenchmarkDotNet/Loggers/AccumulationLogger.cs +++ b/src/BenchmarkDotNet/Loggers/AccumulationLogger.cs @@ -27,4 +27,4 @@ public void Flush() { } public string GetLog() => builder.ToString(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs b/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs index 563f715d80..beebe5480d 100644 --- a/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs +++ b/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs @@ -196,4 +196,4 @@ private enum Status : long Disposed } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/CompositeLogger.cs b/src/BenchmarkDotNet/Loggers/CompositeLogger.cs index 480c7a375d..692bc4c61e 100644 --- a/src/BenchmarkDotNet/Loggers/CompositeLogger.cs +++ b/src/BenchmarkDotNet/Loggers/CompositeLogger.cs @@ -58,4 +58,4 @@ public void Flush() } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/ConsoleLogger.cs b/src/BenchmarkDotNet/Loggers/ConsoleLogger.cs index 660ab2f301..3c8c5b6645 100644 --- a/src/BenchmarkDotNet/Loggers/ConsoleLogger.cs +++ b/src/BenchmarkDotNet/Loggers/ConsoleLogger.cs @@ -96,4 +96,4 @@ public static Dictionary CreateGrayScheme() return colorScheme; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/ILogger.cs b/src/BenchmarkDotNet/Loggers/ILogger.cs index d735a27339..98d8fbda6b 100644 --- a/src/BenchmarkDotNet/Loggers/ILogger.cs +++ b/src/BenchmarkDotNet/Loggers/ILogger.cs @@ -18,4 +18,4 @@ public interface ILogger void Flush(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs b/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs index 55f4257b48..3a7d365dcd 100644 --- a/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs +++ b/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs @@ -98,4 +98,4 @@ private static IReadOnlyDictionary CreateLightScheme() => { LogKind.Hint, "#008080" } }; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/LogKind.cs b/src/BenchmarkDotNet/Loggers/LogKind.cs index d495ea3ee9..3d35938e9e 100644 --- a/src/BenchmarkDotNet/Loggers/LogKind.cs +++ b/src/BenchmarkDotNet/Loggers/LogKind.cs @@ -4,4 +4,4 @@ public enum LogKind { Default, Help, Header, Result, Statistic, Info, Error, Hint, Warning } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/LoggerExtensions.cs b/src/BenchmarkDotNet/Loggers/LoggerExtensions.cs index 2bc78dce82..31b4e19b95 100644 --- a/src/BenchmarkDotNet/Loggers/LoggerExtensions.cs +++ b/src/BenchmarkDotNet/Loggers/LoggerExtensions.cs @@ -43,4 +43,4 @@ public static class LoggerExtensions [PublicAPI] public static void WriteHint(this ILogger logger, string text) => logger.Write(LogKind.Hint, text); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/LoggerWithPrefix.cs b/src/BenchmarkDotNet/Loggers/LoggerWithPrefix.cs index 6f4d78d27c..53f0990901 100644 --- a/src/BenchmarkDotNet/Loggers/LoggerWithPrefix.cs +++ b/src/BenchmarkDotNet/Loggers/LoggerWithPrefix.cs @@ -61,4 +61,4 @@ public void WriteLine() public void Flush() { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Loggers/NullLogger.cs b/src/BenchmarkDotNet/Loggers/NullLogger.cs index d69dfe947f..8d17702245 100644 --- a/src/BenchmarkDotNet/Loggers/NullLogger.cs +++ b/src/BenchmarkDotNet/Loggers/NullLogger.cs @@ -16,4 +16,4 @@ public void WriteLine(LogKind logKind, string text) { } public void Flush() { } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs b/src/BenchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs index 1e3d5466bc..864c2322c6 100644 --- a/src/BenchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs +++ b/src/BenchmarkDotNet/Mathematics/LegacyConfidenceInterval.cs @@ -161,4 +161,4 @@ public string ToString(Func formatter, bool showLevel = true) builder.Append(GetLevelHint(showLevel)); return builder.ToString(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/MathHelper.cs b/src/BenchmarkDotNet/Mathematics/MathHelper.cs index 2cffe2adfb..47b1e4355d 100644 --- a/src/BenchmarkDotNet/Mathematics/MathHelper.cs +++ b/src/BenchmarkDotNet/Mathematics/MathHelper.cs @@ -10,4 +10,4 @@ internal static class MathHelper public static readonly SignificanceLevel DefaultSignificanceLevel = SignificanceLevel.P1E5; public static int Clamp(int value, int min, int max) => Min(Max(value, min), max); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs b/src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs index f0b7539bc8..b3a102a004 100644 --- a/src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs +++ b/src/BenchmarkDotNet/Mathematics/MeasurementsStatistics.cs @@ -152,4 +152,4 @@ private static bool IsOutlier(OutlierMode outlierMode, double value, double lowe } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/NumeralSystem.cs b/src/BenchmarkDotNet/Mathematics/NumeralSystem.cs index debd04422c..7e5c97c788 100644 --- a/src/BenchmarkDotNet/Mathematics/NumeralSystem.cs +++ b/src/BenchmarkDotNet/Mathematics/NumeralSystem.cs @@ -17,4 +17,4 @@ public enum NumeralSystem /// Stars } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/NumeralSystemExtensions.cs b/src/BenchmarkDotNet/Mathematics/NumeralSystemExtensions.cs index 4c5760188a..ead798db60 100644 --- a/src/BenchmarkDotNet/Mathematics/NumeralSystemExtensions.cs +++ b/src/BenchmarkDotNet/Mathematics/NumeralSystemExtensions.cs @@ -38,4 +38,4 @@ private static string ToRoman(int number) throw new ArgumentOutOfRangeException(nameof(number), "something bad happened"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/PercentileValues.cs b/src/BenchmarkDotNet/Mathematics/PercentileValues.cs index a6a196a3d1..9f29cb817b 100644 --- a/src/BenchmarkDotNet/Mathematics/PercentileValues.cs +++ b/src/BenchmarkDotNet/Mathematics/PercentileValues.cs @@ -61,4 +61,4 @@ public string ToString(CultureInfo? cultureInfo, string format = "0.##") return ToString(x => x.ToString(format, cultureInfo)); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/RankHelper.cs b/src/BenchmarkDotNet/Mathematics/RankHelper.cs index c84bdc4a09..de99f06ad8 100644 --- a/src/BenchmarkDotNet/Mathematics/RankHelper.cs +++ b/src/BenchmarkDotNet/Mathematics/RankHelper.cs @@ -38,4 +38,4 @@ private static bool AreSame(Statistics x, Statistics y) return comparisonResult == ComparisonResult.Indistinguishable; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Mathematics/Statistics.cs b/src/BenchmarkDotNet/Mathematics/Statistics.cs index 5c39ce6e3e..d5c59ae3ed 100644 --- a/src/BenchmarkDotNet/Mathematics/Statistics.cs +++ b/src/BenchmarkDotNet/Mathematics/Statistics.cs @@ -156,4 +156,4 @@ public static double DivMean(Statistics? x, Statistics? y) return MulMean(x, yInvert); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnBenchmark.cs b/src/BenchmarkDotNet/Models/BdnBenchmark.cs index 422bcb4454..2f51b0d98b 100644 --- a/src/BenchmarkDotNet/Models/BdnBenchmark.cs +++ b/src/BenchmarkDotNet/Models/BdnBenchmark.cs @@ -33,4 +33,4 @@ internal class BdnBenchmark : BenchmarkInfo } return builder.ToString(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnEnvironment.cs b/src/BenchmarkDotNet/Models/BdnEnvironment.cs index e0df9131b2..eb4462266d 100644 --- a/src/BenchmarkDotNet/Models/BdnEnvironment.cs +++ b/src/BenchmarkDotNet/Models/BdnEnvironment.cs @@ -7,4 +7,4 @@ internal class BdnEnvironment : EnvironmentInfo { public Jit? Jit { get; set; } public long? Affinity { get; set; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnExecution.cs b/src/BenchmarkDotNet/Models/BdnExecution.cs index 0031c3897e..e7ae7c82a3 100644 --- a/src/BenchmarkDotNet/Models/BdnExecution.cs +++ b/src/BenchmarkDotNet/Models/BdnExecution.cs @@ -80,4 +80,4 @@ internal class BdnExecution : ExecutionInfo /// it makes [GlobalCleanup] and [GlobalSetup] methods to be executed after every iteration /// public bool? MemoryRandomization { get; set; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnHostInfo.cs b/src/BenchmarkDotNet/Models/BdnHostInfo.cs index ca33e4d8ef..7d57ffb637 100644 --- a/src/BenchmarkDotNet/Models/BdnHostInfo.cs +++ b/src/BenchmarkDotNet/Models/BdnHostInfo.cs @@ -11,4 +11,4 @@ internal class BdnHostInfo : HostInfo public string DotNetSdkVersion { get; set; } = ""; public double ChronometerFrequency { get; set; } public string HardwareTimerKind { get; set; } = ""; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnLifecycle.cs b/src/BenchmarkDotNet/Models/BdnLifecycle.cs index 3bc2ab64c6..6af56afdd4 100644 --- a/src/BenchmarkDotNet/Models/BdnLifecycle.cs +++ b/src/BenchmarkDotNet/Models/BdnLifecycle.cs @@ -50,4 +50,4 @@ public int CompareTo(BdnLifecycle? other) return iterationStageComparison; return IterationMode.CompareTo(other.IterationMode); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Models/BdnSchema.cs b/src/BenchmarkDotNet/Models/BdnSchema.cs index d2c26933d3..4baa3c4bdd 100644 --- a/src/BenchmarkDotNet/Models/BdnSchema.cs +++ b/src/BenchmarkDotNet/Models/BdnSchema.cs @@ -15,4 +15,4 @@ private BdnSchema() : base("bdn") Add(); Add(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Order/CategoryComparer.cs b/src/BenchmarkDotNet/Order/CategoryComparer.cs index b72ac726ec..da0bdc7d6f 100644 --- a/src/BenchmarkDotNet/Order/CategoryComparer.cs +++ b/src/BenchmarkDotNet/Order/CategoryComparer.cs @@ -21,4 +21,4 @@ private static string GetUniqueId(string[] categories) return string.Join(Separator, categories); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Order/DefaultOrderer.cs b/src/BenchmarkDotNet/Order/DefaultOrderer.cs index 715c3dfb12..902ee6d408 100644 --- a/src/BenchmarkDotNet/Order/DefaultOrderer.cs +++ b/src/BenchmarkDotNet/Order/DefaultOrderer.cs @@ -240,4 +240,4 @@ public int Compare(IGrouping? x, IGrouping> GetLogicalGroupOrder(IEnumerable obj?.GetHashCode() ?? 0; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Parameters/ParameterComparer.cs b/src/BenchmarkDotNet/Parameters/ParameterComparer.cs index 01643b5ca4..1187b4a714 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterComparer.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterComparer.cs @@ -282,4 +282,4 @@ private static int CompareTuples(System.Runtime.CompilerServices.ITuple x, Syste } #endif } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Parameters/ParameterEqualityComparer.cs b/src/BenchmarkDotNet/Parameters/ParameterEqualityComparer.cs index 8b60ccffdf..406ab3347a 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterEqualityComparer.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterEqualityComparer.cs @@ -28,4 +28,4 @@ public bool Equals(ParameterInstances? x, ParameterInstances? y) public int GetHashCode(ParameterInstances obj) => obj?.ValueInfo.GetHashCode() ?? 0; -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Parameters/ParameterInstances.cs b/src/BenchmarkDotNet/Parameters/ParameterInstances.cs index 2f679026d7..3a3dd1c836 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterInstances.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterInstances.cs @@ -36,4 +36,4 @@ public void Dispose() public ParameterInstance GetArgument(string name) => Items.Single(parameter => parameter.IsArgument && parameter.Name == name); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/Antivirus.cs b/src/BenchmarkDotNet/Portability/Antivirus.cs index 0b2d1872be..f3540e8a73 100644 --- a/src/BenchmarkDotNet/Portability/Antivirus.cs +++ b/src/BenchmarkDotNet/Portability/Antivirus.cs @@ -15,4 +15,4 @@ public Antivirus(string name, string path) public override string ToString() => $"{Name} ({Path})"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/HyperV.cs b/src/BenchmarkDotNet/Portability/HyperV.cs index 6799338ed3..30b715cc9a 100644 --- a/src/BenchmarkDotNet/Portability/HyperV.cs +++ b/src/BenchmarkDotNet/Portability/HyperV.cs @@ -13,4 +13,4 @@ public override bool IsVirtualMachine(string manufacturer, string model) return ContainsVmIdentifier(manufacturer, "microsoft") && ContainsVmIdentifier(model, "virtual"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/JitInfo.cs b/src/BenchmarkDotNet/Portability/JitInfo.cs index c7bf7f6c34..636d2438ba 100644 --- a/src/BenchmarkDotNet/Portability/JitInfo.cs +++ b/src/BenchmarkDotNet/Portability/JitInfo.cs @@ -264,4 +264,4 @@ public static string GetInfo() return Unknown; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs index 87d8b5bda9..f701c34b49 100644 --- a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs +++ b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs @@ -334,4 +334,4 @@ internal static string GetPortableRuntimeIdentifier() return $"{osPart}-{architecture}"; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/StringExtensions.cs b/src/BenchmarkDotNet/Portability/StringExtensions.cs index 4585578c61..738920a570 100644 --- a/src/BenchmarkDotNet/Portability/StringExtensions.cs +++ b/src/BenchmarkDotNet/Portability/StringExtensions.cs @@ -6,4 +6,4 @@ internal static class StringExtensions internal static bool ContainsWithIgnoreCase(this string text, string word) => text != null && text.Contains(word, StringComparison.InvariantCultureIgnoreCase); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/VMware.cs b/src/BenchmarkDotNet/Portability/VMware.cs index f542aa4240..0e8ae4c5d1 100644 --- a/src/BenchmarkDotNet/Portability/VMware.cs +++ b/src/BenchmarkDotNet/Portability/VMware.cs @@ -13,4 +13,4 @@ public override bool IsVirtualMachine(string manufacturer, string model) return ContainsVmIdentifier(model, "vmware"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/VirtualBox.cs b/src/BenchmarkDotNet/Portability/VirtualBox.cs index b5f9c23052..fd92ef860c 100644 --- a/src/BenchmarkDotNet/Portability/VirtualBox.cs +++ b/src/BenchmarkDotNet/Portability/VirtualBox.cs @@ -13,4 +13,4 @@ public override bool IsVirtualMachine(string manufacturer, string model) return ContainsVmIdentifier(model, "virtualbox"); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Portability/VirtualMachineHypervisor.cs b/src/BenchmarkDotNet/Portability/VirtualMachineHypervisor.cs index 0950aba850..a414d6c9a9 100644 --- a/src/BenchmarkDotNet/Portability/VirtualMachineHypervisor.cs +++ b/src/BenchmarkDotNet/Portability/VirtualMachineHypervisor.cs @@ -11,4 +11,4 @@ protected static bool ContainsVmIdentifier(string systemInformation, string vmId return systemInformation != null && systemInformation.ContainsWithIgnoreCase(vmIdentifier); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Properties/BenchmarkDotNetInfo.cs b/src/BenchmarkDotNet/Properties/BenchmarkDotNetInfo.cs index c259f2a550..df0053c418 100644 --- a/src/BenchmarkDotNet/Properties/BenchmarkDotNetInfo.cs +++ b/src/BenchmarkDotNet/Properties/BenchmarkDotNetInfo.cs @@ -70,4 +70,4 @@ internal static string RemoveVersionMetadata(string version) "853c834c9ad25051537f9a05a0c540c5d84f2c7b32ab01619d84367fd424797ba3242f08b0e6ae" + "75f66dad"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/BaseliningStrategy.cs b/src/BenchmarkDotNet/Reports/BaseliningStrategy.cs index f8514bde63..b0c853c6f1 100644 --- a/src/BenchmarkDotNet/Reports/BaseliningStrategy.cs +++ b/src/BenchmarkDotNet/Reports/BaseliningStrategy.cs @@ -43,4 +43,4 @@ public bool IsBaseline(BenchmarkCase benchmark) return result; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/BenchmarkReport.cs b/src/BenchmarkDotNet/Reports/BenchmarkReport.cs index 8820fb02e3..ab8222eb0d 100644 --- a/src/BenchmarkDotNet/Reports/BenchmarkReport.cs +++ b/src/BenchmarkDotNet/Reports/BenchmarkReport.cs @@ -98,4 +98,4 @@ internal EntryInfo ToPerfonar() return entry; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/BenchmarkReportExtensions.cs b/src/BenchmarkDotNet/Reports/BenchmarkReportExtensions.cs index 8fd2aacfc5..1a37a470e7 100644 --- a/src/BenchmarkDotNet/Reports/BenchmarkReportExtensions.cs +++ b/src/BenchmarkDotNet/Reports/BenchmarkReportExtensions.cs @@ -22,4 +22,4 @@ from extraOutputLine in executeResults.PrefixedLines.Where(line => line.StartsWi select extraOutputLine.Substring(prefix.Length)).FirstOrDefault(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs b/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs index 75010ae439..1153f19564 100644 --- a/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs +++ b/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs @@ -53,4 +53,4 @@ internal static int CalcPrecision(IList values, int parentPrecision) return MathHelper.Clamp(CalcPrecision(values), parentPrecision, parentPrecision + 1); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/Measurement.cs b/src/BenchmarkDotNet/Reports/Measurement.cs index 378ca57086..d709005117 100644 --- a/src/BenchmarkDotNet/Reports/Measurement.cs +++ b/src/BenchmarkDotNet/Reports/Measurement.cs @@ -173,4 +173,4 @@ public static Measurement Parse(string line, int processIndex) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/MeasurementExtensions.cs b/src/BenchmarkDotNet/Reports/MeasurementExtensions.cs index 21b412b6df..d990fb3b8d 100644 --- a/src/BenchmarkDotNet/Reports/MeasurementExtensions.cs +++ b/src/BenchmarkDotNet/Reports/MeasurementExtensions.cs @@ -19,4 +19,4 @@ public static bool Is(this Measurement measurement, IterationMode mode, Iteratio [PublicAPI] public static bool IsOverhead(this Measurement measurement) => measurement.IterationMode == IterationMode.Overhead; [PublicAPI] public static bool IsWorkload(this Measurement measurement) => measurement.IterationMode == IterationMode.Workload; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/Metric.cs b/src/BenchmarkDotNet/Reports/Metric.cs index 57e1e9c9ec..b914340261 100644 --- a/src/BenchmarkDotNet/Reports/Metric.cs +++ b/src/BenchmarkDotNet/Reports/Metric.cs @@ -54,4 +54,4 @@ public override bool Equals(IMetricDescriptor? x, IMetricDescriptor? y) public override int GetHashCode(IMetricDescriptor obj) => obj.Id.GetHashCode(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/Summary.cs b/src/BenchmarkDotNet/Reports/Summary.cs index 801ae3c9ee..0bb27d31c1 100644 --- a/src/BenchmarkDotNet/Reports/Summary.cs +++ b/src/BenchmarkDotNet/Reports/Summary.cs @@ -199,4 +199,4 @@ internal EntryInfo ToPerfonar() return root; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/SummaryExtensions.cs b/src/BenchmarkDotNet/Reports/SummaryExtensions.cs index c52ead1e4a..61315103fc 100644 --- a/src/BenchmarkDotNet/Reports/SummaryExtensions.cs +++ b/src/BenchmarkDotNet/Reports/SummaryExtensions.cs @@ -30,4 +30,4 @@ public static IEnumerable GetLogicalGroupForBenchmark(this Summar [Pure] public static CultureInfo GetCultureInfo(this Summary? summary) => summary?.Style?.CultureInfo ?? DefaultCultureInfo.Instance; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/SummaryStyle.cs b/src/BenchmarkDotNet/Reports/SummaryStyle.cs index 4dccb0aad8..d0c13e5f71 100644 --- a/src/BenchmarkDotNet/Reports/SummaryStyle.cs +++ b/src/BenchmarkDotNet/Reports/SummaryStyle.cs @@ -112,4 +112,4 @@ public override int GetHashCode() => public static bool operator !=(SummaryStyle? left, SummaryStyle? right) => !Equals(left, right); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Reports/SummaryTableExtensions.cs b/src/BenchmarkDotNet/Reports/SummaryTableExtensions.cs index 2a611c246a..6c979ed6bc 100644 --- a/src/BenchmarkDotNet/Reports/SummaryTableExtensions.cs +++ b/src/BenchmarkDotNet/Reports/SummaryTableExtensions.cs @@ -145,4 +145,4 @@ private static void AddPadding(SummaryTable table, string[] line, string leftDel } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/BenchmarkBuildInfo.cs b/src/BenchmarkDotNet/Running/BenchmarkBuildInfo.cs index 3c054d934e..8db18756bb 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkBuildInfo.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkBuildInfo.cs @@ -21,4 +21,4 @@ public BenchmarkBuildInfo(BenchmarkCase benchmarkCase, ImmutableConfig config, i public CompositeInProcessDiagnoser CompositeInProcessDiagnoser { get; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/BenchmarkId.cs b/src/BenchmarkDotNet/Running/BenchmarkId.cs index 0fd44298a2..1d83eb9893 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkId.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkId.cs @@ -56,4 +56,4 @@ private static string GetBenchmarkName(BenchmarkCase benchmark) return $"{typeName}.{methodName}({paramsHash})"; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/BenchmarkPartitioner.cs b/src/BenchmarkDotNet/Running/BenchmarkPartitioner.cs index 4d48f500b8..6b7654a02c 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkPartitioner.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkPartitioner.cs @@ -84,4 +84,4 @@ private static bool AreDifferent(IReadOnlyList? x, IReadOnlyList> ApplesToApples(ImmutableConfig eff return await BenchmarkRunnerClean.Run(benchmarksWithInvocationCount, cancellationToken).ConfigureAwait(false); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/DefaultCategoryDiscoverer.cs b/src/BenchmarkDotNet/Running/DefaultCategoryDiscoverer.cs index 18a163131b..bb6bfbd226 100644 --- a/src/BenchmarkDotNet/Running/DefaultCategoryDiscoverer.cs +++ b/src/BenchmarkDotNet/Running/DefaultCategoryDiscoverer.cs @@ -29,4 +29,4 @@ public virtual string[] GetCategories(MethodInfo method) return attributes.SelectMany(attr => attr.Categories).Distinct(StringComparer.OrdinalIgnoreCase).ToArray(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/Descriptor.cs b/src/BenchmarkDotNet/Running/Descriptor.cs index 346494da10..169368d5dd 100644 --- a/src/BenchmarkDotNet/Running/Descriptor.cs +++ b/src/BenchmarkDotNet/Running/Descriptor.cs @@ -96,4 +96,4 @@ private static void EnsureDeclaredBy(Type type, MethodInfo? method, string param public override int GetHashCode() => GetFilterName().GetHashCode(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/DescriptorComparer.cs b/src/BenchmarkDotNet/Running/DescriptorComparer.cs index ce72d62c93..b701bf878e 100644 --- a/src/BenchmarkDotNet/Running/DescriptorComparer.cs +++ b/src/BenchmarkDotNet/Running/DescriptorComparer.cs @@ -32,4 +32,4 @@ public int Compare(Descriptor? x, Descriptor? y) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/ICategoryDiscoverer.cs b/src/BenchmarkDotNet/Running/ICategoryDiscoverer.cs index c9904ca97f..001ca230f5 100644 --- a/src/BenchmarkDotNet/Running/ICategoryDiscoverer.cs +++ b/src/BenchmarkDotNet/Running/ICategoryDiscoverer.cs @@ -6,4 +6,4 @@ public interface ICategoryDiscoverer { string[] GetCategories(MethodInfo method); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/IUserInteraction.cs b/src/BenchmarkDotNet/Running/IUserInteraction.cs index 0c68d39269..1b1cd00de1 100644 --- a/src/BenchmarkDotNet/Running/IUserInteraction.cs +++ b/src/BenchmarkDotNet/Running/IUserInteraction.cs @@ -10,4 +10,4 @@ internal interface IUserInteraction IReadOnlyList AskUser(IReadOnlyList allTypes, ILogger logger); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/TypeFilter.cs b/src/BenchmarkDotNet/Running/TypeFilter.cs index d5a4742a14..2c430907d3 100644 --- a/src/BenchmarkDotNet/Running/TypeFilter.cs +++ b/src/BenchmarkDotNet/Running/TypeFilter.cs @@ -82,4 +82,4 @@ public static async ValueTask FilterAsync(IConfig effectiveC return result.ToArray(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/UserInteraction.cs b/src/BenchmarkDotNet/Running/UserInteraction.cs index fa4412e0df..9a7e3a6aff 100644 --- a/src/BenchmarkDotNet/Running/UserInteraction.cs +++ b/src/BenchmarkDotNet/Running/UserInteraction.cs @@ -121,4 +121,4 @@ private static void PrintAvailable(IReadOnlyList allTypes, string[] displa } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Running/WakeLock.cs b/src/BenchmarkDotNet/Running/WakeLock.cs index 5982172cad..b7fd8d3b7d 100644 --- a/src/BenchmarkDotNet/Running/WakeLock.cs +++ b/src/BenchmarkDotNet/Running/WakeLock.cs @@ -73,4 +73,4 @@ protected override void Dispose(bool exiting) base.Dispose(exiting); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/BuilderBase.cs b/src/BenchmarkDotNet/Toolchains/BuilderBase.cs index f51ed447d6..c9f333a1ee 100644 --- a/src/BenchmarkDotNet/Toolchains/BuilderBase.cs +++ b/src/BenchmarkDotNet/Toolchains/BuilderBase.cs @@ -202,4 +202,4 @@ private ArtifactsPaths GetArtifactsPaths(BuildPartition buildPartition, string r programName: programName, packagesDirectoryName: GetPackagesDirectoryPath(buildArtifactsDirectoryPath)); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunBuilder.cs b/src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunBuilder.cs index 208c9e5dd5..d0ce33bb3d 100644 --- a/src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunBuilder.cs @@ -91,4 +91,4 @@ private static void CopyFilesRecursively(DirectoryInfo source, DirectoryInfo tar file.CopyTo(Path.Combine(target.FullName, file.Name), overwrite: true); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs index aba218e8e1..a3fe7d4983 100644 --- a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandExecutor.cs @@ -212,4 +212,4 @@ internal static async Task GetSdkPathAsync(FileInfo? cliPath, Cancellati return sdkPath[..^1]; // remove trailing `]` } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandResult.cs b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandResult.cs index 3d00180534..09a125fbae 100644 --- a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandResult.cs +++ b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandResult.cs @@ -37,4 +37,4 @@ public BuildResult ToBuildResult(ArtifactsPaths artifactsPaths) ? BuildResult.Success(artifactsPaths) : BuildResult.Failure(artifactsPaths, AllInformation); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/IExecutor.cs b/src/BenchmarkDotNet/Toolchains/IExecutor.cs index c44b0a88c5..eec172c5be 100644 --- a/src/BenchmarkDotNet/Toolchains/IExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/IExecutor.cs @@ -6,4 +6,4 @@ namespace BenchmarkDotNet.Toolchains; public interface IExecutor { ValueTask ExecuteAsync(ExecuteParameters executeParameters, CancellationToken cancellationToken); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs index 84f8a7154b..75811241fc 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs @@ -576,4 +576,4 @@ private static MethodInfo GetAwaitOnCompletedMethod(Type asyncMethodBuilderType, .Single(method => method.IsGenericMethod && method.Name == awaitOnCompletedMethodName) .MakeGenericMethod(awaiterType, asyncStateMachineType); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs index 859173a8cd..249b57759c 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs @@ -37,4 +37,4 @@ private static object ExecuteMethodUsingReflection(T instance, string methodN } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs index 903d9f50dc..c3adb3e38c 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs @@ -603,4 +603,4 @@ private MethodInfo GetStartClockMethod() null )!; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs index 600bf308d9..86595c2c92 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SetupCleanupEmitter.cs @@ -82,4 +82,4 @@ private void EmitAsyncSetupCleanup(string methodName, MethodInfo methodToCall, S protected virtual void EmitExtraGlobalCleanup(ILGenerator ilBuilder, LocalBuilder? thisLocal) { } protected virtual void EmitExtraGlobalSetup(ILGenerator ilBuilder, LocalBuilder? thisLocal) { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs index 190926e4ac..faf65e2ea1 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/SyncCoreEmitter.cs @@ -158,4 +158,4 @@ private void EmitLoadArgFieldsToLocals(ILGenerator ilBuilder, List } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs index 10ba8cec91..8a26221a73 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs @@ -124,4 +124,4 @@ private static TDelegate GetDelegateCore(object instance, string memb return (TDelegate)(object)Delegate.CreateDelegate(typeof(TDelegate), instance, result); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitArtifactsPath.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitArtifactsPath.cs index 6ba998c383..90b2393689 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitArtifactsPath.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitArtifactsPath.cs @@ -25,4 +25,4 @@ public InProcessEmitArtifactsPath( GeneratedAssembly = generatedAssembly; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitExecutor.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitExecutor.cs index 1c71f58841..780d916a82 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitExecutor.cs @@ -104,4 +104,4 @@ private async ValueTask ExecuteCore(IHost host, ExecuteParameters parameter return exitCode; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs index 5b9891051e..ead2c13379 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs @@ -171,4 +171,4 @@ private static void FillMembers(object instance, BenchmarkCase benchmarkCase, Sy } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/InProcessHost.cs b/src/BenchmarkDotNet/Toolchains/InProcess/InProcessHost.cs index eadb45defa..2cdec2155c 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/InProcessHost.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/InProcessHost.cs @@ -106,4 +106,4 @@ internal void HandleInProcessDiagnoserResults(BenchmarkCase benchmarkCase, Compo } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs b/src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs index d1ddb12aab..bfde6df9a4 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs @@ -148,4 +148,4 @@ public async IAsyncEnumerable ValidateAsync(ValidationParameter yield return validationError; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs index 386e676e59..11a957900f 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs @@ -65,4 +65,4 @@ protected static TDelegate Unroll(TDelegate callback, int unrollFacto // must be kept in sync with Runnable_X.Overhead internal static void OverheadStatic() { } private void OverheadInstance() { } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs index 4f7fa22609..8300b040fc 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs @@ -150,4 +150,4 @@ public static IBenchmarkAction CreateIterationSetup(IBenchmarkActionFactory? fac public static IBenchmarkAction CreateIterationCleanup(IBenchmarkActionFactory? factory, Descriptor descriptor, object instance) => CreateCore(factory, instance, descriptor.IterationCleanupMethod ?? FallbackSignature, 1); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/IBenchmarkAction.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/IBenchmarkAction.cs index 79d43aa75d..203eb4ebd6 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/IBenchmarkAction.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/IBenchmarkAction.cs @@ -9,4 +9,4 @@ public interface IBenchmarkAction Func> InvokeNoUnroll { get; } void Setup(); void Cleanup(); -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitExecutor.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitExecutor.cs index bfb2431642..ab7aa1779a 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitExecutor.cs @@ -105,4 +105,4 @@ private async ValueTask ExecuteCore(IHost host, ExecuteParameters parameter return exitCode; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/Parameters/ExecuteParameters.cs b/src/BenchmarkDotNet/Toolchains/Parameters/ExecuteParameters.cs index ee3481eb03..59f1571f84 100644 --- a/src/BenchmarkDotNet/Toolchains/Parameters/ExecuteParameters.cs +++ b/src/BenchmarkDotNet/Toolchains/Parameters/ExecuteParameters.cs @@ -31,4 +31,4 @@ public class ExecuteParameters(BuildResult buildResult, BenchmarkCase benchmarkC public RunMode DiagnoserRunMode { get; } = diagnoserRunMode; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs index 5e43a81bda..6efbf42040 100644 --- a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs @@ -224,4 +224,4 @@ private static AssemblyMetadata[] GetMissingReferences(Diagnostic[] compilationE return message.Split('\'').SingleOrDefault(text => text.Contains("Version=")); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynWorkarounds.cs b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynWorkarounds.cs index 1e4a647aaa..a73872be58 100644 --- a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynWorkarounds.cs +++ b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynWorkarounds.cs @@ -24,4 +24,4 @@ internal static CSharpCompilationOptions WithIgnoreCorLibraryDuplicatedTypes(thi return compilationOptions; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/BaselineValidator.cs b/src/BenchmarkDotNet/Validators/BaselineValidator.cs index 81eb0c62fe..23c5fefbd2 100644 --- a/src/BenchmarkDotNet/Validators/BaselineValidator.cs +++ b/src/BenchmarkDotNet/Validators/BaselineValidator.cs @@ -42,4 +42,4 @@ private ValidationError CreateError(string subject, string property, string? gro TreatsWarningsAsErrors, $"Only 1 {subject} in a group can have \"{property}\" applied to it, group {groupName} in class {className} has {actual}"); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/BenchmarkProcessValidator.cs b/src/BenchmarkDotNet/Validators/BenchmarkProcessValidator.cs index fbbc6b291d..4cdb523f08 100644 --- a/src/BenchmarkDotNet/Validators/BenchmarkProcessValidator.cs +++ b/src/BenchmarkDotNet/Validators/BenchmarkProcessValidator.cs @@ -30,4 +30,4 @@ public static IEnumerable Validate(Job job, object benchmarkIns } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/CompilationValidator.cs b/src/BenchmarkDotNet/Validators/CompilationValidator.cs index baa6104236..7a0411d7d6 100644 --- a/src/BenchmarkDotNet/Validators/CompilationValidator.cs +++ b/src/BenchmarkDotNet/Validators/CompilationValidator.cs @@ -127,4 +127,4 @@ public bool Equals(BenchmarkCase? x, BenchmarkCase? y) public int GetHashCode(BenchmarkCase obj) => obj.Descriptor.WorkloadMethod.GetHashCode(); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/CompositeValidator.cs b/src/BenchmarkDotNet/Validators/CompositeValidator.cs index 558f668ff3..e60e2ab6c5 100644 --- a/src/BenchmarkDotNet/Validators/CompositeValidator.cs +++ b/src/BenchmarkDotNet/Validators/CompositeValidator.cs @@ -43,4 +43,4 @@ private async IAsyncEnumerable ValidateAsyncCore(ValidationPara } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ConfigValidator.cs b/src/BenchmarkDotNet/Validators/ConfigValidator.cs index e45fd2085f..8ef458e279 100644 --- a/src/BenchmarkDotNet/Validators/ConfigValidator.cs +++ b/src/BenchmarkDotNet/Validators/ConfigValidator.cs @@ -62,4 +62,4 @@ public async IAsyncEnumerable ValidateAsync(ValidationParameter return null; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/DeferredExecutionValidator.cs b/src/BenchmarkDotNet/Validators/DeferredExecutionValidator.cs index fab4e55a69..6897efb989 100644 --- a/src/BenchmarkDotNet/Validators/DeferredExecutionValidator.cs +++ b/src/BenchmarkDotNet/Validators/DeferredExecutionValidator.cs @@ -62,4 +62,4 @@ static bool IsDeferredExecutionCore(Type returnType) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/DiagnosersValidator.cs b/src/BenchmarkDotNet/Validators/DiagnosersValidator.cs index 50c8b09bcc..c2c97721c6 100644 --- a/src/BenchmarkDotNet/Validators/DiagnosersValidator.cs +++ b/src/BenchmarkDotNet/Validators/DiagnosersValidator.cs @@ -31,4 +31,4 @@ private static async IAsyncEnumerable ValidateAsyncCore(Validat } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs b/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs index 31d13b8ef6..f33d3429b3 100644 --- a/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs +++ b/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs @@ -182,4 +182,4 @@ private static string CheckFor45PlusVersion(int releaseKey) return ""; } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ExecutionValidator.cs b/src/BenchmarkDotNet/Validators/ExecutionValidator.cs index a05d6006f5..856cc503d3 100644 --- a/src/BenchmarkDotNet/Validators/ExecutionValidator.cs +++ b/src/BenchmarkDotNet/Validators/ExecutionValidator.cs @@ -100,4 +100,4 @@ private async ValueTask ExecuteBenchmarkAsync(object benchmarkTypeInstance, Benc } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ExecutionValidatorBase.cs b/src/BenchmarkDotNet/Validators/ExecutionValidatorBase.cs index 646123ed58..39b591f15f 100644 --- a/src/BenchmarkDotNet/Validators/ExecutionValidatorBase.cs +++ b/src/BenchmarkDotNet/Validators/ExecutionValidatorBase.cs @@ -114,4 +114,4 @@ protected static string GetDisplayExceptionMessage(Exception ex) return ex?.Message ?? "Unknown error"; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/GenericBenchmarksValidator.cs b/src/BenchmarkDotNet/Validators/GenericBenchmarksValidator.cs index be0522c138..0c1bd752dd 100644 --- a/src/BenchmarkDotNet/Validators/GenericBenchmarksValidator.cs +++ b/src/BenchmarkDotNet/Validators/GenericBenchmarksValidator.cs @@ -20,4 +20,4 @@ public IAsyncEnumerable ValidateAsync(ValidationParameters vali .Select(result => new ValidationError(false, $"Generic type {result.result.Name} failed to build due to wrong type argument or arguments count, ignoring.")) .ToAsyncEnumerable(); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/IValidator.cs b/src/BenchmarkDotNet/Validators/IValidator.cs index 99c7fad9f3..79577b0c88 100644 --- a/src/BenchmarkDotNet/Validators/IValidator.cs +++ b/src/BenchmarkDotNet/Validators/IValidator.cs @@ -6,4 +6,4 @@ public interface IValidator IAsyncEnumerable ValidateAsync(ValidationParameters validationParameters); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ParamsValidator.cs b/src/BenchmarkDotNet/Validators/ParamsValidator.cs index f425ea16b8..8102df342f 100644 --- a/src/BenchmarkDotNet/Validators/ParamsValidator.cs +++ b/src/BenchmarkDotNet/Validators/ParamsValidator.cs @@ -74,4 +74,4 @@ private IEnumerable ValidateAsync(Type type) } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ReturnValueValidator.cs b/src/BenchmarkDotNet/Validators/ReturnValueValidator.cs index 0c912d18c3..4a446fd8e4 100644 --- a/src/BenchmarkDotNet/Validators/ReturnValueValidator.cs +++ b/src/BenchmarkDotNet/Validators/ReturnValueValidator.cs @@ -125,4 +125,4 @@ protected override async IAsyncEnumerable ValidateAsyncCore(Val } } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/RunModeValidator.cs b/src/BenchmarkDotNet/Validators/RunModeValidator.cs index 85987f4c0a..4d2bb32d2d 100644 --- a/src/BenchmarkDotNet/Validators/RunModeValidator.cs +++ b/src/BenchmarkDotNet/Validators/RunModeValidator.cs @@ -61,4 +61,4 @@ private static IEnumerable ValidateMinMax(RunMode run, Composit yield return new ValidationError(true, $"{GetName(maxCharacteristic)} must be greater than {GetName(minCharacteristic)} (was {maxCount} and {minCount})", benchmark); } } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ValidationError.cs b/src/BenchmarkDotNet/Validators/ValidationError.cs index bf58850400..ad05c0ae61 100644 --- a/src/BenchmarkDotNet/Validators/ValidationError.cs +++ b/src/BenchmarkDotNet/Validators/ValidationError.cs @@ -44,4 +44,4 @@ public override bool Equals(object? obj) public static bool operator !=(ValidationError? left, ValidationError? right) => !Equals(left, right); } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ValidationErrorReporter.cs b/src/BenchmarkDotNet/Validators/ValidationErrorReporter.cs index 952c4c2952..0b3b638a2a 100644 --- a/src/BenchmarkDotNet/Validators/ValidationErrorReporter.cs +++ b/src/BenchmarkDotNet/Validators/ValidationErrorReporter.cs @@ -18,4 +18,4 @@ public static bool ReportIfAny(IEnumerable validationErrors, IH } return hasErrors; } -} \ No newline at end of file +} diff --git a/src/BenchmarkDotNet/Validators/ValidationParameters.cs b/src/BenchmarkDotNet/Validators/ValidationParameters.cs index c3f1b8885f..8d8d3e334a 100644 --- a/src/BenchmarkDotNet/Validators/ValidationParameters.cs +++ b/src/BenchmarkDotNet/Validators/ValidationParameters.cs @@ -19,4 +19,4 @@ public ValidationParameters(IReadOnlyList benchmarks, ImmutableCo public static implicit operator ValidationParameters(BenchmarkCase[] benchmarksCase) => new ValidationParameters(benchmarksCase, DefaultConfig.Instance.CreateImmutableConfig()); public static implicit operator ValidationParameters(BenchmarkRunInfo benchmarkRunInfo) => new ValidationParameters(benchmarkRunInfo.BenchmarksCases, benchmarkRunInfo.Config); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ArgumentsAttributeAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ArgumentsAttributeAnalyzerTests.cs index 7cad72b679..4723074b19 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ArgumentsAttributeAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ArgumentsAttributeAnalyzerTests.cs @@ -2285,4 +2285,4 @@ public void Run(ReadOnlySpan a, int b) { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralArgumentAttributesAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralArgumentAttributesAnalyzerTests.cs index 2098d08d98..5f08bf7104 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralArgumentAttributesAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralArgumentAttributesAnalyzerTests.cs @@ -112,4 +112,4 @@ public class BenchmarkClass private static IReadOnlyCollection Parameters => ["int a", "string b", "bool c"]; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs index 4ee0886ad6..8c7bb31f4d 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs @@ -1927,4 +1927,4 @@ private static IEnumerable GenerateDuplicateAttributeUsageCombinations(Th return finalCombinationsList.AsReadOnly(); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAllValuesAttributeAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAllValuesAttributeAnalyzerTests.cs index ce92329620..be70225b5c 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAllValuesAttributeAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAllValuesAttributeAnalyzerTests.cs @@ -275,4 +275,4 @@ public static IEnumerable FieldOrPropertyDeclarations "System.Type" ]); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAttributeAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAttributeAnalyzerTests.cs index 1070aaa466..02d2482b96 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAttributeAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAttributeAnalyzerTests.cs @@ -1357,4 +1357,4 @@ static IEnumerable GenerateData() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/BenchmarkRunner/RunAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/BenchmarkRunner/RunAnalyzerTests.cs index 458e8bd326..bebaaff7e8 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/BenchmarkRunner/RunAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/BenchmarkRunner/RunAnalyzerTests.cs @@ -913,4 +913,4 @@ private static ReadOnlyCollection TypeParameters private static IReadOnlyCollection GenericTypeArguments => ["int", "string", "bool"]; -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs index c5241aa9b5..61401d9edb 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs @@ -2022,4 +2022,4 @@ static IEnumerable GenerateData(bool useParamsValues) } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/AnalyzerTestFixture.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/AnalyzerTestFixture.cs index c11f04a983..df8f32f35a 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/AnalyzerTestFixture.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/AnalyzerTestFixture.cs @@ -266,4 +266,4 @@ private sealed class InternalAnalyzerTest : CSharpAnalyzerTest "BenchmarksAssemblyUnderAnalysis"; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Extensions/TheoryDataExtensions.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Extensions/TheoryDataExtensions.cs index bc5fcc258c..073231d0c7 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Extensions/TheoryDataExtensions.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Extensions/TheoryDataExtensions.cs @@ -7,4 +7,4 @@ public static class TheoryDataExtensions { public static ReadOnlyCollection AsReadOnly(this TheoryData theoryData) => (theoryData as IEnumerable).ToList().AsReadOnly(); -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Generators/CombinationsGenerator.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Generators/CombinationsGenerator.cs index 3835cc44e7..fe097e6477 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Generators/CombinationsGenerator.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Generators/CombinationsGenerator.cs @@ -60,4 +60,4 @@ public static IEnumerable CombineArguments(params IEnumerable[] argume yield return combination; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleDouble.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleDouble.cs index 5642d4c615..d5d10deaf9 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleDouble.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleDouble.cs @@ -25,4 +25,4 @@ public static implicit operator ValueTupleDouble((T1, T2) valueTupleDoub public override string ToString() => Value1 == null || Value2 == null ? "" : $"{Value1} · {Value2}"; -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleTriple.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleTriple.cs index 0b19f5c211..deb46f8a98 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleTriple.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/Serializable/ValueTupleTriple.cs @@ -29,4 +29,4 @@ public static implicit operator ValueTupleTriple((T1, T2, T3) valueT public override string ToString() => Value1 == null || Value2 == null || Value3 == null ? "" : $"{Value1} · {Value2} · {Value3}"; -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/FieldOrPropertyDeclarationsTheoryData.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/FieldOrPropertyDeclarationsTheoryData.cs index e3de3a1047..65c0d05193 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/FieldOrPropertyDeclarationsTheoryData.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/FieldOrPropertyDeclarationsTheoryData.cs @@ -15,4 +15,4 @@ public FieldOrPropertyDeclarationsTheoryData() "_field;" ); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassAccessModifiersTheoryData.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassAccessModifiersTheoryData.cs index f5beba773e..a7bbf0bf30 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassAccessModifiersTheoryData.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassAccessModifiersTheoryData.cs @@ -16,4 +16,4 @@ public NonPublicClassAccessModifiersTheoryData() "" ); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassMemberAccessModifiersTheoryData.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassMemberAccessModifiersTheoryData.cs index da7b3b9036..ea27685679 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassMemberAccessModifiersTheoryData.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicClassMemberAccessModifiersTheoryData.cs @@ -15,4 +15,4 @@ public NonPublicClassMemberAccessModifiersTheoryData() "" ); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicPropertySetterAccessModifiersTheoryData.cs b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicPropertySetterAccessModifiersTheoryData.cs index 92488c018e..43032b8332 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicPropertySetterAccessModifiersTheoryData.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/Fixtures/TheoryData/NonPublicPropertySetterAccessModifiersTheoryData.cs @@ -14,4 +14,4 @@ public NonPublicPropertySetterAccessModifiersTheoryData() "private" ); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Exporters.Plotting.Tests/ScottPlotExporterTests.cs b/tests/BenchmarkDotNet.Exporters.Plotting.Tests/ScottPlotExporterTests.cs index bb481d3ea8..62cb92b1a3 100644 --- a/tests/BenchmarkDotNet.Exporters.Plotting.Tests/ScottPlotExporterTests.cs +++ b/tests/BenchmarkDotNet.Exporters.Plotting.Tests/ScottPlotExporterTests.cs @@ -291,4 +291,4 @@ [Benchmark] public void Bar() { } } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigAttribute.cs b/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigAttribute.cs index c5ea735771..9c4dda04d5 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigAttribute.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigAttribute.cs @@ -38,4 +38,4 @@ public void WriteLine(LogKind logKind, string text) public void Flush() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigBenchmarks.cs b/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigBenchmarks.cs index 6ec9c804e8..da4934dcae 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigBenchmarks.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.ConfigPerAssembly/AssemblyConfigBenchmarks.cs @@ -10,4 +10,4 @@ public void Foo() { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUseTypeFromCustomPathDll.cs b/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUseTypeFromCustomPathDll.cs index e29817b431..f3cd1e8d25 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUseTypeFromCustomPathDll.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUseTypeFromCustomPathDll.cs @@ -8,4 +8,4 @@ public class BenchmarksThatUseTypeFromCustomPathDll [Benchmark] public string Benchmark() => new SingleClass().ToString(); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUsesFileFromOutput.cs b/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUsesFileFromOutput.cs index 6a3611ec87..105f6c6f7b 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUsesFileFromOutput.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.CustomPaths/BenchmarksThatUsesFileFromOutput.cs @@ -13,4 +13,4 @@ public void Verify() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.DisabledOptimizations/Properties/AssemblyInfo.cs b/tests/BenchmarkDotNet.IntegrationTests.DisabledOptimizations/Properties/AssemblyInfo.cs index 0e5dcaca5a..db2d083a5a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.DisabledOptimizations/Properties/AssemblyInfo.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.DisabledOptimizations/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Runtime.InteropServices; -[assembly: Guid("ac2188e5-a140-43e2-8a76-4bdabfe30aba")] \ No newline at end of file +[assembly: Guid("ac2188e5-a140-43e2-8a76-4bdabfe30aba")] diff --git a/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/OptimizationsEnabledInCsproj.cs b/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/OptimizationsEnabledInCsproj.cs index f60037a9fe..377e75fadf 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/OptimizationsEnabledInCsproj.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/OptimizationsEnabledInCsproj.cs @@ -24,4 +24,4 @@ public string Benchmark() return "I have manually checked 'optimize' in .csproj for DEBUG"; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/Properties/AssemblyInfo.cs b/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/Properties/AssemblyInfo.cs index 5eddaf1e4d..21ed9c080e 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/Properties/AssemblyInfo.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.EnabledOptimizations/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Runtime.InteropServices; -[assembly: Guid("873581ff-db9d-42e5-8f11-32a4b7bb28ec")] \ No newline at end of file +[assembly: Guid("873581ff-db9d-42e5-8f11-32a4b7bb28ec")] diff --git a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotMemoryTests.cs b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotMemoryTests.cs index efb02f0aea..cd4c12b469 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotMemoryTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotMemoryTests.cs @@ -70,4 +70,4 @@ public int Foo1() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotTraceTests.cs b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotTraceTests.cs index dc11404f9f..0d7a6a204f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotTraceTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/DotTraceTests.cs @@ -61,4 +61,4 @@ public int Foo() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/AllSetupAndCleanupTest.cs b/tests/BenchmarkDotNet.IntegrationTests/AllSetupAndCleanupTest.cs index 54934cd6a2..e1ebd2bfa5 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AllSetupAndCleanupTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AllSetupAndCleanupTest.cs @@ -293,4 +293,4 @@ public ValueTask GlobalCleanup() public void Benchmark() => Console.WriteLine(BenchmarkCalled); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/AppConfigTests.cs b/tests/BenchmarkDotNet.IntegrationTests/AppConfigTests.cs index 0baf6bf239..1ae30b86ec 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AppConfigTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AppConfigTests.cs @@ -23,4 +23,4 @@ public void ReadFromAppConfig() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs b/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs index 7480ee3f63..da909c04ab 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs @@ -1448,4 +1448,4 @@ private Reports.Summary CanExecute(IToolchain toolchain, Func(config); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/AssemblyConfigTests.cs b/tests/BenchmarkDotNet.IntegrationTests/AssemblyConfigTests.cs index 78e370729d..47ccd41cd1 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AssemblyConfigTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AssemblyConfigTests.cs @@ -14,4 +14,4 @@ public void ConfigCanBeSetPerAssembly() Assert.True(AssemblyConfigAttribute.IsActivated); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/AsyncBenchmarksTests.cs b/tests/BenchmarkDotNet.IntegrationTests/AsyncBenchmarksTests.cs index 63ccd02838..1d37de4879 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AsyncBenchmarksTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AsyncBenchmarksTests.cs @@ -226,4 +226,4 @@ public ValueTask ReturningGenericValueTaskBackByIValueTaskSource_ImmediateC } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/AttributesTests.cs b/tests/BenchmarkDotNet.IntegrationTests/AttributesTests.cs index 72fa11d45a..0f087a953a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/AttributesTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/AttributesTests.cs @@ -45,4 +45,4 @@ private class CustomBenchmarkAttribute : BenchmarkAttribute { } private class CustomGlobalSetupAttribute : GlobalSetupAttribute { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/BaselineRatioColumnTest.cs b/tests/BenchmarkDotNet.IntegrationTests/BaselineRatioColumnTest.cs index 83b3c1e98f..d7be9cc8ed 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/BaselineRatioColumnTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/BaselineRatioColumnTest.cs @@ -141,4 +141,4 @@ public class BaselineRatioColumnWithLongParams public void BenchmarkFast() => Thread.Sleep(5); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/CodeGenTests.cs b/tests/BenchmarkDotNet.IntegrationTests/CodeGenTests.cs index ee41633b66..55ec88444f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CodeGenTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CodeGenTests.cs @@ -138,4 +138,4 @@ public ref readonly int ReturnByRefReadonlyType() return default; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/CopyToOutputTests.cs b/tests/BenchmarkDotNet.IntegrationTests/CopyToOutputTests.cs index bd8da25d01..d1db73132f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CopyToOutputTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CopyToOutputTests.cs @@ -11,4 +11,4 @@ public CopyToOutputTests(ITestOutputHelper output) : base(output) { } public void CopyToOutputIsSupported() => CanExecute(); } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.IntegrationTests/CustomAwaitable.cs b/tests/BenchmarkDotNet.IntegrationTests/CustomAwaitable.cs index a786586e3d..3c6518a553 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CustomAwaitable.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CustomAwaitable.cs @@ -13,4 +13,4 @@ public sealed class CustomAwaitable : ICriticalNotifyCompletion public bool IsCompleted => true; public void GetResult() { } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs b/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs index a08fb99903..7f1f886967 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs @@ -56,4 +56,4 @@ public void Benchmark() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/CustomEngineTests.cs b/tests/BenchmarkDotNet.IntegrationTests/CustomEngineTests.cs index c7bf0030fd..cee7983956 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CustomEngineTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CustomEngineTests.cs @@ -73,4 +73,4 @@ public async ValueTask RunAsync() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/CustomTask.cs b/tests/BenchmarkDotNet.IntegrationTests/CustomTask.cs index a6824ff665..b43b9ae1ac 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CustomTask.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CustomTask.cs @@ -164,4 +164,4 @@ public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine => _methodBuilder.AwaitUnsafeOnCompleted(ref awaiter, ref stateMachine); -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Diagnosers/ProcessMetricsTests.cs b/tests/BenchmarkDotNet.IntegrationTests/Diagnosers/ProcessMetricsTests.cs index 7e1b328385..a9873d022a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Diagnosers/ProcessMetricsTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Diagnosers/ProcessMetricsTests.cs @@ -71,4 +71,4 @@ public void MetricsAreCorrectlyCalculatedPerIteration() } } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs b/tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs index 943f37ef27..af14c19e1e 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/DisassemblyDiagnoserTests.cs @@ -294,4 +294,4 @@ private void AssertDisassemblyResult(DisassemblyResult result, string methodSign Assert.Contains(result.Methods.Single(m => m.Name.EndsWith(methodSignature)).Maps, map => map.SourceCodes.Length != 0); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/DryRunTests.cs b/tests/BenchmarkDotNet.IntegrationTests/DryRunTests.cs index b2db86e730..14e434adb4 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/DryRunTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/DryRunTests.cs @@ -51,4 +51,4 @@ public void Foo() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/EngineTests.cs b/tests/BenchmarkDotNet.IntegrationTests/EngineTests.cs index e8b054c200..91a8882d92 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/EngineTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/EngineTests.cs @@ -106,4 +106,4 @@ public void CheckStack() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/EnvironmentVariablesTests.cs b/tests/BenchmarkDotNet.IntegrationTests/EnvironmentVariablesTests.cs index b63820cb74..396a2e9a87 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/EnvironmentVariablesTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/EnvironmentVariablesTests.cs @@ -66,4 +66,4 @@ public void Benchmark() } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/GcModeTests.cs b/tests/BenchmarkDotNet.IntegrationTests/GcModeTests.cs index 8d2558ebe3..07051df9dd 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/GcModeTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/GcModeTests.cs @@ -162,4 +162,4 @@ public long[] Benchmark() } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs index ca33894fb0..687fc51ec4 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs @@ -667,4 +667,4 @@ private static void Diff(Instruction op1, Instruction op2, MethodDefinition meth throw new InvalidOperationException($"No matching op for {op1} vs {op2} ({method1})."); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/RunnableTestCasesHelperTypes.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/RunnableTestCasesHelperTypes.cs index 7987f99d0a..a89ed46c2f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/RunnableTestCasesHelperTypes.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/RunnableTestCasesHelperTypes.cs @@ -75,4 +75,4 @@ public void OnCompleted(Action continuation) { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/SampleBenchmark.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/SampleBenchmark.cs index f7017aef44..31508b86b2 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/SampleBenchmark.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/SampleBenchmark.cs @@ -69,4 +69,4 @@ public Task TaskSample(long arg) return Task.FromResult(0); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs index 62f89644d0..0c33322a4e 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs @@ -463,4 +463,4 @@ public class ParamsTestRequiredProperty } #endif } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs index d0cd8ecaed..7a11389686 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs @@ -456,4 +456,4 @@ public class ParamsTestRequiredProperty } #endif } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/IntegrationTestSetupTests.cs b/tests/BenchmarkDotNet.IntegrationTests/IntegrationTestSetupTests.cs index 412e7be987..0bc9a6d365 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/IntegrationTestSetupTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/IntegrationTestSetupTests.cs @@ -6,4 +6,4 @@ public class IntegrationTestSetupTests { [Fact] public void IntegrationTestsAreDetected() => Assert.True(XUnitHelper.IsIntegrationTest.Value); -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/JitOptimizationsTests.cs b/tests/BenchmarkDotNet.IntegrationTests/JitOptimizationsTests.cs index ab0f6d6b1f..891c153844 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/JitOptimizationsTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/JitOptimizationsTests.cs @@ -52,4 +52,4 @@ private BenchmarkCase[] CreateBenchmarks(Type targetBenchmarkType) return BenchmarkConverter.TypeToBenchmarks(targetBenchmarkType).BenchmarksCases; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/JitRuntimeValidationTest.cs b/tests/BenchmarkDotNet.IntegrationTests/JitRuntimeValidationTest.cs index 18e22e9a42..c038b5980f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/JitRuntimeValidationTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/JitRuntimeValidationTest.cs @@ -74,4 +74,4 @@ public class TestBenchmark public void Benchmark() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/LargeAddressAwareTest.cs b/tests/BenchmarkDotNet.IntegrationTests/LargeAddressAwareTest.cs index bb6a4e8f13..d0169f50be 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/LargeAddressAwareTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/LargeAddressAwareTest.cs @@ -87,4 +87,4 @@ public void AllocateMoreThan2GB() GC.KeepAlive(bytes3); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/MonoTests.cs b/tests/BenchmarkDotNet.IntegrationTests/MonoTests.cs index 3ed851d58b..d2cb75e812 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/MonoTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/MonoTests.cs @@ -23,4 +23,4 @@ public void Mono80IsSupported() CanExecute(config); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/MultipleRuntimesTest.cs b/tests/BenchmarkDotNet.IntegrationTests/MultipleRuntimesTest.cs index 0627531f13..f3029fc77a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/MultipleRuntimesTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/MultipleRuntimesTest.cs @@ -60,4 +60,4 @@ public void B() Console.WriteLine($"// {Job.Default.GetToolchain()}"); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs b/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs index 74d3718af8..5ccb13a7c0 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs @@ -108,4 +108,4 @@ public void Check() #endif } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs b/tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs index bea5d32031..875699d81f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/PathTooLongTests.cs @@ -22,4 +22,4 @@ public class public void Foo() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/PriorityTests.cs b/tests/BenchmarkDotNet.IntegrationTests/PriorityTests.cs index 093d39db6f..7c1fa1d908 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/PriorityTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/PriorityTests.cs @@ -73,4 +73,4 @@ public IEnumerable NumberArguments() ]; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/ProcessPropertiesTests.cs b/tests/BenchmarkDotNet.IntegrationTests/ProcessPropertiesTests.cs index f7b1073b84..64fe0d7f93 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ProcessPropertiesTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ProcessPropertiesTests.cs @@ -64,4 +64,4 @@ public void Ensure() } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/ProcessorArchitectureTest.cs b/tests/BenchmarkDotNet.IntegrationTests/ProcessorArchitectureTest.cs index 8a5a07a801..da35154db1 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ProcessorArchitectureTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ProcessorArchitectureTest.cs @@ -75,4 +75,4 @@ public void AnyCpu() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Properties/AssemblyInfo.cs b/tests/BenchmarkDotNet.IntegrationTests/Properties/AssemblyInfo.cs index b1e42e7c4c..1c6164a233 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Properties/AssemblyInfo.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Properties/AssemblyInfo.cs @@ -2,4 +2,4 @@ [assembly: Guid("74362bb1-9f64-4be5-b079-b4ac19dae5db")] -[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true)] \ No newline at end of file +[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly, DisableTestParallelization = true)] diff --git a/tests/BenchmarkDotNet.IntegrationTests/RunAsyncTests.cs b/tests/BenchmarkDotNet.IntegrationTests/RunAsyncTests.cs index 89e943f4ae..6bbe172683 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/RunAsyncTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/RunAsyncTests.cs @@ -47,4 +47,4 @@ public async ValueTask AsyncValueTaskObject() return new(); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/RunStrategyTests.cs b/tests/BenchmarkDotNet.IntegrationTests/RunStrategyTests.cs index 382ecd9b0c..425dfb3246 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/RunStrategyTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/RunStrategyTests.cs @@ -58,4 +58,4 @@ public void BenchmarkWithVoid() { } public string BenchmarkWithReturnValue() => "okay"; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/RunningEmptyBenchmarkTests.cs b/tests/BenchmarkDotNet.IntegrationTests/RunningEmptyBenchmarkTests.cs index abf5dd8702..e41e089c6c 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/RunningEmptyBenchmarkTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/RunningEmptyBenchmarkTests.cs @@ -417,4 +417,4 @@ public void Benchmark() } #endregion } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs b/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs index e3413c5e4a..8da61638f2 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs @@ -120,4 +120,4 @@ protected static IReadOnlyList GetSingleStandardOutput(Summary summary) protected static IReadOnlyList GetCombinedStandardOutput(Summary summary) => summary.Reports.SelectMany(r => r.ExecuteResults).SelectMany(e => e.StandardOutput).ToArray(); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Shared/Extensions.cs b/tests/BenchmarkDotNet.IntegrationTests/Shared/Extensions.cs index e6f27f54eb..d55640448a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Shared/Extensions.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Shared/Extensions.cs @@ -12,4 +12,4 @@ public static void CheckPlatformLinkerIssues(this Summary summary) throw new MisconfiguredEnvironmentException("Failed to build benchmarks because the platform linker not found"); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Shared/MisconfiguredEnvironmentException.cs b/tests/BenchmarkDotNet.IntegrationTests/Shared/MisconfiguredEnvironmentException.cs index 8f5d236d9f..9b65943c88 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Shared/MisconfiguredEnvironmentException.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Shared/MisconfiguredEnvironmentException.cs @@ -6,4 +6,4 @@ public MisconfiguredEnvironmentException(string message) : base(message) { } public string SkipMessage => $"Skip this test because the environment is misconfigured ({Message})"; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Shared/TestConfigs.cs b/tests/BenchmarkDotNet.IntegrationTests/Shared/TestConfigs.cs index 499b08e1a3..3f13bbe4d5 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Shared/TestConfigs.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Shared/TestConfigs.cs @@ -44,4 +44,4 @@ public DiagnoserConfig() AddJob(new Job { Run = { LaunchCount = 1, WarmupCount = 1, IterationCount = 50 } }); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/StatResultExtenderTests.cs b/tests/BenchmarkDotNet.IntegrationTests/StatResultExtenderTests.cs index 5ceb3e30cb..b0830c424a 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/StatResultExtenderTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/StatResultExtenderTests.cs @@ -56,4 +56,4 @@ public class Benchmarks public void Sleep10() => Thread.Sleep(10 + random.Next(5)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs b/tests/BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs index 3812a0c034..e06a762fa5 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ThreadingDiagnoserTests.cs @@ -194,4 +194,4 @@ private void AssertStats(Summary summary, IToolchain toolchain, Dictionary public class NoNamespace { -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.IntegrationTests/Xunit/Constants.cs b/tests/BenchmarkDotNet.IntegrationTests/Xunit/Constants.cs index 3cca9536f3..88f5cf4d2e 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Xunit/Constants.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Xunit/Constants.cs @@ -5,4 +5,4 @@ public class Constants public const string Category = "Category"; public const string BackwardCompatibilityCategory = "BackwardCompatibility"; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Analysers/OutliersAnalyserTests.cs b/tests/BenchmarkDotNet.Tests/Analysers/OutliersAnalyserTests.cs index ff757eed69..fa32654c04 100644 --- a/tests/BenchmarkDotNet.Tests/Analysers/OutliersAnalyserTests.cs +++ b/tests/BenchmarkDotNet.Tests/Analysers/OutliersAnalyserTests.cs @@ -63,4 +63,4 @@ public void RangeMessageTest(int lowerOutliers, int upperOutliers, string expect Assert.Equal(expectedMessage, actualMessage); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Analysers/ZeroMeasurementHelperTests.cs b/tests/BenchmarkDotNet.Tests/Analysers/ZeroMeasurementHelperTests.cs index 95542fdb81..a623179283 100644 --- a/tests/BenchmarkDotNet.Tests/Analysers/ZeroMeasurementHelperTests.cs +++ b/tests/BenchmarkDotNet.Tests/Analysers/ZeroMeasurementHelperTests.cs @@ -240,4 +240,4 @@ public void TwoSamples_Around_Two_CPU_Cycle_Method(double[] workload, double[] o #endregion } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Attributes/MutatorAttributesTests.cs b/tests/BenchmarkDotNet.Tests/Attributes/MutatorAttributesTests.cs index 35ad4784d2..3e09077a84 100644 --- a/tests/BenchmarkDotNet.Tests/Attributes/MutatorAttributesTests.cs +++ b/tests/BenchmarkDotNet.Tests/Attributes/MutatorAttributesTests.cs @@ -21,4 +21,4 @@ public void AllMutatorsAttributesCanBeAppliedOnlyOncePerType() } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/BenchmarkDotNetInfoTests.cs b/tests/BenchmarkDotNet.Tests/BenchmarkDotNetInfoTests.cs index 09083d6cfe..8d6298a7df 100644 --- a/tests/BenchmarkDotNet.Tests/BenchmarkDotNetInfoTests.cs +++ b/tests/BenchmarkDotNet.Tests/BenchmarkDotNetInfoTests.cs @@ -18,4 +18,4 @@ public void BenchmarkDotNetInfoTest(string assemblyVersion, string fullVersion, Assert.Equal(expectedIsRelease, info.IsRelease); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs b/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs index 1ffde82181..a818280098 100644 --- a/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs +++ b/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs @@ -33,4 +33,4 @@ static void Validate(string expected, Guid? guid) } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/CodeGeneratorTests.cs b/tests/BenchmarkDotNet.Tests/CodeGeneratorTests.cs index 71de4175ed..e30384a1b8 100644 --- a/tests/BenchmarkDotNet.Tests/CodeGeneratorTests.cs +++ b/tests/BenchmarkDotNet.Tests/CodeGeneratorTests.cs @@ -74,4 +74,4 @@ public async void AsyncVoidMethod() { } public void FineMethod() { } #pragma warning restore xUnit1013 // Public method should be marked as test } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs b/tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs index f15d29318c..d6141264d0 100644 --- a/tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs +++ b/tests/BenchmarkDotNet.Tests/Columns/MetricColumnTests.cs @@ -69,4 +69,4 @@ private LocalMetricDescriptor(UnitType unitType) public bool GetIsAvailable(Metric metric) => true; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Columns/RatioColumnTest.cs b/tests/BenchmarkDotNet.Tests/Columns/RatioColumnTest.cs index a02960ff73..0535b32e31 100644 --- a/tests/BenchmarkDotNet.Tests/Columns/RatioColumnTest.cs +++ b/tests/BenchmarkDotNet.Tests/Columns/RatioColumnTest.cs @@ -41,4 +41,4 @@ public void Foo() { } public void Bar() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Columns/StatisticalTestColumnTests.cs b/tests/BenchmarkDotNet.Tests/Columns/StatisticalTestColumnTests.cs index 19d43f7904..9ada3716bf 100644 --- a/tests/BenchmarkDotNet.Tests/Columns/StatisticalTestColumnTests.cs +++ b/tests/BenchmarkDotNet.Tests/Columns/StatisticalTestColumnTests.cs @@ -61,4 +61,4 @@ private static void Compare(string threshold, double[] baseline, double[] curren sut.GetValue(null!, null!, new Statistics(baseline), emptyMetrics, new Statistics(current), emptyMetrics, isBaseline: false)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Columns/TagColumnTests.cs b/tests/BenchmarkDotNet.Tests/Columns/TagColumnTests.cs index 9bf0174bb7..878e03bb6f 100644 --- a/tests/BenchmarkDotNet.Tests/Columns/TagColumnTests.cs +++ b/tests/BenchmarkDotNet.Tests/Columns/TagColumnTests.cs @@ -12,4 +12,4 @@ public void TagColumnsHasDifferentIds() // #1146 Assert.NotEqual(column1.Id, column2.Id); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Common/AbsoluteEqualityComparer.cs b/tests/BenchmarkDotNet.Tests/Common/AbsoluteEqualityComparer.cs index 346180ef60..2a2291ea64 100644 --- a/tests/BenchmarkDotNet.Tests/Common/AbsoluteEqualityComparer.cs +++ b/tests/BenchmarkDotNet.Tests/Common/AbsoluteEqualityComparer.cs @@ -18,4 +18,4 @@ public bool Equals(double x, double y) } public int GetHashCode(double x) => x.GetHashCode(); -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Configs/CategoriesTests.cs b/tests/BenchmarkDotNet.Tests/Configs/CategoriesTests.cs index 485b0e6942..8a625b05d4 100644 --- a/tests/BenchmarkDotNet.Tests/Configs/CategoriesTests.cs +++ b/tests/BenchmarkDotNet.Tests/Configs/CategoriesTests.cs @@ -129,4 +129,4 @@ public void Bbb() { } } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Configs/ConfigOptionsTests.cs b/tests/BenchmarkDotNet.Tests/Configs/ConfigOptionsTests.cs index b1cea00764..1e93a41574 100644 --- a/tests/BenchmarkDotNet.Tests/Configs/ConfigOptionsTests.cs +++ b/tests/BenchmarkDotNet.Tests/Configs/ConfigOptionsTests.cs @@ -83,4 +83,4 @@ public void ConfigFlagCanBeEnabledOrDisabledUsedManualConfigMethods() Assert.True(config.Options.HasFlag(ConfigOptions.StopOnFirstError)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Configs/ConfigPerMethodTests.cs b/tests/BenchmarkDotNet.Tests/Configs/ConfigPerMethodTests.cs index 91da532e30..e11f5434c3 100644 --- a/tests/BenchmarkDotNet.Tests/Configs/ConfigPerMethodTests.cs +++ b/tests/BenchmarkDotNet.Tests/Configs/ConfigPerMethodTests.cs @@ -124,4 +124,4 @@ public void DisabledByDefault() { } public void EnabledWithAttributeOnMethod() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Configs/EnvironmentVariableTests.cs b/tests/BenchmarkDotNet.Tests/Configs/EnvironmentVariableTests.cs index 4d7ebe80c7..0a86dc4357 100644 --- a/tests/BenchmarkDotNet.Tests/Configs/EnvironmentVariableTests.cs +++ b/tests/BenchmarkDotNet.Tests/Configs/EnvironmentVariableTests.cs @@ -66,4 +66,4 @@ public void ClearVariables() Assert.Empty(job.Environment.EnvironmentVariables); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Configs/JobTests.cs b/tests/BenchmarkDotNet.Tests/Configs/JobTests.cs index bc6526683d..37e5c4698f 100644 --- a/tests/BenchmarkDotNet.Tests/Configs/JobTests.cs +++ b/tests/BenchmarkDotNet.Tests/Configs/JobTests.cs @@ -468,4 +468,4 @@ private static bool IsSubclassOfobModeOfItself(Type type) return type.IsSubclassOf(jobModeOfT); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/CorrectionsSuggesterTests.cs b/tests/BenchmarkDotNet.Tests/CorrectionsSuggesterTests.cs index 7dbc7c0468..45b1cfa3f9 100644 --- a/tests/BenchmarkDotNet.Tests/CorrectionsSuggesterTests.cs +++ b/tests/BenchmarkDotNet.Tests/CorrectionsSuggesterTests.cs @@ -265,4 +265,4 @@ public class MyClassLexicAACDZ { [Benchmark] public void MethodA() { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/CsvHelperTests.cs b/tests/BenchmarkDotNet.Tests/CsvHelperTests.cs index 4c028f988a..e6c8ac4113 100644 --- a/tests/BenchmarkDotNet.Tests/CsvHelperTests.cs +++ b/tests/BenchmarkDotNet.Tests/CsvHelperTests.cs @@ -24,4 +24,4 @@ public void EscapeEncloseComplexSeparators(string actual, string expected) Assert.Equal(expected, CsvHelper.Escape(actual, "||")); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoFormatterTests.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoFormatterTests.cs index b2748fcb78..5c0fcfdc29 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoFormatterTests.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoFormatterTests.cs @@ -31,4 +31,4 @@ public Task FormatTest() var settings = VerifyHelper.Create(); return Verifier.Verify(captions.ToString(), settings); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Cim.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Cim.cs index 1b6a6ada95..9d8496ba00 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Cim.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Cim.cs @@ -116,4 +116,4 @@ public void RealOneProcessorFourCoresTest() Output.AssertEqual(expected, actual); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Wmic.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Wmic.cs index 8fb4628aa6..417f6ffbcc 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Wmic.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/CpuInfoParserTests_Wmic.cs @@ -110,4 +110,4 @@ public void RealOneProcessorFourCoresTest() }; Output.AssertEqual(expected, actual); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/LinuxCpuInfoParserTests.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/LinuxCpuInfoParserTests.cs index 393bd2798b..5fa2e3fc2c 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/LinuxCpuInfoParserTests.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/LinuxCpuInfoParserTests.cs @@ -168,4 +168,4 @@ public void ParseFrequencyFromBrandStringTests(string brandString, double expect var frequency = LinuxCpuInfoParser.ParseFrequencyFromBrandString(brandString) ?? Zero; Assert.Equal(FromGHz(expectedGHz), frequency); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/SysctlCpuInfoParserTests.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/SysctlCpuInfoParserTests.cs index da992b2bb5..49d6478ef8 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/SysctlCpuInfoParserTests.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/SysctlCpuInfoParserTests.cs @@ -40,4 +40,4 @@ public void RealOneProcessorFourCoresTest() }; Output.AssertEqual(expected, actual); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/TestHelper.cs b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/TestHelper.cs index 7d56657417..1582e33120 100644 --- a/tests/BenchmarkDotNet.Tests/Detectors/Cpu/TestHelper.cs +++ b/tests/BenchmarkDotNet.Tests/Detectors/Cpu/TestHelper.cs @@ -32,4 +32,4 @@ public static void AssertEqual(this ITestOutputHelper output, CpuInfo expected, Assert.Equal(expected.NominalFrequency(), actual.NominalFrequency()); Assert.Equal(expected.MaxFrequency(), actual.MaxFrequency()); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs index c8ea30522c..1ebf181a4d 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs @@ -109,4 +109,4 @@ public void IsLdrLiteral64_With32bitRegister_ShouldBeFalse() registerOperand.Value.Should().Be((Arm64RegisterAny)W5); } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryGetReferencedAddress.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryGetReferencedAddress.cs index c0ae97d399..19e5553353 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryGetReferencedAddress.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryGetReferencedAddress.cs @@ -134,4 +134,4 @@ public void TryGetReferencedAddress_With_BR_DifferentRegister_ShouldReturnFalse( result.Should().BeFalse(); } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryReadStubHead.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryReadStubHead.cs index febd7f3854..02ab988298 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryReadStubHead.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryReadStubHead.cs @@ -142,4 +142,4 @@ public void TryReadStubHead_PreDotNet10_InsufficientInstructions_ShouldReturnFal result.Should().BeFalse(); } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryResolvePreCode.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryResolvePreCode.cs index ba41afc54d..22ff8b694c 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryResolvePreCode.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.TryResolvePreCode.cs @@ -320,4 +320,4 @@ public void TryResolvePrecode_CallCountingStub_FailedToRead_ShouldBeFalse() result.Should().BeFalse(); } } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs index f8d8027465..d9491687f9 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs @@ -171,4 +171,4 @@ private sealed class MemoryRegion(ulong address, byte[] bytes) public byte[] Bytes { get; } = bytes; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Engine/EngineActualStageTests.cs b/tests/BenchmarkDotNet.Tests/Engine/EngineActualStageTests.cs index 2009213204..0b1813ee4e 100644 --- a/tests/BenchmarkDotNet.Tests/Engine/EngineActualStageTests.cs +++ b/tests/BenchmarkDotNet.Tests/Engine/EngineActualStageTests.cs @@ -43,4 +43,4 @@ private void AutoTest(Func measure, int min, int ma Assert.InRange(count, min, max); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Engine/EnginePilotStageTests.cs b/tests/BenchmarkDotNet.Tests/Engine/EnginePilotStageTests.cs index 35e989a893..60f7fcd37f 100644 --- a/tests/BenchmarkDotNet.Tests/Engine/EnginePilotStageTests.cs +++ b/tests/BenchmarkDotNet.Tests/Engine/EnginePilotStageTests.cs @@ -66,4 +66,4 @@ private void SpecificTest(TimeInterval iterationTime, TimeInterval operationTime Assert.InRange(invokeCount, minInvokeCount, maxInvokeCount); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Engine/EngineResultStageTests.cs b/tests/BenchmarkDotNet.Tests/Engine/EngineResultStageTests.cs index 0d1182c150..c555e95e7a 100644 --- a/tests/BenchmarkDotNet.Tests/Engine/EngineResultStageTests.cs +++ b/tests/BenchmarkDotNet.Tests/Engine/EngineResultStageTests.cs @@ -36,4 +36,4 @@ private static void Add(List measurements, int time) measurements.Add(new Measurement(1, IterationMode.Workload, IterationStage.Actual, measurements.Count + 1, 1, time)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Engine/EngineWarmupStageTests.cs b/tests/BenchmarkDotNet.Tests/Engine/EngineWarmupStageTests.cs index 51c13c037e..2645767a71 100644 --- a/tests/BenchmarkDotNet.Tests/Engine/EngineWarmupStageTests.cs +++ b/tests/BenchmarkDotNet.Tests/Engine/EngineWarmupStageTests.cs @@ -92,4 +92,4 @@ private void AutoTest(Func measure, int min, int ma Assert.InRange(count, min, max); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Engine/EnumerateStagesTests.cs b/tests/BenchmarkDotNet.Tests/Engine/EnumerateStagesTests.cs index 470a5a7fa6..2fd5f9fe9c 100644 --- a/tests/BenchmarkDotNet.Tests/Engine/EnumerateStagesTests.cs +++ b/tests/BenchmarkDotNet.Tests/Engine/EnumerateStagesTests.cs @@ -363,4 +363,4 @@ private EngineParameters CreateEngineParameters(Job job) }; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Environments/HostEnvironmentInfoTests.cs b/tests/BenchmarkDotNet.Tests/Environments/HostEnvironmentInfoTests.cs index 7b68944d2b..afc5747428 100644 --- a/tests/BenchmarkDotNet.Tests/Environments/HostEnvironmentInfoTests.cs +++ b/tests/BenchmarkDotNet.Tests/Environments/HostEnvironmentInfoTests.cs @@ -48,4 +48,4 @@ public void DoesntReturnHypervisorNameWhenItsNotDetected() Assert.Equal(expected, line); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs b/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs index 2b2c446eb0..5ecbe8e0dc 100644 --- a/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs +++ b/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs @@ -112,4 +112,4 @@ public void Dispose() Thread.CurrentThread.CurrentCulture = initCulture; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs b/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs index e9a26fb409..0307255b49 100644 --- a/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs +++ b/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs @@ -399,4 +399,4 @@ public async Task WithoutMemoryDiagnoser_CustomAllocatedBytesMetricIsNotSuppress Assert.Contains("benchmark_allocated_bytes{method=\"Foo\", type=\"MockBenchmarkClass\"} 42", log); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/FolderNameTests.cs b/tests/BenchmarkDotNet.Tests/FolderNameTests.cs index 27889d0c04..70ffca8bf8 100644 --- a/tests/BenchmarkDotNet.Tests/FolderNameTests.cs +++ b/tests/BenchmarkDotNet.Tests/FolderNameTests.cs @@ -37,4 +37,4 @@ public void FileNamesAreConsistentAcrossOSes(object value, string expectedName) Assert.Equal(expectedName, FolderNameHelper.ToFolderName(value)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/FullNameProviderTests.cs b/tests/BenchmarkDotNet.Tests/FullNameProviderTests.cs index e2755f9031..39a6d0d982 100644 --- a/tests/BenchmarkDotNet.Tests/FullNameProviderTests.cs +++ b/tests/BenchmarkDotNet.Tests/FullNameProviderTests.cs @@ -283,4 +283,4 @@ public class WithVoidTypeAsArgument [Arguments(typeof(void), typeof(TypeConverter))] public TypeConverter GetConverter(Type typeToConvert, Type expectedConverter) => TypeDescriptor.GetConverter(typeToConvert); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/GenericBuilderTests.cs b/tests/BenchmarkDotNet.Tests/GenericBuilderTests.cs index dc41b9e426..03cca89ecc 100644 --- a/tests/BenchmarkDotNet.Tests/GenericBuilderTests.cs +++ b/tests/BenchmarkDotNet.Tests/GenericBuilderTests.cs @@ -123,4 +123,4 @@ public class GenericBenchmarkWithConstraintsWrongArgs where T1 : struct [Benchmark] public T2 CreateT2() => Activator.CreateInstance(); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/GlobFilterTests.cs b/tests/BenchmarkDotNet.Tests/GlobFilterTests.cs index c56b75ec60..affacd940e 100644 --- a/tests/BenchmarkDotNet.Tests/GlobFilterTests.cs +++ b/tests/BenchmarkDotNet.Tests/GlobFilterTests.cs @@ -59,4 +59,4 @@ public class TypeWithBenchmarksAndParams [Benchmark] public void TheBenchmark() { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Helpers/LinuxOsReleaseHelperTests.cs b/tests/BenchmarkDotNet.Tests/Helpers/LinuxOsReleaseHelperTests.cs index e7bba7f3f9..a0a0a12d3e 100644 --- a/tests/BenchmarkDotNet.Tests/Helpers/LinuxOsReleaseHelperTests.cs +++ b/tests/BenchmarkDotNet.Tests/Helpers/LinuxOsReleaseHelperTests.cs @@ -201,4 +201,4 @@ public void LinuxOsReleaseHelperTest(string osReleaseContent, string expectedNam Assert.Equal(expectedName, actualName); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Helpers/ShadowCopyHelperTests.cs b/tests/BenchmarkDotNet.Tests/Helpers/ShadowCopyHelperTests.cs index 9d1928fe99..e01f75ea8b 100644 --- a/tests/BenchmarkDotNet.Tests/Helpers/ShadowCopyHelperTests.cs +++ b/tests/BenchmarkDotNet.Tests/Helpers/ShadowCopyHelperTests.cs @@ -53,4 +53,4 @@ public void TheAssemblyRunningTheseTestsIsNotShadowCopied() private static string ToCodeBase(string path) => new Uri(path).AbsoluteUri; } -#endif \ No newline at end of file +#endif diff --git a/tests/BenchmarkDotNet.Tests/Infra/VerifyHelper.cs b/tests/BenchmarkDotNet.Tests/Infra/VerifyHelper.cs index 3e017fa525..854dfa41d9 100644 --- a/tests/BenchmarkDotNet.Tests/Infra/VerifyHelper.cs +++ b/tests/BenchmarkDotNet.Tests/Infra/VerifyHelper.cs @@ -11,4 +11,4 @@ public static VerifySettings Create(string? typeName = null) result.UseTypeName(typeName); return result; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/KnownIssue.cs b/tests/BenchmarkDotNet.Tests/KnownIssue.cs index 1831ad3b08..994501cbd8 100644 --- a/tests/BenchmarkDotNet.Tests/KnownIssue.cs +++ b/tests/BenchmarkDotNet.Tests/KnownIssue.cs @@ -17,4 +17,4 @@ public KnownIssue(int number, string description, bool isFixed) public string IgnoreMessage => $"This test is ignored because of the issue #{Number} '{Description}'"; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/LevenshteinDistanceCalculatorTests.cs b/tests/BenchmarkDotNet.Tests/LevenshteinDistanceCalculatorTests.cs index d09c54e161..ba214a4421 100644 --- a/tests/BenchmarkDotNet.Tests/LevenshteinDistanceCalculatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/LevenshteinDistanceCalculatorTests.cs @@ -49,4 +49,4 @@ public void Symmetric() Assert.Equal(calculator.Calculate(first, second), calculator.Calculate(second, first)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Loggers/LoggerWithPrefixTests.cs b/tests/BenchmarkDotNet.Tests/Loggers/LoggerWithPrefixTests.cs index 2ff9640014..62dd5fe735 100644 --- a/tests/BenchmarkDotNet.Tests/Loggers/LoggerWithPrefixTests.cs +++ b/tests/BenchmarkDotNet.Tests/Loggers/LoggerWithPrefixTests.cs @@ -95,4 +95,4 @@ public void WriteLine_StringWithEmptyNewLine() Assert.Equal($"prefix1{Environment.NewLine}{Environment.NewLine}prefix2{Environment.NewLine}", logger.GetLog()); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Mathematics/NumeralSystemTests.cs b/tests/BenchmarkDotNet.Tests/Mathematics/NumeralSystemTests.cs index 1f719b1751..ca305ff645 100644 --- a/tests/BenchmarkDotNet.Tests/Mathematics/NumeralSystemTests.cs +++ b/tests/BenchmarkDotNet.Tests/Mathematics/NumeralSystemTests.cs @@ -28,4 +28,4 @@ private static void Check(NumeralSystem system, string[] expected) Assert.Equal(expected[i - 1], system.ToPresentation(i)); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Mathematics/RankTests.cs b/tests/BenchmarkDotNet.Tests/Mathematics/RankTests.cs index aa824f4f73..e166917e17 100644 --- a/tests/BenchmarkDotNet.Tests/Mathematics/RankTests.cs +++ b/tests/BenchmarkDotNet.Tests/Mathematics/RankTests.cs @@ -17,4 +17,4 @@ public void RankTest() Assert.Equal(expectedRanks, actualRanks); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Mathematics/StatisticsTests.cs b/tests/BenchmarkDotNet.Tests/Mathematics/StatisticsTests.cs index 5f777eeb6f..9dd6af6625 100644 --- a/tests/BenchmarkDotNet.Tests/Mathematics/StatisticsTests.cs +++ b/tests/BenchmarkDotNet.Tests/Mathematics/StatisticsTests.cs @@ -194,4 +194,4 @@ private static void AssertEqual(double[] a, double[] b, IEqualityComparer } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarMock.cs b/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarMock.cs index f63caeafa4..bb16797142 100644 --- a/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarMock.cs +++ b/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarMock.cs @@ -10,4 +10,4 @@ public static class PerfonarMock Name = BenchmarkDotNetInfo.BenchmarkDotNetCaption, Version = "0.1729.0-mock" }; -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarTestExtensions.cs b/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarTestExtensions.cs index 3200e9d1bf..7724fd9ba1 100644 --- a/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarTestExtensions.cs +++ b/tests/BenchmarkDotNet.Tests/Perfonar/Infra/PerfonarTestExtensions.cs @@ -19,4 +19,4 @@ public static EntryInfo AddMetrics(this EntryInfo entry, params string[] metrics } return entry; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs b/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs index eb9f75663f..8c75931005 100644 --- a/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs +++ b/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs @@ -189,4 +189,4 @@ private Task VerifyString(string key, string content) settings.UseParameters(key); return Verifier.Verify(content, settings); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Properties/BenchmarkDotNetInfoTests.cs b/tests/BenchmarkDotNet.Tests/Properties/BenchmarkDotNetInfoTests.cs index 99f5740d8b..6f200badfa 100644 --- a/tests/BenchmarkDotNet.Tests/Properties/BenchmarkDotNetInfoTests.cs +++ b/tests/BenchmarkDotNet.Tests/Properties/BenchmarkDotNetInfoTests.cs @@ -15,4 +15,4 @@ public void RemoveVersionMetadata(string input, string expectedOutput) string? actualOutput = BenchmarkDotNetInfo.RemoveVersionMetadata(input); Assert.Equal(expectedOutput, actualOutput); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/ReflectionTests.cs b/tests/BenchmarkDotNet.Tests/ReflectionTests.cs index 8d59b21b32..3325840a22 100644 --- a/tests/BenchmarkDotNet.Tests/ReflectionTests.cs +++ b/tests/BenchmarkDotNet.Tests/ReflectionTests.cs @@ -278,4 +278,4 @@ public class Fixture { } namespace BenchmarkDotNet.Tests.Bar { public class Fixture { } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs b/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs index a907c78d95..42318eed85 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs @@ -44,4 +44,4 @@ private Summary CreateSummary(IConfig config) return summary; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs b/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs index f07400db9e..a1c324c0c4 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs @@ -63,4 +63,4 @@ public void Foo() { } public void Bar() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Reports/DisplayPrecisionManagerTests.cs b/tests/BenchmarkDotNet.Tests/Reports/DisplayPrecisionManagerTests.cs index 35dd155337..ddba3a51f8 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/DisplayPrecisionManagerTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/DisplayPrecisionManagerTests.cs @@ -108,4 +108,4 @@ public void ClassicTest(int expected, double value) Assert.Equal(expected, actual); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs b/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs index 8662037b1a..106215cbbd 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs @@ -106,4 +106,4 @@ public void Bar() { } public void Foo() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs b/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs index dbafc43245..6f9695a872 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs @@ -126,4 +126,4 @@ public void Bar() { } public void Foo() { } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Running/JobRuntimePropertiesComparerTests.cs b/tests/BenchmarkDotNet.Tests/Running/JobRuntimePropertiesComparerTests.cs index f9ca0bcf98..f5580da935 100644 --- a/tests/BenchmarkDotNet.Tests/Running/JobRuntimePropertiesComparerTests.cs +++ b/tests/BenchmarkDotNet.Tests/Running/JobRuntimePropertiesComparerTests.cs @@ -96,4 +96,4 @@ public void CustomTargetPlatformJobsAreGroupedByTargetFrameworkMoniker() Assert.Single(grouped, group => group.Count() == 6); // Plain2 (3 methods) and Plain3 (3 methods) running against "net5.0-windows" } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Builders/HostEnvironmentInfoBuilder.cs b/tests/BenchmarkDotNet.Tests/Shared/Builders/HostEnvironmentInfoBuilder.cs index ce6bbe6aa2..f2c91ad9ea 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Builders/HostEnvironmentInfoBuilder.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Builders/HostEnvironmentInfoBuilder.cs @@ -90,4 +90,4 @@ public MockHostEnvironmentInfo( PhysicalMemory = new Lazy(() => physicalMemory); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Loggers/OutputLogger.cs b/tests/BenchmarkDotNet.Tests/Shared/Loggers/OutputLogger.cs index 2a83781f14..3e9522ec7c 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Loggers/OutputLogger.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Loggers/OutputLogger.cs @@ -36,4 +36,4 @@ public override void WriteLine(LogKind logKind, string text) base.WriteLine(logKind, text); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockClock.cs b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockClock.cs index 984920e3d6..929f7f8c56 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockClock.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockClock.cs @@ -16,4 +16,4 @@ public MockClock(Frequency frequency) private long counter; public long GetTimestamp() => counter++; } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockEngine.cs b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockEngine.cs index a6e6ab7803..2a2be1071c 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockEngine.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockEngine.cs @@ -65,4 +65,4 @@ internal List Run(EngineStage stage) public IResolver Resolver => new CompositeResolver(BenchmarkRunnerClean.DefaultResolver, EngineResolver.Instance); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockFactory.cs b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockFactory.cs index 6c7a27105a..a2fc34e24e 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockFactory.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockFactory.cs @@ -202,4 +202,4 @@ [Benchmark] public void Bar() { } public static readonly MethodInfo MockMethodInfo = MockType.GetTypeInfo().GetMethods() .Single(method => method.Name == nameof(MockBenchmarkClass.Foo)); } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs index b5d9788ef2..8bcfa124df 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs @@ -42,4 +42,4 @@ public static Summary Run(ITestOutputHelper output, Func Create(IEnumerable values) return data; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/TypeFilterTests.cs b/tests/BenchmarkDotNet.Tests/TypeFilterTests.cs index 1f3e6e7918..2c52c7d966 100644 --- a/tests/BenchmarkDotNet.Tests/TypeFilterTests.cs +++ b/tests/BenchmarkDotNet.Tests/TypeFilterTests.cs @@ -300,4 +300,4 @@ public void Method1() { } [Benchmark] public void Method2() { } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Validators/DeferredExecutionValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/DeferredExecutionValidatorTests.cs index a7b122af10..314d1a4c60 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/DeferredExecutionValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/DeferredExecutionValidatorTests.cs @@ -111,4 +111,4 @@ public async Task MaterializedCollectionsAreOk(Type returningMaterializedResult) Assert.Empty(validationErrors); } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs index f703b7135e..f012c38e67 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs @@ -728,4 +728,4 @@ public class WithArguments public int Bench(int value) => value + Parameter; } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs index 78110029ee..50647e7224 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ParamsValidatorTests.cs @@ -356,4 +356,4 @@ public class InitOnly3 : Base #endif } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs b/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs index 73dcd91db6..3e92e4dea5 100644 --- a/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Validators/ReturnValueValidatorTests.cs @@ -418,4 +418,4 @@ public struct SpanEnumerator } } } -} \ No newline at end of file +} diff --git a/tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementCheckerTests.cs b/tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementCheckerTests.cs index bc01d02ddf..20a3320f11 100644 --- a/tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementCheckerTests.cs +++ b/tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementCheckerTests.cs @@ -9,4 +9,4 @@ public void AllEnvRequirementsAreSupported() foreach (var envRequirement in Enum.GetValues()) EnvRequirementChecker.GetSkip(envRequirement); } -} \ No newline at end of file +} From 14afc217cf72a86039758f970031a7b2abbcceea Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Fri, 16 Oct 2026 23:14:13 +0900 Subject: [PATCH 4/9] chore: modify comment placement to avoid unintended auto formatting --- src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs index 6efbf42040..4353f3cbcb 100644 --- a/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs +++ b/src/BenchmarkDotNet/Toolchains/Roslyn/RoslynBuilder.cs @@ -66,9 +66,8 @@ internal static IEnumerable GetAllReferences(BenchmarkBuildInfo buildI .Select(Assembly.Load) .Append(buildInfo.BenchmarkCase.Descriptor.Type.GetTypeInfo().Assembly) // This assembly does not have to have a reference to BenchmarkDotNet (e.g. custom framework for benchmarking that internally uses BenchmarkDotNet) .Concat(BenchmarkDotNetReferences.Assemblies) // BenchmarkDotNet + Perfolizer - .Concat(BenchmarkDotNetReferences.Types.Select(type => type.GetTypeInfo().Assembly)) // TaskExtensions (ValueTask) - // In-process diagnoser handlers - .Concat(buildInfo.CompositeInProcessDiagnoser.GetHandlerData(buildInfo.BenchmarkCase) + .Concat(BenchmarkDotNetReferences.Types.Select(type => type.GetTypeInfo().Assembly)) // TaskExtensions (ValueTask) + .Concat(buildInfo.CompositeInProcessDiagnoser.GetHandlerData(buildInfo.BenchmarkCase) // In-process diagnoser handlers .Select(handlerData => handlerData.HandlerType?.GetTypeInfo().Assembly) .WhereNotNull()) .Distinct(); From 0568b21e0bc065fd9c54e39aa5be13fa303343ac Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sun, 18 Oct 2026 06:44:48 +0900 Subject: [PATCH 5/9] chore: enable space_after_cast on .editorconfig --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.editorconfig b/.editorconfig index a6bd1a37f3..917189528e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -40,6 +40,8 @@ trim_trailing_whitespace = false # C# files [*.cs] +csharp_space_after_cast = true + # IDE0160: Use block-scoped namespace csharp_style_namespace_declarations=file_scoped:suggestion From e0ee99ea91229c81b7d38c6dafce755e09ce2e42 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sun, 18 Oct 2026 06:46:01 +0900 Subject: [PATCH 6/9] chore: apply dotnet format settings --- .../IntroCultureInfo.cs | 2 +- .../IntroParamsAllValues.cs | 2 +- .../IntroPercentiles.cs | 2 +- .../AnalyzerHelper.cs | 4 +- .../Attributes/ArgumentsAttributeAnalyzer.cs | 2 +- .../GeneralParameterAttributesAnalyzer.cs | 4 +- .../Attributes/ParamsAttributeAnalyzer.cs | 2 +- .../RequiredMemberAnalyzer.cs | 2 +- ...gumentsSourceElementTypeCodeFixProvider.cs | 4 +- .../EtwDiagnoser.cs | 2 +- .../JitDiagnoser.cs | 2 +- .../JitStatsDiagnoser.cs | 2 +- .../Tracing/BenchmarkEvent.cs | 2 +- .../Tracing/EngineEventLogParser.cs | 8 +-- .../Tracing/IterationEvent.cs | 2 +- .../Tracing/TraceLogParser.cs | 6 +- .../Utility/TestCaseFilter.cs | 2 +- .../VSTestAdapter.cs | 4 +- .../Attributes/ConfigAttribute.cs | 2 +- .../Characteristics/CharacteristicHelper.cs | 4 +- .../Characteristics/CharacteristicObject.cs | 20 +++--- .../Characteristics/CharacteristicObject`1.cs | 8 +-- .../Characteristics/Characteristic`1.cs | 4 +- .../Characteristics/Resolver.cs | 4 +- .../Code/CSharpParameterRenderer.cs | 4 +- .../Columns/BaselineRatioColumn.cs | 2 +- .../Columns/DefaultColumnProvider.cs | 2 +- .../Columns/JobCharacteristicColumn.cs | 2 +- src/BenchmarkDotNet/Columns/MetricColumn.cs | 4 +- src/BenchmarkDotNet/Columns/RankColumn.cs | 2 +- .../Columns/StatisticColumn.cs | 2 +- .../ConsoleArguments/ConfigParser.cs | 8 +-- .../Detectors/Cpu/HardwareIntrinsics.cs | 2 +- .../Cpu/Windows/DefaultCpuDetector.cs | 8 +-- .../Diagnosers/DiagnosersLoader.cs | 2 +- .../Diagnosers/InProcessDiagnoserRouter.cs | 2 +- .../Diagnosers/MemoryDiagnoser.cs | 6 +- .../Diagnosers/PerfCollectProfiler.cs | 2 +- .../Diagnosers/PreciseMachineCounter.cs | 4 +- .../Diagnosers/SnapshotProfilerBase.cs | 2 +- .../Diagnosers/ThreadingDiagnoser.cs | 2 +- .../Disassemblers/Arm64Disassembler.cs | 46 ++++++------- .../Arm64RegisterValueAccumulator.cs | 2 +- .../Disassemblers/ClrMdDisassembler.cs | 12 ++-- .../Disassemblers/DataContracts.cs | 2 +- .../GithubMarkdownDisassemblyExporter.cs | 2 +- .../Disassemblers/IntelDisassembler.cs | 20 +++--- .../Disassemblers/SourceCodeProvider.cs | 2 +- src/BenchmarkDotNet/Engines/Consumer.cs | 34 +++++----- .../Engines/EngineEventSource.cs | 16 ++--- src/BenchmarkDotNet/Engines/EngineJitStage.cs | 4 +- .../Engines/EnginePilotStage.cs | 4 +- src/BenchmarkDotNet/Engines/GcStats.cs | 8 +-- src/BenchmarkDotNet/Engines/JitListener.cs | 8 +-- src/BenchmarkDotNet/Engines/TcpListener.cs | 2 +- .../Engines/WebSocketListener.cs | 2 +- .../Environments/PhysicalMemoryInfo.cs | 2 +- .../Environments/Runtimes/CoreRuntime.cs | 2 +- .../Exporters/FullNameProvider.cs | 2 +- .../Exporters/InstructionPointerExporter.cs | 8 +-- .../Exporters/RPlotExporter.cs | 2 +- .../Exporters/Xml/XmlSerializer.cs | 2 +- .../Extensions/MathExtensions.cs | 4 +- .../Extensions/MethodInfoExtensions.cs | 4 +- .../Extensions/PathFeatures.cs | 2 +- .../Extensions/Polyfills/EnumExtensions.cs | 2 +- .../Extensions/ProcessExtensions.cs | 8 +-- .../Extensions/ReflectionExtensions.cs | 4 +- .../Extensions/StringAndTextExtensions.cs | 2 +- .../Helpers/DefaultCultureInfo.cs | 2 +- .../Helpers/DynamicAwaitHelper.cs | 8 +-- .../Helpers/FolderNameHelper.cs | 2 +- .../Helpers/Hashing/MurmurHash.cs | 10 +-- .../Helpers/Hashing/XxHash128.cs | 34 +++++----- .../Helpers/Hashing/XxHashShared.cs | 44 ++++++------- .../Helpers/PowerManagementHelper.cs | 12 ++-- src/BenchmarkDotNet/Helpers/ProcessHelper.cs | 4 +- .../IlGeneratorEmitOpExtensions.cs | 26 ++++---- .../MethodBuilderExtensions.cs | 2 +- .../Helpers/SourceCodeHelper.cs | 16 ++--- .../Helpers/TaskbarProgress.cs | 4 +- .../Helpers/ThreadPoolHelper.cs | 4 +- src/BenchmarkDotNet/Helpers/TitleHelper.cs | 2 +- .../Helpers/UniqueIDGenerator.cs | 10 +-- src/BenchmarkDotNet/Jobs/EnvironmentMode.cs | 2 +- .../Jobs/EnvironmentVariable.cs | 2 +- src/BenchmarkDotNet/Jobs/JobIdGenerator.cs | 4 +- src/BenchmarkDotNet/Jobs/JobMode`1.cs | 2 +- .../Loggers/AsyncProcessOutputReader.cs | 14 ++-- src/BenchmarkDotNet/Loggers/LinqPadLogger.cs | 2 +- src/BenchmarkDotNet/Mathematics/Statistics.cs | 2 +- src/BenchmarkDotNet/Models/BdnLifecycle.cs | 2 +- .../Parameters/DeepEqualityComparer.cs | 14 ++-- .../Parameters/ParameterComparer.cs | 8 +-- .../Parameters/SmartParamBuilder.cs | 2 +- src/BenchmarkDotNet/Portability/CodeGen.cs | 4 +- src/BenchmarkDotNet/Portability/JitInfo.cs | 2 +- .../Portability/RuntimeInformation.cs | 14 ++-- .../Reports/DisplayPrecisionManager.cs | 2 +- .../Running/BenchmarkConverter.cs | 4 +- src/BenchmarkDotNet/Running/BenchmarkId.cs | 4 +- .../Running/BenchmarkRunnerClean.cs | 12 ++-- .../Toolchains/DotNetCli/DotNetCliExecutor.cs | 2 +- src/BenchmarkDotNet/Toolchains/Executor.cs | 2 +- .../Emitters/AsyncStateMachineEmitter.cs | 4 +- .../Implementation/Emitters/EmitExtensions.cs | 4 +- .../Emitters/RunnableEmitter.cs | 12 ++-- .../Emitters/RuntimeAsyncEmitter.cs | 2 +- .../Runnable/RunnableReflectionHelpers.cs | 2 +- .../InProcess/Emit/InProcessEmitRunner.cs | 4 +- .../InProcess/NoEmit/BenchmarkActionBase.cs | 2 +- .../NoEmit/BenchmarkActionFactory.cs | 2 +- .../InProcess/NoEmit/InProcessNoEmitRunner.cs | 2 +- .../Toolchains/LargeAddressAware.cs | 2 +- .../Toolchains/Wasm/WasmExecutor.cs | 6 +- .../Validators/DotNetSdkValidator.cs | 2 +- .../Validators/ValidationError.cs | 2 +- ...GeneralParameterAttributesAnalyzerTests.cs | 6 +- .../MockInProcessDiagnoser.cs | 2 +- .../ArgumentsTests.cs | 10 +-- .../CustomBuildConfigurationTests.cs | 2 +- .../Detectors/CpuDetectorTests.cs | 4 +- .../NaiveRunnableEmitDiff.cs | 16 ++--- .../InProcessTest.cs | 4 +- .../JitListenerTests.cs | 4 +- .../MemoryDiagnoserTests.cs | 2 +- .../Shared/BenchmarkTestExecutor.cs | 2 +- .../ValuesReturnedByBenchmarkTest.cs | 2 +- .../Attributes/ParamsAllValuesVerifyTests.cs | 2 +- .../CharacteristicPresenterTests.cs | 2 +- .../ConfigParserTests.cs | 66 +++++++++---------- .../Arm64DisassemblerTests.IsLdrLiteral64.cs | 22 +++---- .../Arm64/Helpers/Arm64TestInstructions.cs | 4 +- .../Disassemblers/Arm64/Helpers/MockMemory.cs | 12 ++-- ...downDisassemblyExporterMultiCorerunTest.cs | 4 +- .../EventPipeProfilerTests.cs | 4 +- .../Exporters/CommonExporterVerifyTests.cs | 2 +- .../Exporters/MarkdownExporterVerifyTests.cs | 2 +- .../Exporters/OpenMetricsExporterTests.cs | 14 ++-- .../Helpers/UniqueIdGeneratorTests.cs | 2 +- .../MonoDisassemblyOutputParserTests.cs | 4 +- .../ParameterComparerTests.cs | 24 +++---- .../ParamsSourceTests.cs | 8 +-- .../Reports/ColumnTests.cs | 2 +- .../Reports/DefaultColumnProvidersTests.cs | 2 +- .../Reports/RatioPrecisionTests.cs | 4 +- .../Reports/RatioStyleTests.cs | 2 +- .../Reports/SummaryTableTests.cs | 2 +- .../RuntimeEqualityTests.cs | 4 +- .../RuntimeParseTests.cs | 2 +- .../DisassemblerModelSerializationTests.cs | 4 +- .../Shared/Mocks/MockRunner.cs | 2 +- .../Shared/TestCultureInfo.cs | 2 +- .../StringExtensionsTests.cs | 2 +- .../dotMemory/DotMemoryTests.cs | 2 +- .../dotTrace/DotTraceTests.cs | 2 +- 156 files changed, 472 insertions(+), 472 deletions(-) diff --git a/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs b/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs index 61dfd91b61..c43c880253 100644 --- a/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs +++ b/samples/BenchmarkDotNet.Samples/IntroCultureInfo.cs @@ -12,7 +12,7 @@ private class Config : ManualConfig { public Config() { - CultureInfo = (CultureInfo)CultureInfo.InvariantCulture.Clone(); + CultureInfo = (CultureInfo) CultureInfo.InvariantCulture.Clone(); CultureInfo.NumberFormat.NumberDecimalSeparator = "@"; } } diff --git a/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs b/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs index 73cc4f0932..5df5a06298 100644 --- a/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs +++ b/samples/BenchmarkDotNet.Samples/IntroParamsAllValues.cs @@ -22,7 +22,7 @@ public enum CustomEnum public void Benchmark() { Thread.Sleep( - (int)E * 100 + + (int) E * 100 + (B == true ? 20 : B == false ? 10 : 0)); } } diff --git a/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs b/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs index 8a714af2fd..9c717714be 100644 --- a/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs +++ b/samples/BenchmarkDotNet.Samples/IntroPercentiles.cs @@ -36,7 +36,7 @@ public Config() public void ConstantDelays() => Thread.Sleep(20); [Benchmark] - public void RandomDelays() => Thread.Sleep(10 + (int)(20 * Rnd.NextDouble())); + public void RandomDelays() => Thread.Sleep(10 + (int) (20 * Rnd.NextDouble())); [Benchmark] public void RareDelays() diff --git a/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs b/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs index eda0441c39..3f9b91b8f0 100644 --- a/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs +++ b/src/BenchmarkDotNet.Analyzers/AnalyzerHelper.cs @@ -411,7 +411,7 @@ public static ExpressionSyntax GetAttributeParamsArgumentExpression(this Attribu { Debug.Assert(index >= 0); // Properties must come after constructor arguments, so we don't need to worry about it here. - var attrSyntax = (AttributeSyntax)attributeData.ApplicationSyntaxReference!.GetSyntax(); + var attrSyntax = (AttributeSyntax) attributeData.ApplicationSyntaxReference!.GetSyntax(); var args = attrSyntax.ArgumentList!.Arguments; Debug.Assert(args is { Count: > 0 }); var maybeArrayExpression = args[0].Expression; @@ -420,7 +420,7 @@ public static ExpressionSyntax GetAttributeParamsArgumentExpression(this Attribu if (maybeArrayExpression is CollectionExpressionSyntax collectionExpressionSyntax) { Debug.Assert(index < collectionExpressionSyntax.Elements.Count); - return ((ExpressionElementSyntax)collectionExpressionSyntax.Elements[index]).Expression; + return ((ExpressionElementSyntax) collectionExpressionSyntax.Elements[index]).Expression; } #endif diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs index 6e1a48e7e5..79233fa667 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/ArgumentsAttributeAnalyzer.cs @@ -219,7 +219,7 @@ private static void AnalyzeMethodSymbol(SymbolAnalysisContext context) } else { - var syntax = (AttributeSyntax)attr.ApplicationSyntaxReference!.GetSyntax(); + var syntax = (AttributeSyntax) attr.ApplicationSyntaxReference!.GetSyntax(); AnalyzeAssignableValueType( attr.ConstructorArguments[0], syntax.ArgumentList!.Arguments[0].Expression, diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs index 5dd5ce1110..e1e0adc376 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/GeneralParameterAttributesAnalyzer.cs @@ -392,7 +392,7 @@ private static void AnalyzeParamsSourceWriteOnlyProperty( } else { - var syntax = (AttributeSyntax)attributeData.ApplicationSyntaxReference!.GetSyntax(); + var syntax = (AttributeSyntax) attributeData.ApplicationSyntaxReference!.GetSyntax(); if (syntax.ArgumentList?.Arguments.Count > 0) { sourceName = ExtractNameFromExpression(syntax.ArgumentList.Arguments[0].Expression, context.SemanticModel); @@ -416,7 +416,7 @@ private static void AnalyzeParamsSourceWriteOnlyProperty( } else { - var syntax = (AttributeSyntax)attributeData.ApplicationSyntaxReference!.GetSyntax(); + var syntax = (AttributeSyntax) attributeData.ApplicationSyntaxReference!.GetSyntax(); if (syntax.ArgumentList?.Arguments.Count > 1) { sourceName = ExtractNameFromExpression(syntax.ArgumentList.Arguments[1].Expression, context.SemanticModel); diff --git a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs index cf340d71d4..87c45905f9 100644 --- a/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/Attributes/ParamsAttributeAnalyzer.cs @@ -100,7 +100,7 @@ private void Analyze(SymbolAnalysisContext context) // [Params(null)] if (attr.ConstructorArguments[0].IsNull) { - var syntax = (AttributeSyntax)attr.ApplicationSyntaxReference!.GetSyntax(); + var syntax = (AttributeSyntax) attr.ApplicationSyntaxReference!.GetSyntax(); AnalyzeAssignableValueType( attr.ConstructorArguments[0], syntax.ArgumentList!.Arguments[0].Expression, diff --git a/src/BenchmarkDotNet.Analyzers/RequiredMemberAnalyzer.cs b/src/BenchmarkDotNet.Analyzers/RequiredMemberAnalyzer.cs index 72b34d16a8..8327f0c41a 100644 --- a/src/BenchmarkDotNet.Analyzers/RequiredMemberAnalyzer.cs +++ b/src/BenchmarkDotNet.Analyzers/RequiredMemberAnalyzer.cs @@ -66,7 +66,7 @@ public override void Initialize(AnalysisContext context) // benchmark type (that one reports its own members), so no state is shared between types. startContext.RegisterSymbolAction(symbolContext => { - var benchmarkType = (INamedTypeSymbol)symbolContext.Symbol; + var benchmarkType = (INamedTypeSymbol) symbolContext.Symbol; if (benchmarkType.TypeKind != TypeKind.Class || !IsBenchmarkType(benchmarkType, benchmarkAttribute)) { return; diff --git a/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs b/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs index 114e790e43..b9fc594b21 100644 --- a/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs +++ b/src/BenchmarkDotNet.CodeFixers/ArgumentsSourceElementTypeCodeFixProvider.cs @@ -498,7 +498,7 @@ private readonly struct ItemList(SyntaxToken open, SyntaxToken close, SyntaxNode public SyntaxNodeOrToken[] Parts { get; } = parts; public ExpressionSyntax[] Expressions - => Parts.Where(part => part.IsNode).Select(part => (ExpressionSyntax)part.AsNode()!).ToArray(); + => Parts.Where(part => part.IsNode).Select(part => (ExpressionSyntax) part.AsNode()!).ToArray(); } /// @@ -521,7 +521,7 @@ when initializer.IsKind(SyntaxKind.CollectionInitializerExpression) => Of(initia collection.OpenBracketToken, collection.CloseBracketToken, collection.Elements.GetWithSeparators() - .Select(part => part.IsNode ? (SyntaxNodeOrToken)((ExpressionElementSyntax)part.AsNode()!).Expression : part) + .Select(part => part.IsNode ? (SyntaxNodeOrToken) ((ExpressionElementSyntax) part.AsNode()!).Expression : part) .ToArray()) : null, #endif diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/EtwDiagnoser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/EtwDiagnoser.cs index 663a733d85..ac42154ca2 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/EtwDiagnoser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/EtwDiagnoser.cs @@ -47,7 +47,7 @@ protected void Start(DiagnoserActionParameters parameters) // (or processes) we should be monitoring. Communication between the benchmark thread // and the ETW collection thread is through the statsPerProcess concurrent dictionary // and through the TraceEventSession class, which is thread-safe. - var task = Task.Factory.StartNew((Action)(() => Session.Source.Process()), TaskCreationOptions.LongRunning); + var task = Task.Factory.StartNew((Action) (() => Session.Source.Process()), TaskCreationOptions.LongRunning); // wait until the processing has started, block by then so we don't loose any // information (very important for jit-related things) diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs index efdbd9f9e7..bac4cd9de1 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/JitDiagnoser.cs @@ -11,7 +11,7 @@ namespace BenchmarkDotNet.Diagnostics.Windows { public abstract class JitDiagnoser : EtwDiagnoser, IDiagnoser where TStats : new() { - protected override ulong EventType => (ulong)ClrTraceEventParser.Keywords.JitTracing; + protected override ulong EventType => (ulong) ClrTraceEventParser.Keywords.JitTracing; protected override string SessionNamePrefix => "JitTracing"; diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/JitStatsDiagnoser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/JitStatsDiagnoser.cs index af50bdcc97..ec5a989768 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/JitStatsDiagnoser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/JitStatsDiagnoser.cs @@ -14,7 +14,7 @@ public class JitStatsDiagnoser : JitDiagnoser, IProfiler public string ShortName => "jit"; - protected override ulong EventType => (ulong)(ClrTraceEventParser.Keywords.Jit | ClrTraceEventParser.Keywords.Compilation); + protected override ulong EventType => (ulong) (ClrTraceEventParser.Keywords.Jit | ClrTraceEventParser.Keywords.Compilation); public override IEnumerable ProcessResults(DiagnoserResults results) { diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs index c69acb5424..5103289d63 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/BenchmarkEvent.cs @@ -18,7 +18,7 @@ internal BenchmarkEvent(Action target, int eventID, int task, st protected override Delegate Target { get => target; - set => target = (Action)value; + set => target = (Action) value; } public override string[] PayloadNames => payloadNames ?? (payloadNames = [nameof(BenchmarkName)]); diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs index 9701dcafb5..dd88b780d5 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/EngineEventLogParser.cs @@ -115,12 +115,12 @@ public event Action WorkloadActualStop private static IterationEvent BenchmarkStartTemplate(Action? action) { // action, eventid, taskid, taskName, taskGuid, opcode, opcodeName, providerGuid, providerName - return new IterationEvent(action, EngineEventSource.BenchmarkStartEventId, (int)EngineEventSource.Tasks.Benchmark, nameof(EngineEventSource.Tasks.Benchmark), Guid.Empty, (int)EventOpcode.Start, nameof(EventOpcode.Start), ProviderGuid, ProviderName); + return new IterationEvent(action, EngineEventSource.BenchmarkStartEventId, (int) EngineEventSource.Tasks.Benchmark, nameof(EngineEventSource.Tasks.Benchmark), Guid.Empty, (int) EventOpcode.Start, nameof(EventOpcode.Start), ProviderGuid, ProviderName); } private static IterationEvent BenchmarkStopTemplate(Action? action) { // action, eventid, taskid, taskName, taskGuid, opcode, opcodeName, providerGuid, providerName - return new IterationEvent(action, EngineEventSource.BenchmarkStopEventId, (int)EngineEventSource.Tasks.Benchmark, nameof(EngineEventSource.Tasks.Benchmark), Guid.Empty, (int)EventOpcode.Stop, nameof(EventOpcode.Stop), ProviderGuid, ProviderName); + return new IterationEvent(action, EngineEventSource.BenchmarkStopEventId, (int) EngineEventSource.Tasks.Benchmark, nameof(EngineEventSource.Tasks.Benchmark), Guid.Empty, (int) EventOpcode.Stop, nameof(EventOpcode.Stop), ProviderGuid, ProviderName); } private static IterationEvent OverheadJittingStartTemplate(Action? action) @@ -167,12 +167,12 @@ private static IterationEvent WorkloadActualStopTemplate(Action? private static IterationEvent CreateIterationStartTemplate(Action? action, int eventId, EventTask eventTask) { // action, eventid, taskid, taskName, taskGuid, opcode, opcodeName, providerGuid, providerName - return new IterationEvent(action, eventId, (int)eventTask, eventTask.ToString(), Guid.Empty, (int)EventOpcode.Start, nameof(EventOpcode.Start), ProviderGuid, ProviderName); + return new IterationEvent(action, eventId, (int) eventTask, eventTask.ToString(), Guid.Empty, (int) EventOpcode.Start, nameof(EventOpcode.Start), ProviderGuid, ProviderName); } private static IterationEvent CreateIterationStopTemplate(Action? action, int eventId, EventTask eventTask) { // action, eventid, taskid, taskName, taskGuid, opcode, opcodeName, providerGuid, providerName - return new IterationEvent(action, eventId, (int)eventTask, eventTask.ToString(), Guid.Empty, (int)EventOpcode.Stop, nameof(EventOpcode.Stop), ProviderGuid, ProviderName); + return new IterationEvent(action, eventId, (int) eventTask, eventTask.ToString(), Guid.Empty, (int) EventOpcode.Stop, nameof(EventOpcode.Stop), ProviderGuid, ProviderName); } protected override void EnumerateTemplates(Func? eventsToObserve, Action callback) diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/IterationEvent.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/IterationEvent.cs index 1fd6694fab..ab29559940 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/IterationEvent.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/IterationEvent.cs @@ -19,7 +19,7 @@ internal IterationEvent(Action? target, int eventId, int task, s protected override Delegate? Target { get => target; - set => target = (Action?)value; + set => target = (Action?) value; } public override string[] PayloadNames => payloadNames ?? (payloadNames = [nameof(TotalOperations)]); diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs index bc422f9d79..3f37a7d69f 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/Tracing/TraceLogParser.cs @@ -142,11 +142,11 @@ public IEnumerable CalculateMetrics(Dictionary profileSourceId overheadTotalPerCounter.TryGetValue(perCounter.Key, out var overhead); // result = (avg(workload) - avg(overhead))/op - double result = perCounter.Value / (double)workloadIterations.Length; + double result = perCounter.Value / (double) workloadIterations.Length; if (overheadIterations.Length > 0) // we skip the overhead phase for long-running benchmarks { - result -= (overhead / (double)overheadIterations.Length); + result -= (overhead / (double) overheadIterations.Length); } result /= totalOperationsPerIteration.Value; @@ -236,7 +236,7 @@ public bool TryHandle(double timeStamp, int profileSource, int interval) checked { ProfileSourceIdToCount.TryGetValue(profileSource, out ulong existing); - ProfileSourceIdToCount[profileSource] = existing + (ulong)interval; + ProfileSourceIdToCount[profileSource] = existing + (ulong) interval; } return true; diff --git a/src/BenchmarkDotNet.TestAdapter/Utility/TestCaseFilter.cs b/src/BenchmarkDotNet.TestAdapter/Utility/TestCaseFilter.cs index 47f9941e2e..c1f8dfac09 100644 --- a/src/BenchmarkDotNet.TestAdapter/Utility/TestCaseFilter.cs +++ b/src/BenchmarkDotNet.TestAdapter/Utility/TestCaseFilter.cs @@ -123,7 +123,7 @@ private bool GetTestCaseFilterExpressionFromDiscoveryContext(IDiscoveryContext d { // GetTestCaseFilter is present on DiscoveryContext but not in IDiscoveryContext interface var method = discoveryContext.GetType().GetRuntimeMethod("GetTestCaseFilter", [typeof(IEnumerable), typeof(Func)]); - filter = (ITestCaseFilterExpression)method?.Invoke(discoveryContext, [supportedPropertyNames, null])!; + filter = (ITestCaseFilterExpression) method?.Invoke(discoveryContext, [supportedPropertyNames, null])!; return true; } diff --git a/src/BenchmarkDotNet.TestAdapter/VSTestAdapter.cs b/src/BenchmarkDotNet.TestAdapter/VSTestAdapter.cs index ced77fae7a..42f56a87c8 100644 --- a/src/BenchmarkDotNet.TestAdapter/VSTestAdapter.cs +++ b/src/BenchmarkDotNet.TestAdapter/VSTestAdapter.cs @@ -144,7 +144,7 @@ private static List GetVsTestCasesFromAssembly(string assemblyPath, IM try { // Ensure that the test enumeration is done inside the context of the source directory. - var enumerator = (BenchmarkEnumeratorWrapper)CreateIsolatedType(typeof(BenchmarkEnumeratorWrapper), assemblyPath); + var enumerator = (BenchmarkEnumeratorWrapper) CreateIsolatedType(typeof(BenchmarkEnumeratorWrapper), assemblyPath); var testCases = enumerator .GetTestCasesFromAssemblyPathSerialized(assemblyPath) .Select(SerializationHelpers.Deserialize) @@ -188,7 +188,7 @@ private void RunBenchmarks(string source, IFrameworkHandle frameworkHandle, IEnu try { // Ensure that test execution is done inside the context of the source directory. - var executor = (BenchmarkExecutorWrapper)CreateIsolatedType(typeof(BenchmarkExecutorWrapper), source); + var executor = (BenchmarkExecutorWrapper) CreateIsolatedType(typeof(BenchmarkExecutorWrapper), source); cts?.Token.Register(executor.Cancel); executor.RunBenchmarks(source, new TestExecutionRecorderWrapper(frameworkHandle), caseIds); diff --git a/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs b/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs index 29587f1a44..6b3b997f62 100644 --- a/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs +++ b/src/BenchmarkDotNet/Attributes/ConfigAttribute.cs @@ -7,6 +7,6 @@ public class ConfigAttribute : Attribute, IConfigSource { public IConfig Config { get; } - public ConfigAttribute(Type type) => Config = (IConfig)Activator.CreateInstance(type)!; + public ConfigAttribute(Type type) => Config = (IConfig) Activator.CreateInstance(type)!; } } diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs index ba0108f8f0..4937989479 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicHelper.cs @@ -52,12 +52,12 @@ private static IReadOnlyList GetThisTypeCharacteristicsCore( var fieldValues = characteristicObjectType.GetTypeInfo() .GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.Static) .Where(f => IsCharacteristicSubclass(f.FieldType)) - .Select(f => AssertHasValue(f, (Characteristic?)f.GetValue(null))); + .Select(f => AssertHasValue(f, (Characteristic?) f.GetValue(null))); var propertyValues = characteristicObjectType.GetTypeInfo() .GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.Static) .Where(p => p.GetMethod != null && IsCharacteristicSubclass(p.PropertyType)) - .Select(p => AssertHasValue(p, (Characteristic?)p.GetValue(null))); + .Select(p => AssertHasValue(p, (Characteristic?) p.GetValue(null))); // DONTTOUCH: DO NOT change the order of characteristic as it may break logic of some operations. return fieldValues diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs index c862ccce0d..3c7f7c3098 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicObject.cs @@ -140,7 +140,7 @@ public bool HasValue(Characteristic characteristic) internal T? GetValue<[DynamicallyAccessedMembers(CharacteristicMemberTypes)] T>(Characteristic characteristic) { - return (T?)GetValue((Characteristic)characteristic); + return (T?) GetValue((Characteristic) characteristic); } internal object? GetValue(Characteristic characteristic) @@ -180,7 +180,7 @@ public bool HasValue(Characteristic characteristic) public T? ResolveValue<[DynamicallyAccessedMembers(CharacteristicObject.CharacteristicMemberTypes)] T>(Characteristic characteristic, T defaultValue) { - return HasValue(characteristic) ? GetValue(characteristic) : (T?)characteristic.ResolveValueCore(this, defaultValue!); + return HasValue(characteristic) ? GetValue(characteristic) : (T?) characteristic.ResolveValueCore(this, defaultValue!); } [PublicAPI] @@ -191,14 +191,14 @@ public bool HasValue(Characteristic characteristic) public T? ResolveValueAsNullable<[DynamicallyAccessedMembers(CharacteristicMemberTypes)] T>(Characteristic characteristic) where T : struct { - return HasValue(characteristic) ? GetValue(characteristic) : (T?)null; + return HasValue(characteristic) ? GetValue(characteristic) : (T?) null; } #endregion #region Set value internal void SetValue<[DynamicallyAccessedMembers(CharacteristicMemberTypes)] T>(Characteristic characteristic, T value) { - SetValue((Characteristic)characteristic, value); + SetValue((Characteristic) characteristic, value); } internal void SetValue(Characteristic characteristic, object? value) @@ -209,8 +209,8 @@ internal void SetValue(Characteristic characteristic, object? value) { AssertIsAssignable(characteristic, value); - var oldObjectValue = (CharacteristicObject?)GetValue(characteristic); - var newObjectValue = (CharacteristicObject?)ResolveCore(characteristic, value!); + var oldObjectValue = (CharacteristicObject?) GetValue(characteristic); + var newObjectValue = (CharacteristicObject?) ResolveCore(characteristic, value!); if (!ReferenceEquals(oldObjectValue, newObjectValue)) { @@ -241,7 +241,7 @@ private void SetValueCore(Characteristic characteristic, object? value) $"The current node {this} has value for {characteristic} already.", nameof(characteristic)); - var characteristicObject = (CharacteristicObject)ResolveCore(characteristic, value!)!; + var characteristicObject = (CharacteristicObject) ResolveCore(characteristic, value!)!; characteristicObject.SetOwnerCore(OwnerOrSelf); sharedValues[characteristic] = characteristicObject; @@ -314,7 +314,7 @@ private void SetValueOnAttach(Characteristic characteristic, object value) if (characteristic.HasChildCharacteristics) { // DONTTOUCH: workaround on case there were no parent characteristic. - var characteristicObject = (CharacteristicObject?)GetValue(characteristic); + var characteristicObject = (CharacteristicObject?) GetValue(characteristic); characteristicObject?.DetachFromOwner(characteristic); } @@ -351,7 +351,7 @@ private CharacteristicObject ApplyCore( { if (!HasValue(characteristic)) { - var characteristicObject = (CharacteristicObject?)ResolveCore(characteristic, value); + var characteristicObject = (CharacteristicObject?) ResolveCore(characteristic, value); if (characteristicObject != null) { value = Activator.CreateInstance(characteristicObject.GetType()); @@ -392,7 +392,7 @@ protected CharacteristicObject UnfreezeCopyCore() { AssertIsRoot(); - var newRoot = (CharacteristicObject)Activator.CreateInstance(GetType())!; + var newRoot = (CharacteristicObject) Activator.CreateInstance(GetType())!; newRoot.ApplyCore(this); // Preserve the IdCharacteristic of the original object diff --git a/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs b/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs index 0272883a98..2d32902e6f 100644 --- a/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs +++ b/src/BenchmarkDotNet/Characteristics/CharacteristicObject`1.cs @@ -10,7 +10,7 @@ protected CharacteristicObject() { } protected CharacteristicObject(string id) : base(id) { } - public new T Apply(CharacteristicObject other) => (T)ApplyCore(other); + public new T Apply(CharacteristicObject other) => (T) ApplyCore(other); [PublicAPI] public T Apply(params CharacteristicObject[] others) @@ -20,7 +20,7 @@ public T Apply(params CharacteristicObject[] others) { result.Apply(other); } - return (T)result; + return (T) result; } [PublicAPI] @@ -29,9 +29,9 @@ public T Apply(params CharacteristicObject[] others) [PublicAPI] public T ApplyAndFreeze(params CharacteristicObject[] others) => Apply(others).Freeze(); - public new T Freeze() => (T)FreezeCore(); + public new T Freeze() => (T) FreezeCore(); - public new T UnfreezeCopy() => (T)UnfreezeCopyCore(); + public new T UnfreezeCopy() => (T) UnfreezeCopyCore(); protected static Characteristic CreateCharacteristic<[DynamicallyAccessedMembers(CharacteristicMemberTypes)] TC>(string memberName) => Characteristic.Create(memberName); diff --git a/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs b/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs index 76500b0419..cae2173de0 100644 --- a/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs +++ b/src/BenchmarkDotNet/Characteristics/Characteristic`1.cs @@ -30,9 +30,9 @@ internal Characteristic( internal override object? ResolveValueCore(CharacteristicObject obj, object? currentValue) { if (Resolver == null) - return (T?)base.ResolveValueCore(obj, currentValue); + return (T?) base.ResolveValueCore(obj, currentValue); - return Resolver(obj, (T?)base.ResolveValueCore(obj, currentValue)); + return Resolver(obj, (T?) base.ResolveValueCore(obj, currentValue)); } } } diff --git a/src/BenchmarkDotNet/Characteristics/Resolver.cs b/src/BenchmarkDotNet/Characteristics/Resolver.cs index eef0c6d371..0c7168ea80 100644 --- a/src/BenchmarkDotNet/Characteristics/Resolver.cs +++ b/src/BenchmarkDotNet/Characteristics/Resolver.cs @@ -30,7 +30,7 @@ public class Resolver : IResolver return characteristic[obj]; if (resolvers.TryGetValue(characteristic, out var resolver)) - return (T?)resolver(obj); + return (T?) resolver(obj); throw new InvalidOperationException($"There is no default resolver for {characteristic.FullId}"); } @@ -51,7 +51,7 @@ public class Resolver : IResolver return characteristic[obj]; if (resolvers.TryGetValue(characteristic, out var resolver)) - return (T?)resolver(obj); + return (T?) resolver(obj); return defaultValue; } diff --git a/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs b/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs index 779be863e0..c5de644b24 100644 --- a/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs +++ b/src/BenchmarkDotNet/Code/CSharpParameterRenderer.cs @@ -184,8 +184,8 @@ private string SourceExpression(SourceRead read) private static string InvocationPostfix(MemberInfo source) => source is PropertyInfo ? string.Empty : "()"; private static bool IsStatic(MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.IsStatic : ((MethodInfo)source).IsStatic; + => source is PropertyInfo property ? property.GetMethod!.IsStatic : ((MethodInfo) source).IsStatic; private static Type ReturnType(MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo)source).ReturnType; + => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo) source).ReturnType; } diff --git a/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs b/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs index 74261f18d6..c57917fc4a 100644 --- a/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs +++ b/src/BenchmarkDotNet/Columns/BaselineRatioColumn.cs @@ -130,7 +130,7 @@ private static bool IsNonBaselinesPrecise(Summary summary, Statistics baselineSt } } - public override int PriorityInCategory => (int)Metric; + public override int PriorityInCategory => (int) Metric; public override bool IsNumeric => true; public override UnitType UnitType => UnitType.Dimensionless; diff --git a/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs b/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs index dabe340cd6..decab0ae1a 100644 --- a/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs +++ b/src/BenchmarkDotNet/Columns/DefaultColumnProvider.cs @@ -52,7 +52,7 @@ public IEnumerable GetColumns(Summary summary) } return keys .OrderBy(key => key, StringComparer.Ordinal) - .Select(key => (IColumn)new SettingsColumn(key)); + .Select(key => (IColumn) new SettingsColumn(key)); } } diff --git a/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs b/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs index aa1b2752ba..467c1f95b9 100644 --- a/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs +++ b/src/BenchmarkDotNet/Columns/JobCharacteristicColumn.cs @@ -63,7 +63,7 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase) private static readonly Lazy LazyAllColumns = new Lazy(() => CharacteristicHelper.GetAllPresentableCharacteristics(typeof(Job), true) - .Select(c => (IColumn)new JobCharacteristicColumn(c)).ToArray()); + .Select(c => (IColumn) new JobCharacteristicColumn(c)).ToArray()); public static IColumn[] AllColumns => LazyAllColumns.Value; diff --git a/src/BenchmarkDotNet/Columns/MetricColumn.cs b/src/BenchmarkDotNet/Columns/MetricColumn.cs index 9cce2cff16..2cb23fa6b3 100644 --- a/src/BenchmarkDotNet/Columns/MetricColumn.cs +++ b/src/BenchmarkDotNet/Columns/MetricColumn.cs @@ -49,12 +49,12 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyl if (printUnits && descriptor.UnitType == UnitType.CodeSize) { - var measurement = SizeValue.FromBytes((long)metric.Value).ToMeasurement(style.CodeSizeUnit); + var measurement = SizeValue.FromBytes((long) metric.Value).ToMeasurement(style.CodeSizeUnit); return UnitHelper.Format(measurement, numberFormat, cultureInfo, style.PrintUnitsInContent); } if (printUnits && descriptor.UnitType == UnitType.Size) { - var measurement = SizeValue.FromBytes((long)metric.Value).ToMeasurement(style.SizeUnit); + var measurement = SizeValue.FromBytes((long) metric.Value).ToMeasurement(style.SizeUnit); return UnitHelper.Format(measurement, numberFormat, cultureInfo, style.PrintUnitsInContent); } if (printUnits && descriptor.UnitType == UnitType.Time) diff --git a/src/BenchmarkDotNet/Columns/RankColumn.cs b/src/BenchmarkDotNet/Columns/RankColumn.cs index 634bf0e1a9..cf7415d034 100644 --- a/src/BenchmarkDotNet/Columns/RankColumn.cs +++ b/src/BenchmarkDotNet/Columns/RankColumn.cs @@ -42,7 +42,7 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase) public bool IsNumeric => true; public UnitType UnitType => UnitType.Dimensionless; public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyle style) => GetValue(summary, benchmarkCase); - public int PriorityInCategory => (int)numeralSystem; + public int PriorityInCategory => (int) numeralSystem; public override string ToString() => ColumnName; public string Legend => $"Relative position of current benchmark mean among all benchmarks ({numeralSystem} style)"; } diff --git a/src/BenchmarkDotNet/Columns/StatisticColumn.cs b/src/BenchmarkDotNet/Columns/StatisticColumn.cs index 4da93c4f98..8b729d22f4 100644 --- a/src/BenchmarkDotNet/Columns/StatisticColumn.cs +++ b/src/BenchmarkDotNet/Columns/StatisticColumn.cs @@ -125,7 +125,7 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyl public bool IsAvailable(Summary summary) => true; public bool AlwaysShow => true; public ColumnCategory Category => ColumnCategory.Statistics; - public int PriorityInCategory => (int)priority; + public int PriorityInCategory => (int) priority; public bool IsNumeric => true; public UnitType UnitType { get; } diff --git a/src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs b/src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs index 123eba90b7..8000a163ad 100644 --- a/src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs +++ b/src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs @@ -112,7 +112,7 @@ private static bool TryResolveExporters(string name, [NotNullWhen(true)] out IEx return false; } - exporters = [(IExporter)Activator.CreateInstance(type)!]; + exporters = [(IExporter) Activator.CreateInstance(type)!]; error = null; return true; } @@ -412,11 +412,11 @@ internal static bool TryConvertAffinity(ulong mask, int pointerSize, out IntPtr { if (pointerSize >= 8) { - affinity = new IntPtr(unchecked((long)mask)); + affinity = new IntPtr(unchecked((long) mask)); return true; } - affinity = new IntPtr(unchecked((int)mask)); + affinity = new IntPtr(unchecked((int) mask)); return mask <= uint.MaxValue; } @@ -436,7 +436,7 @@ private static IConfig CreateConfig(CommandLineOptions options, IConfig? globalC config.AddExporter(options.Exporters.SelectMany(exporter => TryResolveExporters(exporter, out var resolved, out _) ? resolved : []).ToArray()); config.AddHardwareCounters(options.HardwareCounters - .Select(counterName => (HardwareCounter)Enum.Parse(typeof(HardwareCounter), counterName, ignoreCase: true)) + .Select(counterName => (HardwareCounter) Enum.Parse(typeof(HardwareCounter), counterName, ignoreCase: true)) .ToArray()); if (options.UseMemoryDiagnoser) diff --git a/src/BenchmarkDotNet/Detectors/Cpu/HardwareIntrinsics.cs b/src/BenchmarkDotNet/Detectors/Cpu/HardwareIntrinsics.cs index 9c3a0d9872..9367758e92 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/HardwareIntrinsics.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/HardwareIntrinsics.cs @@ -281,7 +281,7 @@ private static bool GetIsSupported([DynamicallyAccessedMembers(DynamicallyAccess Type type = Type.GetType(typeName)!; if (type == null) return false; - return (bool)type.GetProperty("IsSupported", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)!.GetValue(null, null)!; + return (bool) type.GetProperty("IsSupported", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)!.GetValue(null, null)!; } } } diff --git a/src/BenchmarkDotNet/Detectors/Cpu/Windows/DefaultCpuDetector.cs b/src/BenchmarkDotNet/Detectors/Cpu/Windows/DefaultCpuDetector.cs index 30ef76c1bc..043270c1a8 100644 --- a/src/BenchmarkDotNet/Detectors/Cpu/Windows/DefaultCpuDetector.cs +++ b/src/BenchmarkDotNet/Detectors/Cpu/Windows/DefaultCpuDetector.cs @@ -103,7 +103,7 @@ private static void GetProcessorInfoFromRegistry(HashSet names, ref doub uint bufferLength = 0; PInvoke.GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP.RelationAll, null, ref bufferLength); - var error = (WIN32_ERROR)Marshal.GetLastWin32Error(); + var error = (WIN32_ERROR) Marshal.GetLastWin32Error(); if (bufferLength == 0 || error != WIN32_ERROR.ERROR_INSUFFICIENT_BUFFER) return null; @@ -112,7 +112,7 @@ private static void GetProcessorInfoFromRegistry(HashSet names, ref doub { var isSuccess = PInvoke.GetLogicalProcessorInformationEx( LOGICAL_PROCESSOR_RELATIONSHIP.RelationAll, - (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)bufferPtr, + (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*) bufferPtr, &bufferLength ); @@ -134,9 +134,9 @@ private static unsafe CpuData ParseData(byte* bufferPtr, uint actualLength) while (currentPtr < endPtr) { - var info = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)currentPtr; + var info = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*) currentPtr; uint size = info->Size; - uint remaining = (uint)(endPtr - currentPtr); + uint remaining = (uint) (endPtr - currentPtr); // Additional boundary for unexpected data. if (size == 0 || size > remaining) diff --git a/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs b/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs index a470b1c334..65296e78bb 100644 --- a/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs +++ b/src/BenchmarkDotNet/Diagnosers/DiagnosersLoader.cs @@ -90,6 +90,6 @@ private static IDiagnoser[] LoadWindowsDiagnosers() } private static IDiagnoser CreateDiagnoser(Assembly loadedAssembly, string typeName) - => (IDiagnoser)Activator.CreateInstance(loadedAssembly.GetType(typeName)!)!; + => (IDiagnoser) Activator.CreateInstance(loadedAssembly.GetType(typeName)!)!; } } diff --git a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs index bce95eba2c..d57e22796e 100644 --- a/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs +++ b/src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs @@ -28,7 +28,7 @@ internal static InProcessDiagnoserRouter Create(IInProcessDiagnoser diagnoser, I } return new() { - handler = Init((IInProcessDiagnoserHandler)Activator.CreateInstance(data.HandlerType)!, data.SerializedConfig!), + handler = Init((IInProcessDiagnoserHandler) Activator.CreateInstance(data.HandlerType)!, data.SerializedConfig!), index = index, runMode = diagnoser.GetRunMode(benchmarkCase) }; diff --git a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs index 745d96ce81..5f86f0e81e 100644 --- a/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/MemoryDiagnoser.cs @@ -34,9 +34,9 @@ public IEnumerable ProcessResults(DiagnoserResults diagnoserResults) { if (Config.DisplayGenColumns) { - yield return new Metric(GarbageCollectionsMetricDescriptor.Gen0, diagnoserResults.GcStats.Gen0Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000); - yield return new Metric(GarbageCollectionsMetricDescriptor.Gen1, diagnoserResults.GcStats.Gen1Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000); - yield return new Metric(GarbageCollectionsMetricDescriptor.Gen2, diagnoserResults.GcStats.Gen2Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000); + yield return new Metric(GarbageCollectionsMetricDescriptor.Gen0, diagnoserResults.GcStats.Gen0Collections / (double) diagnoserResults.GcStats.TotalOperations * 1000); + yield return new Metric(GarbageCollectionsMetricDescriptor.Gen1, diagnoserResults.GcStats.Gen1Collections / (double) diagnoserResults.GcStats.TotalOperations * 1000); + yield return new Metric(GarbageCollectionsMetricDescriptor.Gen2, diagnoserResults.GcStats.Gen2Collections / (double) diagnoserResults.GcStats.TotalOperations * 1000); } yield return new Metric(AllocatedMemoryMetricDescriptor.Instance, diagnoserResults.GcStats.GetBytesAllocatedPerOperation(diagnoserResults.BenchmarkCase) ?? double.NaN); diff --git a/src/BenchmarkDotNet/Diagnosers/PerfCollectProfiler.cs b/src/BenchmarkDotNet/Diagnosers/PerfCollectProfiler.cs index ef351728d8..f7831a83d6 100644 --- a/src/BenchmarkDotNet/Diagnosers/PerfCollectProfiler.cs +++ b/src/BenchmarkDotNet/Diagnosers/PerfCollectProfiler.cs @@ -173,7 +173,7 @@ private void StopCollection(DiagnoserActionParameters parameters) logger.WriteLineError($"kill(perfcollect, SIGINT) failed with {lastError}"); } - if (!perfCollectProcess.WaitForExit((int)config.Timeout.TotalMilliseconds)) + if (!perfCollectProcess.WaitForExit((int) config.Timeout.TotalMilliseconds)) { logger.WriteLineError($"The perfcollect script did not stop in {config.Timeout.TotalSeconds}s. It's going to be force killed now."); logger.WriteLineInfo("You can create PerfCollectProfiler providing PerfCollectProfilerConfig with custom timeout value."); diff --git a/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs b/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs index fccff80e5c..2cd8c68018 100644 --- a/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs +++ b/src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs @@ -26,10 +26,10 @@ public void OnSample(ulong instructionPointer) { checked // if we ever overflow ulong we need to throw! { - Count += (ulong)Interval; + Count += (ulong) Interval; PerInstructionPointer.TryGetValue(instructionPointer, out ulong currentValue); - PerInstructionPointer[instructionPointer] = currentValue + (ulong)Interval; + PerInstructionPointer[instructionPointer] = currentValue + (ulong) Interval; } } } diff --git a/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs b/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs index e1e47c1a3e..f965b97897 100644 --- a/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs +++ b/src/BenchmarkDotNet/Diagnosers/SnapshotProfilerBase.cs @@ -201,7 +201,7 @@ protected class Progress(ILogger logger, string title) : IProgress public void Report(double value) { - int progress = (int)Math.Floor(value); + int progress = (int) Math.Floor(value); bool needToReport = stopwatch == null || (stopwatch != null && stopwatch?.Elapsed > ReportInterval) || progress == 100; diff --git a/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs b/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs index c8b9215c12..4bc56c98ad 100644 --- a/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs +++ b/src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs @@ -165,7 +165,7 @@ private static Func CreateGetterDelegate(Type type, string propertyName) // we create delegate to avoid boxing, IMPORTANT! return property != null - ? (Func)property.GetGetMethod()!.CreateDelegate(typeof(Func)) + ? (Func) property.GetGetMethod()!.CreateDelegate(typeof(Func)) : () => 0; } #endif diff --git a/src/BenchmarkDotNet/Disassemblers/Arm64Disassembler.cs b/src/BenchmarkDotNet/Disassemblers/Arm64Disassembler.cs index 42a543798e..b619389780 100644 --- a/src/BenchmarkDotNet/Disassemblers/Arm64Disassembler.cs +++ b/src/BenchmarkDotNet/Disassemblers/Arm64Disassembler.cs @@ -21,14 +21,14 @@ protected override IEnumerable Decode(byte[] code, ulong startAddress, Stat Arm64RegisterValueAccumulator accumulator = new(); accumulator.Init(state.Runtime); - Arm64Instruction[] instructions = disassembler.Disassemble(code, (long)startAddress); + Arm64Instruction[] instructions = disassembler.Disassemble(code, (long) startAddress); foreach (Arm64Instruction instruction in instructions) { bool isIndirect = false; bool isPrestubMD = false; ulong address = 0; - if (TryGetReferencedAddress(instruction, accumulator, (uint)state.Runtime.DataTarget.DataReader.PointerSize, out address, out isIndirect)) + if (TryGetReferencedAddress(instruction, accumulator, (uint) state.Runtime.DataTarget.DataReader.PointerSize, out address, out isIndirect)) { if (isIndirect && state.RuntimeVersion.Major >= 7) { @@ -42,7 +42,7 @@ protected override IEnumerable Decode(byte[] code, ulong startAddress, Stat yield return new Arm64Asm() { - InstructionPointer = (ulong)instruction.Address, + InstructionPointer = (ulong) instruction.Address, InstructionLength = instruction.Bytes.Length, Instruction = instruction, ReferencedAddress = (address > ushort.MaxValue) ? address : null, @@ -76,7 +76,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && IsLdrLiteral64(instr1, out int rt1, out int off1) && rt1 == 12 && instr2 == 0xD61F0140u) { - ulong mdSlot = unchecked(parseBase + 4 + (ulong)(long)off1); + ulong mdSlot = unchecked(parseBase + 4 + (ulong) (long) off1); if (reader.ReadPointer(mdSlot, out ulong md) && IsValidAddress(md)) { address = md; @@ -91,7 +91,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && instr1 == 0xD61F0160u && IsLdrLiteral64(instr2, out int rtB, out int off2) && rtB == 12) { - ulong mdSlot = unchecked(parseBase + 8 + (ulong)(long)off2); + ulong mdSlot = unchecked(parseBase + 8 + (ulong) (long) off2); if (reader.ReadPointer(mdSlot, out ulong md) && IsValidAddress(md)) { address = md; @@ -109,7 +109,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && IsLdrLiteral64(instr1, out int rtF1, out int _) && rtF1 == 11 && instr2 == 0xD61F0160u) { - ulong mdSlot = unchecked(parseBase + (ulong)(long)offF0); + ulong mdSlot = unchecked(parseBase + (ulong) (long) offF0); if (reader.ReadPointer(mdSlot, out ulong md) && IsValidAddress(md)) { address = md; @@ -126,7 +126,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && instr1 == 0x7940012Au && instr2 == 0x7100054Au) { - ulong countSlot = unchecked(parseBase + (ulong)(long)offCount); + ulong countSlot = unchecked(parseBase + (ulong) (long) offCount); if (reader.ReadPointer(countSlot + 8, out ulong target) && IsValidAddress(target)) { address = target; @@ -173,10 +173,10 @@ private static bool TryReadStubHead(IDataReader reader, ulong address, out ulong } private static uint ReadInstr(byte[] buffer, int offset) - => (uint)buffer[offset] - | ((uint)buffer[offset + 1] << 8) - | ((uint)buffer[offset + 2] << 16) - | ((uint)buffer[offset + 3] << 24); + => (uint) buffer[offset] + | ((uint) buffer[offset + 1] << 8) + | ((uint) buffer[offset + 2] << 16) + | ((uint) buffer[offset + 3] << 24); // LDR (literal), 64-bit form. Encoding: bits[31:24]=0x58, bits[23:5]=imm19 (signed, // word-scaled offset relative to the LDR's own PC), bits[4:0]=Xt. Returns the destination @@ -187,11 +187,11 @@ private static bool IsLdrLiteral64(uint instr, out int rt, out int offsetBytes) offsetBytes = 0; if ((instr & 0xFF000000u) != 0x58000000u) return false; - rt = (int)(instr & 0x1Fu); - int imm19 = (int)((instr >> 5) & 0x7FFFFu); + rt = (int) (instr & 0x1Fu); + int imm19 = (int) ((instr >> 5) & 0x7FFFFu); // Sign-extend 19-bit imm to 32-bit. if ((imm19 & 0x40000) != 0) - imm19 |= unchecked((int)0xFFF80000u); + imm19 |= unchecked((int) 0xFFF80000u); offsetBytes = imm19 * 4; return true; } @@ -201,7 +201,7 @@ private static bool TryGetReferencedAddress(Arm64Instruction instruction, Arm64R if ((instruction.Id == Arm64InstructionId.ARM64_INS_BR || instruction.Id == Arm64InstructionId.ARM64_INS_BLR) && instruction.Details.Operands[0].Register.Id == accumulator.RegisterId && accumulator.HasValue) { // Branch via register where we have extracted the value of the register by parsing the disassembly - referencedAddress = (ulong)accumulator.Value; + referencedAddress = (ulong) accumulator.Value; isReferencedAddressIndirect = true; return true; } @@ -212,7 +212,7 @@ private static bool TryGetReferencedAddress(Arm64Instruction instruction, Arm64R { if (instruction.Details.Operands[i].Type == Arm64OperandType.Immediate) { - referencedAddress = (ulong)instruction.Details.Operands[i].Immediate; + referencedAddress = (ulong) instruction.Details.Operands[i].Immediate; isReferencedAddressIndirect = false; return true; } @@ -257,10 +257,10 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out { uint imm26 = firstInstr & 0x03FFFFFFu; // Sign-extend the 26-bit immediate to 32 bits, then multiply by 4 (instructions are 4-byte aligned). - int offset = (int)(imm26 & 0x02000000u) != 0 - ? unchecked((int)(imm26 | 0xFC000000u)) << 2 - : (int)imm26 << 2; - target = unchecked(address + (ulong)(long)offset); + int offset = (int) (imm26 & 0x02000000u) != 0 + ? unchecked((int) (imm26 | 0xFC000000u)) << 2 + : (int) imm26 << 2; + target = unchecked(address + (ulong) (long) offset); return IsValidAddress(target); } @@ -272,7 +272,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out && IsLdrLiteral64(instr1, out int rt1, out int _) && rt1 == 12 && instr2 == 0xD61F0140u) { - ulong targetSlot = unchecked(parseBase + (ulong)(long)off0); + ulong targetSlot = unchecked(parseBase + (ulong) (long) off0); if (dataReader.ReadPointer(targetSlot, out target) && IsValidAddress(target)) return true; target = 0; @@ -284,7 +284,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out && instr1 == 0xD61F0160u && IsLdrLiteral64(instr2, out int rtB, out int _) && rtB == 12) { - ulong targetSlot = unchecked(parseBase + (ulong)(long)offA); + ulong targetSlot = unchecked(parseBase + (ulong) (long) offA); if (dataReader.ReadPointer(targetSlot, out target) && IsValidAddress(target)) return true; target = 0; @@ -297,7 +297,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out && instr1 == 0x7940012Au && instr2 == 0x7100054Au) { - ulong countSlot = unchecked(parseBase + (ulong)(long)offCount); + ulong countSlot = unchecked(parseBase + (ulong) (long) offCount); if (dataReader.ReadPointer(countSlot + 8, out target) && IsValidAddress(target)) return true; target = 0; diff --git a/src/BenchmarkDotNet/Disassemblers/Arm64RegisterValueAccumulator.cs b/src/BenchmarkDotNet/Disassemblers/Arm64RegisterValueAccumulator.cs index debc211177..2fc4e23ce4 100644 --- a/src/BenchmarkDotNet/Disassemblers/Arm64RegisterValueAccumulator.cs +++ b/src/BenchmarkDotNet/Disassemblers/Arm64RegisterValueAccumulator.cs @@ -88,7 +88,7 @@ public void Feed(Arm64Instruction instruction) details.Operands[1].Memory.Index == null) // And there is no extra index register { // Simulate the LDR instruction. - long newValue = (long)_runtime.DataTarget.DataReader.ReadPointer((ulong)_value); + long newValue = (long) _runtime.DataTarget.DataReader.ReadPointer((ulong) _value); _value = newValue; if (_value == 0) { diff --git a/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs b/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs index dac869f3d3..2092192a89 100644 --- a/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs +++ b/src/BenchmarkDotNet/Disassemblers/ClrMdDisassembler.cs @@ -20,7 +20,7 @@ private static ulong GetMinValidAddress() if (OsDetector.IsWindows()) return ushort.MaxValue + 1; if (OsDetector.IsLinux()) - return (ulong)Environment.SystemPageSize; + return (ulong) Environment.SystemPageSize; if (OsDetector.IsMacOS()) return RuntimeInformation.GetCurrentPlatform() switch { @@ -88,7 +88,7 @@ internal DisassemblyResult AttachAndDisassemble(ClrMdArgs args) { // A type handle is the type's method table, so it cannot resolve to a same-named type of another module. var typeWithBenchmark = args.TypeHandle != IntPtr.Zero - ? state.Runtime.GetTypeByMethodTable((ulong)args.TypeHandle.ToInt64()) + ? state.Runtime.GetTypeByMethodTable((ulong) args.TypeHandle.ToInt64()) ?? throw new InvalidOperationException($"No type has the method table {args.TypeHandle.ToInt64():X} ({args.TypeName}).") : state.Runtime.EnumerateModules().Select(module => module.GetTypeByName(args.TypeName)).WhereNotNull().First(); @@ -114,7 +114,7 @@ internal DisassemblyResult AttachAndDisassemble(ClrMdArgs args) { Methods = filteredMethods, AddressToNameMapping = state.AddressToNameMapping, - PointerSize = (uint)IntPtr.Size + PointerSize = (uint) IntPtr.Size }; } @@ -221,14 +221,14 @@ private DisassembledMethod DisassembleMethod(MethodInfo methodInfo, State state, private IEnumerable Decode(ILToNativeMap map, State state, int depth, IClrMethod currentMethod, DisassemblySyntax syntax) { ulong startAddress = map.StartAddress; - uint size = (uint)(map.EndAddress - map.StartAddress); + uint size = (uint) (map.EndAddress - map.StartAddress); byte[] code = new byte[size]; int totalBytesRead = 0; do { - int bytesRead = state.Runtime.DataTarget.DataReader.Read(startAddress + (ulong)totalBytesRead, new Span(code, totalBytesRead, (int)size - totalBytesRead)); + int bytesRead = state.Runtime.DataTarget.DataReader.Read(startAddress + (ulong) totalBytesRead, new Span(code, totalBytesRead, (int) size - totalBytesRead)); if (bytesRead <= 0) { throw new EndOfStreamException($"Tried to read {size} bytes for {currentMethod.Signature}, got only {totalBytesRead}"); @@ -281,7 +281,7 @@ protected void TryTranslateAddressToName(ulong address, bool isAddressPrecodeMD, } var method = runtime.GetMethodByInstructionPointer(address); - if (method is null && (address & ((uint)runtime.DataTarget.DataReader.PointerSize - 1)) == 0 + if (method is null && (address & ((uint) runtime.DataTarget.DataReader.PointerSize - 1)) == 0 && runtime.DataTarget.DataReader.ReadPointer(address, out ulong newAddress) && IsValidAddress(newAddress)) { method = runtime.GetMethodByInstructionPointer(newAddress); diff --git a/src/BenchmarkDotNet/Disassemblers/DataContracts.cs b/src/BenchmarkDotNet/Disassemblers/DataContracts.cs index 33d393ed1a..9915725abf 100644 --- a/src/BenchmarkDotNet/Disassemblers/DataContracts.cs +++ b/src/BenchmarkDotNet/Disassemblers/DataContracts.cs @@ -241,7 +241,7 @@ public bool Equals(IClrMethod? x, IClrMethod? y) return x.NativeCode == y.NativeCode; } - public int GetHashCode(IClrMethod obj) => (int)obj.NativeCode; + public int GetHashCode(IClrMethod obj) => (int) obj.NativeCode; } } diff --git a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs index 3bc445fd79..3462c21a92 100644 --- a/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs +++ b/src/BenchmarkDotNet/Disassemblers/Exporters/GithubMarkdownDisassemblyExporter.cs @@ -61,7 +61,7 @@ internal static async ValueTask ExportAsync(CancelableStreamWriter writer, Disas { checked { - totalSizeInBytes += (uint)asm.InstructionLength; + totalSizeInBytes += (uint) asm.InstructionLength; } await writer.WriteLineAsync($" {element.TextRepresentation}", cancellationToken).ConfigureAwait(false); diff --git a/src/BenchmarkDotNet/Disassemblers/IntelDisassembler.cs b/src/BenchmarkDotNet/Disassemblers/IntelDisassembler.cs index ecf513b9cf..db98618a68 100644 --- a/src/BenchmarkDotNet/Disassemblers/IntelDisassembler.cs +++ b/src/BenchmarkDotNet/Disassemblers/IntelDisassembler.cs @@ -29,7 +29,7 @@ protected override IEnumerable Decode(byte[] code, ulong startAddress, Stat bool isPrestubMD = false; ulong address = 0; - bool haveAddress = TryGetReferencedAddress(instruction, (uint)state.Runtime.DataTarget.DataReader.PointerSize, out address); + bool haveAddress = TryGetReferencedAddress(instruction, (uint) state.Runtime.DataTarget.DataReader.PointerSize, out address); if (!haveAddress && isIndirect && TryResolveIndirectThroughTrackedReg(instruction, trackedRegs, out address)) { @@ -96,7 +96,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && buffer[13] == 0xFF && buffer[14] == 0x25) { int dispMD = BitConverter.ToInt32(buffer, 9); - ulong mdSlot = unchecked(address + 13 + (ulong)(long)dispMD); + ulong mdSlot = unchecked(address + 13 + (ulong) (long) dispMD); if (reader.ReadPointer(mdSlot, out ulong md) && IsValidAddress(md)) { address = md; @@ -113,7 +113,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && buffer[7] == 0xFF && buffer[8] == 0x25) { int dispMD = BitConverter.ToInt32(buffer, 3); - ulong mdSlot = unchecked(address + 7 + (ulong)(long)dispMD); + ulong mdSlot = unchecked(address + 7 + (ulong) (long) dispMD); if (reader.ReadPointer(mdSlot, out ulong md) && IsValidAddress(md)) { address = md; @@ -135,7 +135,7 @@ private static bool TryResolvePrecode(IDataReader reader, ref ulong address, out && buffer[7] == 0x66 && buffer[8] == 0xFF && buffer[9] == 0x08) { int dispCount = BitConverter.ToInt32(buffer, 3); - ulong countSlot = unchecked(address + 7 + (ulong)(long)dispCount); + ulong countSlot = unchecked(address + 7 + (ulong) (long) dispCount); if (reader.ReadPointer(countSlot + 8, out ulong target) && IsValidAddress(target)) { address = target; @@ -252,15 +252,15 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out if (read >= 5 && buffer[0] == 0xE9) { int rel = BitConverter.ToInt32(buffer, 1); - target = unchecked(address + 5 + (ulong)(long)rel); + target = unchecked(address + 5 + (ulong) (long) rel); return IsValidAddress(target); } // EB rel8 — JMP short (target = next-instr + sign_extended(rel8)) if (buffer[0] == 0xEB) { - sbyte rel = (sbyte)buffer[1]; - target = unchecked(address + 2 + (ulong)(long)rel); + sbyte rel = (sbyte) buffer[1]; + target = unchecked(address + 2 + (ulong) (long) rel); return IsValidAddress(target); } @@ -269,7 +269,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out if (read >= 6 && buffer[0] == 0xFF && buffer[1] == 0x25) { int disp = BitConverter.ToInt32(buffer, 2); - ulong slot = unchecked(address + 6 + (ulong)(long)disp); + ulong slot = unchecked(address + 6 + (ulong) (long) disp); if (dataReader.ReadPointer(slot, out ulong slotTarget) && IsValidAddress(slotTarget)) { target = slotTarget; @@ -292,7 +292,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out && buffer[7] == 0x66 && buffer[8] == 0xFF && buffer[9] == 0x08) { int disp = BitConverter.ToInt32(buffer, 3); - ulong countSlot = unchecked(address + 7 + (ulong)(long)disp); + ulong countSlot = unchecked(address + 7 + (ulong) (long) disp); if (dataReader.ReadPointer(countSlot + 8, out target) && IsValidAddress(target)) return true; target = 0; @@ -305,7 +305,7 @@ protected override bool TryFollowJumpTrampoline(State state, ulong address, out && buffer[7] == 0xFF && buffer[8] == 0x25) { int disp = BitConverter.ToInt32(buffer, 9); - ulong slot = unchecked(address + 13 + (ulong)(long)disp); + ulong slot = unchecked(address + 13 + (ulong) (long) disp); if (dataReader.ReadPointer(slot, out target) && IsValidAddress(target)) return true; target = 0; diff --git a/src/BenchmarkDotNet/Disassemblers/SourceCodeProvider.cs b/src/BenchmarkDotNet/Disassemblers/SourceCodeProvider.cs index a2e568840a..74bde63101 100644 --- a/src/BenchmarkDotNet/Disassemblers/SourceCodeProvider.cs +++ b/src/BenchmarkDotNet/Disassemblers/SourceCodeProvider.cs @@ -112,7 +112,7 @@ private static string GetSmartPointer(string sourceLine, int? start, int? end) if (reader == null) return null; - return reader.SourceLocationForManagedCode((uint)method.MetadataToken, ilOffset); + return reader.SourceLocationForManagedCode((uint) method.MetadataToken, ilOffset); } private ManagedSymbolModule? GetReaderForMethod(IClrMethod? method) diff --git a/src/BenchmarkDotNet/Engines/Consumer.cs b/src/BenchmarkDotNet/Engines/Consumer.cs index 82f2ba29b0..d38e6c1a14 100644 --- a/src/BenchmarkDotNet/Engines/Consumer.cs +++ b/src/BenchmarkDotNet/Engines/Consumer.cs @@ -86,7 +86,7 @@ public class Consumer [MethodImpl(MethodImplOptions.AggressiveInlining)] [PublicAPI] - public void Consume(string? stringValue) => Consume((object?)stringValue); + public void Consume(string? stringValue) => Consume((object?) stringValue); [MethodImpl(MethodImplOptions.AggressiveInlining)] [PublicAPI] @@ -101,13 +101,13 @@ public void Consume(object? objectValue) [MethodImpl(MethodImplOptions.AggressiveInlining)] [PublicAPI] public void Consume(T objectValue) where T : class // class constraint prevents from boxing structs - => Consume((object)objectValue); + => Consume((object) objectValue); [MethodImpl(MethodImplOptions.AggressiveInlining)] - public unsafe void Consume(T* ptrValue) where T : unmanaged => ptrHolder = (IntPtr)ptrValue; + public unsafe void Consume(T* ptrValue) where T : unmanaged => ptrHolder = (IntPtr) ptrValue; [MethodImpl(MethodImplOptions.AggressiveInlining)] - public unsafe void Consume(void* ptrValue) => ptrHolder = (IntPtr)ptrValue; + public unsafe void Consume(void* ptrValue) => ptrHolder = (IntPtr) ptrValue; [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Consume(in T value) @@ -118,33 +118,33 @@ public void Consume(in T value) #pragma warning disable CS8600 // Converting null literal or possible null value to non-nullable type. #pragma warning disable CS8605 // Unboxing a possibly null value. if (typeof(T) == typeof(byte)) - byteHolder = (byte)(object)value; + byteHolder = (byte) (object) value; else if (typeof(T) == typeof(sbyte)) - sbyteHolder = (sbyte)(object)value; + sbyteHolder = (sbyte) (object) value; else if (typeof(T) == typeof(short)) - shortHolder = (short)(object)value; + shortHolder = (short) (object) value; else if (typeof(T) == typeof(ushort)) - ushortHolder = (ushort)(object)value; + ushortHolder = (ushort) (object) value; else if (typeof(T) == typeof(int)) - intHolder = (int)(object)value; + intHolder = (int) (object) value; else if (typeof(T) == typeof(uint)) - uintHolder = (uint)(object)value; + uintHolder = (uint) (object) value; else if (typeof(T) == typeof(bool)) - boolHolder = (bool)(object)value; + boolHolder = (bool) (object) value; else if (typeof(T) == typeof(char)) - charHolder = (char)(object)value; + charHolder = (char) (object) value; else if (typeof(T) == typeof(float)) - floatHolder = (float)(object)value; + floatHolder = (float) (object) value; else if (typeof(T) == typeof(double)) - Volatile.Write(ref doubleHolder, (double)(object)value); + Volatile.Write(ref doubleHolder, (double) (object) value); else if (typeof(T) == typeof(long)) - Volatile.Write(ref longHolder, (long)(object)value); + Volatile.Write(ref longHolder, (long) (object) value); else if (typeof(T) == typeof(ulong)) - Volatile.Write(ref ulongHolder, (ulong)(object)value); + Volatile.Write(ref ulongHolder, (ulong) (object) value); #pragma warning restore CS8600 #pragma warning restore CS8605 else if (default(T) == null && !typeof(T).IsValueType) - Consume((object?)value); + Consume((object?) value); else DeadCodeEliminationHelper.KeepAliveWithoutBoxing(in value); // non-primitive and nullable value types } diff --git a/src/BenchmarkDotNet/Engines/EngineEventSource.cs b/src/BenchmarkDotNet/Engines/EngineEventSource.cs index 5cafeadf1b..2fbaa298d5 100644 --- a/src/BenchmarkDotNet/Engines/EngineEventSource.cs +++ b/src/BenchmarkDotNet/Engines/EngineEventSource.cs @@ -27,14 +27,14 @@ public class EngineEventSource : EventSource public class Tasks { - [PublicAPI] public const EventTask Benchmark = (EventTask)1; - [PublicAPI] public const EventTask OverheadJitting = (EventTask)2; - [PublicAPI] public const EventTask WorkloadJitting = (EventTask)3; - [PublicAPI] public const EventTask WorkloadPilot = (EventTask)4; - [PublicAPI] public const EventTask OverheadWarmup = (EventTask)5; - [PublicAPI] public const EventTask OverheadActual = (EventTask)6; - [PublicAPI] public const EventTask WorkloadWarmup = (EventTask)7; - [PublicAPI] public const EventTask WorkloadActual = (EventTask)8; + [PublicAPI] public const EventTask Benchmark = (EventTask) 1; + [PublicAPI] public const EventTask OverheadJitting = (EventTask) 2; + [PublicAPI] public const EventTask WorkloadJitting = (EventTask) 3; + [PublicAPI] public const EventTask WorkloadPilot = (EventTask) 4; + [PublicAPI] public const EventTask OverheadWarmup = (EventTask) 5; + [PublicAPI] public const EventTask OverheadActual = (EventTask) 6; + [PublicAPI] public const EventTask WorkloadWarmup = (EventTask) 7; + [PublicAPI] public const EventTask WorkloadActual = (EventTask) 8; } internal static readonly EngineEventSource Log = new EngineEventSource(); diff --git a/src/BenchmarkDotNet/Engines/EngineJitStage.cs b/src/BenchmarkDotNet/Engines/EngineJitStage.cs index 0bbba2d604..5ac339f7ef 100644 --- a/src/BenchmarkDotNet/Engines/EngineJitStage.cs +++ b/src/BenchmarkDotNet/Engines/EngineJitStage.cs @@ -122,11 +122,11 @@ private IEnumerator EnumerateIterations() TimeInterval iterationTime = parameters.TargetJob.ResolveValue(RunMode.IterationTimeCharacteristic, parameters.Resolver); long remainingCalls = JitInfo.TieredCallCountThreshold; if (jitTieringMode == JitTieringMode.Auto - && iterationTime.Nanoseconds / (lastMeasurement.Nanoseconds / (double)userInvokeCount) < 1.5) + && iterationTime.Nanoseconds / (lastMeasurement.Nanoseconds / (double) userInvokeCount) < 1.5) { ++iterationIndex; yield return GetWorkloadIterationData(userInvokeCount); - if (iterationTime.Nanoseconds / (lastMeasurement.Nanoseconds / (double)userInvokeCount) < 1.5) + if (iterationTime.Nanoseconds / (lastMeasurement.Nanoseconds / (double) userInvokeCount) < 1.5) { didStopEarly = true; yield break; diff --git a/src/BenchmarkDotNet/Engines/EnginePilotStage.cs b/src/BenchmarkDotNet/Engines/EnginePilotStage.cs index 7bad67c74d..d23caefe34 100644 --- a/src/BenchmarkDotNet/Engines/EnginePilotStage.cs +++ b/src/BenchmarkDotNet/Engines/EnginePilotStage.cs @@ -69,7 +69,7 @@ internal void CorrectValues(Measurement measurement) return; } - int roundedUpTimesPerIteration = (int)Math.Ceiling(timesPerIteration); + int roundedUpTimesPerIteration = (int) Math.Ceiling(timesPerIteration); // If we run it unrollFactor times per iteration, it's going to take longer than IterationTime. if (roundedUpTimesPerIteration < unrollFactor) { @@ -147,7 +147,7 @@ internal override bool GetShouldRunIteration(List measurements, out var measurement = measurements[measurements.Count - 1]; double actualIterationTime = measurement.Nanoseconds; - long newInvokeCount = Autocorrect(Math.Max(minInvokeCount, (long)Math.Round(invokeCount * targetIterationTime / actualIterationTime))); + long newInvokeCount = Autocorrect(Math.Max(minInvokeCount, (long) Math.Round(invokeCount * targetIterationTime / actualIterationTime))); if (newInvokeCount < invokeCount) { diff --git a/src/BenchmarkDotNet/Engines/GcStats.cs b/src/BenchmarkDotNet/Engines/GcStats.cs index e1fef3b0e0..65dfbf3807 100644 --- a/src/BenchmarkDotNet/Engines/GcStats.cs +++ b/src/BenchmarkDotNet/Engines/GcStats.cs @@ -49,8 +49,8 @@ private GcStats(int gen0Collections, int gen1Collections, int gen2Collections, l long? allocatedBytes = GetTotalAllocatedBytes(excludeAllocationQuantumSideEffects); return allocatedBytes == null ? null : allocatedBytes == 0 ? 0 - : (long)Math.Round( // let's round it to reduce the side effects of Allocation quantum - (double)allocatedBytes.Value / TotalOperations, + : (long) Math.Round( // let's round it to reduce the side effects of Allocation quantum + (double) allocatedBytes.Value / TotalOperations, MidpointRounding.ToEven); } @@ -256,7 +256,7 @@ private static class GcHelpers return null; // we create delegate to avoid boxing, IMPORTANT! - var del = (Func)method.CreateDelegate(typeof(Func)); + var del = (Func) method.CreateDelegate(typeof(Func)); // verify the api works return del.Invoke(true) >= 0 ? del : null; @@ -278,7 +278,7 @@ private static class GcHelpers return null; // we create delegate to avoid boxing, IMPORTANT! - var del = (Func)method.CreateDelegate(typeof(Func)); + var del = (Func) method.CreateDelegate(typeof(Func)); // verify the api works return del.Invoke() >= 0 ? del : null; diff --git a/src/BenchmarkDotNet/Engines/JitListener.cs b/src/BenchmarkDotNet/Engines/JitListener.cs index 32b9ecf3da..08520eee5d 100644 --- a/src/BenchmarkDotNet/Engines/JitListener.cs +++ b/src/BenchmarkDotNet/Engines/JitListener.cs @@ -29,10 +29,10 @@ namespace BenchmarkDotNet.Engines; internal sealed class JitListener : EventListener { private const string RuntimeEventSourceName = "Microsoft-Windows-DotNETRuntime"; - private const EventKeywords JitKeyword = (EventKeywords)0x10; + private const EventKeywords JitKeyword = (EventKeywords) 0x10; // The "Compilation" keyword carries the TieredCompilation/Pause|Resume and BackgroundJit Start/Stop events. Low // volume (a handful per delay/batch cycle), so enabling it adds no meaningful cost. - private const EventKeywords CompilationKeyword = (EventKeywords)0x1000000000; + private const EventKeywords CompilationKeyword = (EventKeywords) 0x1000000000; private const string TieredCompilationResumeEvent = "TieredCompilationResume"; private const string TieredCompilationPauseEvent = "TieredCompilationPause"; // The background tiering worker brackets each batch with these: Start when it begins draining its queue, Stop when @@ -512,7 +512,7 @@ internal static ulong GetModuleId(Module module) { return 0; } - return (ulong)((IntPtr)field.GetValue(module)!).ToInt64(); + return (ulong) ((IntPtr) field.GetValue(module)!).ToInt64(); } catch { @@ -563,7 +563,7 @@ internal WatchedMethod(MethodInfo method) } else { - methodId = (ulong)method.MethodHandle.Value.ToInt64(); + methodId = (ulong) method.MethodHandle.Value.ToInt64(); } } diff --git a/src/BenchmarkDotNet/Engines/TcpListener.cs b/src/BenchmarkDotNet/Engines/TcpListener.cs index 563421668c..434a265db0 100644 --- a/src/BenchmarkDotNet/Engines/TcpListener.cs +++ b/src/BenchmarkDotNet/Engines/TcpListener.cs @@ -15,7 +15,7 @@ public override void Dispose() internal int StartAndGetPort() { listener.Start(1); - return ((IPEndPoint)listener.LocalEndpoint).Port; + return ((IPEndPoint) listener.LocalEndpoint).Port; } internal override async ValueTask AcceptConnection(CancellationToken cancellationToken) diff --git a/src/BenchmarkDotNet/Engines/WebSocketListener.cs b/src/BenchmarkDotNet/Engines/WebSocketListener.cs index 2cef4b4e38..00172e37c0 100644 --- a/src/BenchmarkDotNet/Engines/WebSocketListener.cs +++ b/src/BenchmarkDotNet/Engines/WebSocketListener.cs @@ -22,7 +22,7 @@ public override void Dispose() internal async ValueTask StartAndGetPortAsync() { await listener.StartAsync().ConfigureAwait(false); - return ((IPEndPoint)listener.LocalEndpoints.First()).Port; + return ((IPEndPoint) listener.LocalEndpoints.First()).Port; } internal override async ValueTask AcceptConnection(CancellationToken cancellationToken) diff --git a/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs b/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs index b70d1d83f3..abb894d213 100644 --- a/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs +++ b/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs @@ -93,7 +93,7 @@ public static class SystemMemory [SupportedOSPlatform("windows6.0.6000")] private static PhysicalMemoryInfo? GetWindowsMemory() { - var memStatus = new MEMORYSTATUSEX { dwLength = (uint)Marshal.SizeOf() }; + var memStatus = new MEMORYSTATUSEX { dwLength = (uint) Marshal.SizeOf() }; if (PInvoke.GlobalMemoryStatusEx(ref memStatus)) { var (speed, type) = GetWindowsMemoryDetails(); diff --git a/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs b/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs index a7c9023646..fb751cf150 100644 --- a/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs +++ b/src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs @@ -54,7 +54,7 @@ private CoreRuntime(Version version, string? platform = null) // otherwise deduplicate against a plain net8.0 one. Compared as given, like everywhere else the platform is // used: "net8.0-Windows" and "net8.0-windows" are two runtimes, and deduplicating them is the caller's call. public override bool Equals(object? obj) - => base.Equals(obj) && platform == ((CoreRuntime)obj!).platform; + => base.Equals(obj) && platform == ((CoreRuntime) obj!).platform; public override int GetHashCode() => HashCode.Combine(base.GetHashCode(), platform); diff --git a/src/BenchmarkDotNet/Exporters/FullNameProvider.cs b/src/BenchmarkDotNet/Exporters/FullNameProvider.cs index c8d32a20e0..d5b9305f9d 100644 --- a/src/BenchmarkDotNet/Exporters/FullNameProvider.cs +++ b/src/BenchmarkDotNet/Exporters/FullNameProvider.cs @@ -147,7 +147,7 @@ private static string GetArgument(object? argumentValue, Type? argumentType) } if (argumentType != null && argumentType.IsArray) - return GetArray((IEnumerable)argumentValue); + return GetArray((IEnumerable) argumentValue); return argumentValue.ToString()!; } diff --git a/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs b/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs index ee63c9754d..b90cb46905 100644 --- a/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs +++ b/src/BenchmarkDotNet/Exporters/InstructionPointerExporter.cs @@ -72,7 +72,7 @@ private async ValueTask Export(Summary summary, BenchmarkCase benchmarkCase, Dis IEnumerable Range(Asm asm) { // most probably asm.StartAddress would be enough, but I don't want to miss any edge case - for (ulong instructionPointer = asm.InstructionPointer; instructionPointer < asm.InstructionPointer + (ulong)asm.InstructionLength; instructionPointer++) + for (ulong instructionPointer = asm.InstructionPointer; instructionPointer < asm.InstructionPointer + (ulong) asm.InstructionLength; instructionPointer++) yield return instructionPointer; } @@ -122,7 +122,7 @@ private static IReadOnlyList SumHardwareCountersPerMethod(Di foreach (var hardwareCounter in pmcStats.Counters) { // most probably asm.StartAddress would be enough, but I don't want to miss any edge case - for (ulong instructionPointer = asm.InstructionPointer; instructionPointer < asm.InstructionPointer + (ulong)asm.InstructionLength; instructionPointer++) + for (ulong instructionPointer = asm.InstructionPointer; instructionPointer < asm.InstructionPointer + (ulong) asm.InstructionLength; instructionPointer++) if (hardwareCounter.Value.PerInstructionPointer.TryGetValue(instructionPointer, out ulong value)) totalsPerCounter[hardwareCounter.Key] = totalsPerCounter[hardwareCounter.Key] + value; } @@ -214,7 +214,7 @@ private async ValueTask ExportAsync( ulong forRange = instruction.SumPerCounter[hardwareCounter]; await writer.WriteAsync(forRange != 0 - ? $"{(double)forRange / totalWithoutNoise:P}" + ? $"{(double) forRange / totalWithoutNoise:P}" : "-", cancellationToken).ConfigureAwait(false); } @@ -237,7 +237,7 @@ await writer.WriteAsync(forRange != 0 ulong forMethod = method.SumPerCounter[hardwareCounter]; await writer.WriteAsync(forMethod != 0 - ? $"{(double)forMethod / totalWithoutNoise:P}" + ? $"{(double) forMethod / totalWithoutNoise:P}" : "-", cancellationToken).ConfigureAwait(false); } await writer.WriteLineAsync("", cancellationToken).ConfigureAwait(false); diff --git a/src/BenchmarkDotNet/Exporters/RPlotExporter.cs b/src/BenchmarkDotNet/Exporters/RPlotExporter.cs index c4765cf8db..dd9297dff3 100644 --- a/src/BenchmarkDotNet/Exporters/RPlotExporter.cs +++ b/src/BenchmarkDotNet/Exporters/RPlotExporter.cs @@ -78,7 +78,7 @@ public async ValueTask ExportAsync(Summary summary, ILogger logger, Cancellation await streamWriter.WriteLineAsync(line, cancellationToken).ConfigureAwait(false); } - if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo("// The R script process did not quit on time, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Exporters/Xml/XmlSerializer.cs b/src/BenchmarkDotNet/Exporters/Xml/XmlSerializer.cs index 430a90004e..1be2bbba95 100644 --- a/src/BenchmarkDotNet/Exporters/Xml/XmlSerializer.cs +++ b/src/BenchmarkDotNet/Exporters/Xml/XmlSerializer.cs @@ -102,7 +102,7 @@ private void WriteComplexProperty(object? source, PropertyInfo propertyInfo) [SuppressMessage("ReSharper", "PossibleMultipleEnumeration")] private void WriteCollectionProperty(object source, PropertyInfo property) { - var collection = (IEnumerable?)property.GetValue(source); + var collection = (IEnumerable?) property.GetValue(source); if (collection == null || !IsCollectionWritable(collection)) return; diff --git a/src/BenchmarkDotNet/Extensions/MathExtensions.cs b/src/BenchmarkDotNet/Extensions/MathExtensions.cs index e7e1a34676..fcf54ca395 100644 --- a/src/BenchmarkDotNet/Extensions/MathExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/MathExtensions.cs @@ -2,6 +2,6 @@ namespace BenchmarkDotNet.Extensions; internal static class MathExtensions { - public static int RoundToInt(this double x) => (int)Math.Round(x); - public static long RoundToLong(this double x) => (long)Math.Round(x); + public static int RoundToInt(this double x) => (int) Math.Round(x); + public static long RoundToLong(this double x) => (long) Math.Round(x); } diff --git a/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs b/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs index 66b443089c..6064b521c7 100644 --- a/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/MethodInfoExtensions.cs @@ -11,13 +11,13 @@ internal static class MethodInfoExtensions public static T CreateDelegate(this MethodInfo methodInfo) where T : Delegate { - return (T)methodInfo.CreateDelegate(typeof(T)); + return (T) methodInfo.CreateDelegate(typeof(T)); } public static T CreateDelegate(this MethodInfo methodInfo, object? target) where T : Delegate { - return (T)methodInfo.CreateDelegate(typeof(T), target); + return (T) methodInfo.CreateDelegate(typeof(T), target); } } diff --git a/src/BenchmarkDotNet/Extensions/PathFeatures.cs b/src/BenchmarkDotNet/Extensions/PathFeatures.cs index c084f6756b..38c09a456d 100644 --- a/src/BenchmarkDotNet/Extensions/PathFeatures.cs +++ b/src/BenchmarkDotNet/Extensions/PathFeatures.cs @@ -62,7 +62,7 @@ private static bool HasLegacyIoBehavior(string propertyName) var p = t.GetProperty(propertyName, BindingFlags.Static | BindingFlags.Public); // If the switch actually exists use it, otherwise we predate the switch and are effectively on - return (bool)(p?.GetValue(null) ?? true); + return (bool) (p?.GetValue(null) ?? true); } private static bool RunningOnCoreLib diff --git a/src/BenchmarkDotNet/Extensions/Polyfills/EnumExtensions.cs b/src/BenchmarkDotNet/Extensions/Polyfills/EnumExtensions.cs index 14c25fd250..0188e5251a 100644 --- a/src/BenchmarkDotNet/Extensions/Polyfills/EnumExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/Polyfills/EnumExtensions.cs @@ -17,7 +17,7 @@ public static TEnum[] GetValues() public static TEnum Parse(string value) where TEnum : struct, Enum { - return (TEnum)Enum.Parse(typeof(TEnum), value); + return (TEnum) Enum.Parse(typeof(TEnum), value); } public static string[] GetNames() diff --git a/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs b/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs index 0460afb936..13de386adb 100644 --- a/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/ProcessExtensions.cs @@ -42,7 +42,7 @@ internal static string ToPresentation(this IntPtr processorAffinity, int process private static IntPtr FixAffinity(IntPtr processorAffinity) { // Max supported affinity without CPU groups is 64 - long cpuMask = Environment.ProcessorCount >= 64 ? unchecked((long)0xFFFF_FFFF_FFFF_FFFF) : (1L << Environment.ProcessorCount) - 1; + long cpuMask = Environment.ProcessorCount >= 64 ? unchecked((long) 0xFFFF_FFFF_FFFF_FFFF) : (1L << Environment.ProcessorCount) - 1; return RuntimeInformation.Is64BitPlatform() ? new IntPtr(processorAffinity.ToInt64() & cpuMask) @@ -84,7 +84,7 @@ public static bool TrySetAffinity( catch (Exception ex) { logger.WriteLineError( - $"// ! Failed to set up processor affinity 0x{(long)processorAffinity:X} for process {process}. Make sure you have the right permissions. Message: {ex.Message}"); + $"// ! Failed to set up processor affinity 0x{(long) processorAffinity:X} for process {process}. Make sure you have the right permissions. Message: {ex.Message}"); } return false; @@ -214,7 +214,7 @@ private static (int exitCode, string output) RunProcessAndReadOutput(string file { process.Start(); processOutputReader.BeginRead(); - process.WaitForExit((int)timeout.TotalMilliseconds); + process.WaitForExit((int) timeout.TotalMilliseconds); } return (process.HasExited ? process.ExitCode : -1, processOutputReader.GetOutputText()); } @@ -233,7 +233,7 @@ private static int RunProcessAndIgnoreOutput(string fileName, string arguments, using (var process = Process.Start(startInfo)!) { - if (!process.WaitForExit((int)timeout.TotalMilliseconds)) + if (!process.WaitForExit((int) timeout.TotalMilliseconds)) process.Kill(); return process.ExitCode; diff --git a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs index 8fca6d5f2f..9371b675b5 100644 --- a/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs @@ -499,7 +499,7 @@ internal static bool TryGetSourceElementType(this Type sourceReturnType, [NotNul // different members of the same name. A generic method definition is passed over rather than matched, so a // property of that name serves the name instead of an unusable method. internal static MemberInfo? FindSourceMember(this Type sourceType, string sourceName) - => (MemberInfo?)sourceType.GetAllMethods() + => (MemberInfo?) sourceType.GetAllMethods() .FirstOrDefault(method => method.Name == sourceName && method.IsPublic && !method.IsGenericMethodDefinition && method.GetParameters().All(parameter => parameter.IsOptional)) @@ -571,7 +571,7 @@ PropertyInfo property when property.GetIndexParameters().Length == 0 => property // The type a source member hands back, which is what the generated code infers the element type from. internal static Type GetSourceReturnType(this MemberInfo source) - => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo)source).ReturnType; + => source is PropertyInfo property ? property.GetMethod!.ReturnType : ((MethodInfo) source).ReturnType; internal static Attribute? GetAsyncMethodBuilderAttribute(this MemberInfo memberInfo) // AsyncMethodBuilderAttribute can come from any assembly, so we need to use reflection by name instead of searching for the exact type. diff --git a/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs b/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs index bb564331c8..4bb1cf00a9 100644 --- a/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs +++ b/src/BenchmarkDotNet/Extensions/StringAndTextExtensions.cs @@ -70,7 +70,7 @@ private static Dictionary BuildInvalidPathCharactersMappings() return invalidFileNameChars.ToDictionary( character => character.ToString(), - character => $"char{(short)character}"); + character => $"char{(short) character}"); } /// diff --git a/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs b/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs index 72b921a1d5..38eb0ac4cc 100644 --- a/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs +++ b/src/BenchmarkDotNet/Helpers/DefaultCultureInfo.cs @@ -8,7 +8,7 @@ internal static class DefaultCultureInfo static DefaultCultureInfo() { - Instance = (CultureInfo)CultureInfo.InvariantCulture.Clone(); + Instance = (CultureInfo) CultureInfo.InvariantCulture.Clone(); Instance.NumberFormat.NumberDecimalSeparator = "."; } } diff --git a/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs b/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs index bc5f588583..b1a517a159 100644 --- a/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs +++ b/src/BenchmarkDotNet/Helpers/DynamicAwaitHelper.cs @@ -17,7 +17,7 @@ internal static class DynamicAwaitHelper // Sources are always read through IAsyncEnumerable, pattern-based await foreach types are not supported. // A reference-type element needs no reflection at all: IAsyncEnumerable is covariant. => !elementType.IsValueType - ? (IAsyncEnumerable)asyncEnumerable + ? (IAsyncEnumerable) asyncEnumerable : EnumerateSourceAsyncCore(asyncEnumerable, ReflectionExtensions.GetAsyncEnumerableInterfaceInfo(elementType)); private static async IAsyncEnumerable EnumerateSourceAsyncCore(object asyncEnumerable, AsyncEnumerableInfo asyncEnumerableInfo, [EnumeratorCancellation] CancellationToken cancellationToken = default) @@ -27,14 +27,14 @@ internal static class DynamicAwaitHelper try { - while (await ((ValueTask)Unwrapped(() => asyncEnumerableInfo.MoveNextAsyncMethod.Invoke(enumerator, moveNextAsyncArgs))!).ConfigureAwait(false)) + while (await ((ValueTask) Unwrapped(() => asyncEnumerableInfo.MoveNextAsyncMethod.Invoke(enumerator, moveNextAsyncArgs))!).ConfigureAwait(false)) { yield return Unwrapped(() => asyncEnumerableInfo.CurrentProperty.GetValue(enumerator)); } } finally { - await ((IAsyncDisposable)enumerator).DisposeAsync().ConfigureAwait(false); + await ((IAsyncDisposable) enumerator).DisposeAsync().ConfigureAwait(false); } } @@ -75,7 +75,7 @@ internal static class DynamicAwaitHelper while (true) { var moveNextResult = Unwrapped(() => asyncEnumerableInfo.MoveNextAsyncMethod.Invoke(enumerator, moveNextAsyncArgs)); - bool hasMore = (bool)(await new DynamicAwaitable(moveNextAwaitable, moveNextResult!))!; + bool hasMore = (bool) (await new DynamicAwaitable(moveNextAwaitable, moveNextResult!))!; if (!hasMore) { break; diff --git a/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs b/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs index 8230f68211..60878376e1 100644 --- a/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs +++ b/src/BenchmarkDotNet/Helpers/FolderNameHelper.cs @@ -18,7 +18,7 @@ public static string ToFolderName(object? value) case string s: return Escape(new StringBuilder(s)); case char c: - return ((int)c).ToString(); // TODO: rewrite + return ((int) c).ToString(); // TODO: rewrite case float f: return f.ToString("F", CultureInfo.InvariantCulture).Replace(".", "-"); case double d: diff --git a/src/BenchmarkDotNet/Helpers/Hashing/MurmurHash.cs b/src/BenchmarkDotNet/Helpers/Hashing/MurmurHash.cs index 6c7defdc20..9509296372 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/MurmurHash.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/MurmurHash.cs @@ -42,18 +42,18 @@ private static uint MurmurHash32(uint hash, ReadOnlySpan span, bool toUppe } else if (ch <= 0x07FF) { - cur |= (ulong)((ch & 0x003F) | ((ch << 2) & 0x1F00) | 0xC080) << bits; + cur |= (ulong) ((ch & 0x003F) | ((ch << 2) & 0x1F00) | 0xC080) << bits; bits += 16; } else { - cur |= (ulong)((ch & 0x003F) | ((ch << 2) & 0x3F00) | ((ch << 4) & 0x0F0000) | 0xE08080) << bits; + cur |= (ulong) ((ch & 0x003F) | ((ch << 2) & 0x3F00) | ((ch << 4) & 0x0F0000) | 0xE08080) << bits; bits += 24; } if (bits >= 32) { - hash = MurmurRound(hash, (uint)cur); + hash = MurmurRound(hash, (uint) cur); cur = cur >> 32; bits -= 32; len += 4; @@ -62,12 +62,12 @@ private static uint MurmurHash32(uint hash, ReadOnlySpan span, bool toUppe if (bits > 0) { - hash = MurmurRound(hash, (uint)cur); + hash = MurmurRound(hash, (uint) cur); len += bits / 8; } // Encode the length. - hash = MurmurRound(hash, (uint)len); + hash = MurmurRound(hash, (uint) len); // Final mixing ritual for the hash. hash = MixHash(hash); diff --git a/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs b/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs index 4b803d90cb..349fe2db02 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/XxHash128.cs @@ -43,7 +43,7 @@ public XxHash128() /// Initializes a new instance of the class using the specified seed. public XxHash128(long seed) - => Initialize(ref _state, (ulong)seed); + => Initialize(ref _state, (ulong) seed); /// Initializes a new instance of the class using the state from another instance. private XxHash128(State state) @@ -125,7 +125,7 @@ public static UInt128 HashToUInt128(ReadOnlySpan source, long seed = 0) private static Hash128 HashToHash128(byte[] source, long seed = 0) { - uint length = (uint)source.Length; + uint length = (uint) source.Length; fixed (byte* sourcePtr = source) { return HashToHash128(sourcePtr, length, seed); @@ -136,22 +136,22 @@ private static Hash128 HashToHash128(byte* sourcePtr, uint length, long seed = 0 { if (length <= 16) { - return HashLength0To16(sourcePtr, length, (ulong)seed); + return HashLength0To16(sourcePtr, length, (ulong) seed); } if (length <= 128) { - return HashLength17To128(sourcePtr, length, (ulong)seed); + return HashLength17To128(sourcePtr, length, (ulong) seed); } #pragma warning disable IDE0046 // Convert to conditional expression if (length <= MidSizeMaxBytes) { - return HashLength129To240(sourcePtr, length, (ulong)seed); + return HashLength129To240(sourcePtr, length, (ulong) seed); } #pragma warning restore IDE0046 // Convert to conditional expression - return HashLengthOver240(sourcePtr, length, (ulong)seed); + return HashLengthOver240(sourcePtr, length, (ulong) seed); } public void Reset() @@ -197,7 +197,7 @@ private Hash128 GetCurrentHashAsHash128() { fixed (byte* buffer = _state.Buffer) { - current = HashToHash128(buffer, (uint)(int)_state.TotalLength, (long)_state.Seed); + current = HashToHash128(buffer, (uint) (int) _state.TotalLength, (long) _state.Seed); } } @@ -232,8 +232,8 @@ private static void WriteBigEndian128(in Hash128 hash, byte[] destination) #else fixed (byte* dest0 = destination) { - *(ulong*)(void*)dest0 = high; - *((ulong*)(void*)dest0 + 1) = low; + *(ulong*) (void*) dest0 = high; + *((ulong*) (void*) dest0 + 1) = low; } #endif } @@ -283,11 +283,11 @@ private static Hash128 HashLength1To3(byte* source, uint length, ulong seed) byte c2 = source[length >> 1]; byte c3 = source[length - 1]; - uint combinedl = ((uint)c1 << 16) | ((uint)c2 << 24) | c3 | (length << 8); + uint combinedl = ((uint) c1 << 16) | ((uint) c2 << 24) | c3 | (length << 8); uint combinedh = BitOperations.RotateLeft(BinaryPrimitives.ReverseEndianness(combinedl), 13); - const uint SecretXorL = unchecked((uint)DefaultSecretUInt64_0) ^ (uint)(DefaultSecretUInt64_0 >> 32); - const uint SecretXorH = unchecked((uint)DefaultSecretUInt64_1) ^ (uint)(DefaultSecretUInt64_1 >> 32); + const uint SecretXorL = unchecked((uint) DefaultSecretUInt64_0) ^ (uint) (DefaultSecretUInt64_0 >> 32); + const uint SecretXorH = unchecked((uint) DefaultSecretUInt64_1) ^ (uint) (DefaultSecretUInt64_1 >> 32); ulong bitflipl = SecretXorL + seed; ulong bitfliph = SecretXorH - seed; ulong keyedLo = combinedl ^ bitflipl; @@ -301,11 +301,11 @@ private static Hash128 HashLength4To8(byte* source, uint length, ulong seed) { Debug.Assert(length is >= 4 and <= 8, "Length was expected to be between 4 and 8."); - seed ^= (ulong)BinaryPrimitives.ReverseEndianness((uint)seed) << 32; + seed ^= (ulong) BinaryPrimitives.ReverseEndianness((uint) seed) << 32; uint inputLo = ReadUInt32LE(source); uint inputHi = ReadUInt32LE(source + length - 4); - ulong input64 = inputLo + ((ulong)inputHi << 32); + ulong input64 = inputLo + ((ulong) inputHi << 32); ulong bitflip = (DefaultSecretUInt64_2 ^ DefaultSecretUInt64_3) + seed; ulong keyed = input64 ^ bitflip; @@ -332,12 +332,12 @@ private static Hash128 HashLength9To16(byte* source, uint length, ulong seed) ulong inputHi = ReadUInt64LE(source + length - 8); ulong m128High = Multiply64To128(inputLo ^ inputHi ^ bitflipl, Prime64_1, out ulong m128Low); - m128Low += (ulong)(length - 1) << 54; + m128Low += (ulong) (length - 1) << 54; inputHi ^= bitfliph; m128High += sizeof(void*) < sizeof(ulong) ? - (inputHi & 0xFFFFFFFF00000000UL) + Multiply32To64((uint)inputHi, Prime32_2) : - inputHi + Multiply32To64((uint)inputHi, Prime32_2 - 1); + (inputHi & 0xFFFFFFFF00000000UL) + Multiply32To64((uint) inputHi, Prime32_2) : + inputHi + Multiply32To64((uint) inputHi, Prime32_2 - 1); m128Low ^= BinaryPrimitives.ReverseEndianness(m128High); diff --git a/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs b/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs index 058ecf11ca..b554c5b932 100644 --- a/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs +++ b/src/BenchmarkDotNet/Helpers/Hashing/XxHashShared.cs @@ -218,7 +218,7 @@ public static void Append(ref State state, byte[] source) { Debug.Assert(state.BufferedCount <= InternalBufferLengthBytes, "Expected state.BufferedCount to be less than or equals InternalBufferLengthBytes"); - state.TotalLength += (uint)source.Length; + state.TotalLength += (uint) source.Length; fixed (byte* buffer = state.Buffer) { @@ -233,7 +233,7 @@ public static void Append(ref State state, byte[] source) Buffer.MemoryCopy(sourcePtr, buffer + state.BufferedCount, source.Length, source.Length); } #endif - state.BufferedCount += (uint)source.Length; + state.BufferedCount += (uint) source.Length; return; } @@ -250,7 +250,7 @@ public static void Append(ref State state, byte[] source) int sourceIndex = 0; if (state.BufferedCount != 0) { - int loadSize = InternalBufferLengthBytes - (int)state.BufferedCount; + int loadSize = InternalBufferLengthBytes - (int) state.BufferedCount; #if NET source.AsSpan().Slice(0, loadSize).CopyTo(new Span(buffer + state.BufferedCount, loadSize)); @@ -268,16 +268,16 @@ public static void Append(ref State state, byte[] source) // Large input to consume: ingest per full block. if (source.Length - sourceIndex > NumStripesPerBlock * StripeLengthBytes) { - ulong stripes = (ulong)(source.Length - sourceIndex - 1) / StripeLengthBytes; + ulong stripes = (ulong) (source.Length - sourceIndex - 1) / StripeLengthBytes; Debug.Assert(state.StripesProcessedInCurrentBlock <= NumStripesPerBlock, "Expected NumStripesPerBlock to be greater than or equals state.StripesProcessedInCurrentBlock"); // Join to current block's end. ulong stripesToEnd = NumStripesPerBlock - state.StripesProcessedInCurrentBlock; Debug.Assert(stripesToEnd <= stripes, "Expected stripesToEnd to be smaller than or equals stripes"); - Accumulate(accumulators, sourcePtr + sourceIndex, secret + ((int)state.StripesProcessedInCurrentBlock * SecretConsumeRateBytes), (int)stripesToEnd); + Accumulate(accumulators, sourcePtr + sourceIndex, secret + ((int) state.StripesProcessedInCurrentBlock * SecretConsumeRateBytes), (int) stripesToEnd); ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); state.StripesProcessedInCurrentBlock = 0; - sourceIndex += (int)stripesToEnd * StripeLengthBytes; + sourceIndex += (int) stripesToEnd * StripeLengthBytes; stripes -= stripesToEnd; // Consume entire blocks. @@ -290,8 +290,8 @@ public static void Append(ref State state, byte[] source) } // Consume complete stripes in the last partial block. - Accumulate(accumulators, sourcePtr + sourceIndex, secret, (int)stripes); - sourceIndex += (int)stripes * StripeLengthBytes; + Accumulate(accumulators, sourcePtr + sourceIndex, secret, (int) stripes); + sourceIndex += (int) stripes * StripeLengthBytes; Debug.Assert(sourceIndex < source.Length, "Expected sourceIndex to be smaller than source.Length"); // at least some bytes left state.StripesProcessedInCurrentBlock = stripes; @@ -333,7 +333,7 @@ public static void Append(ref State state, byte[] source) Debug.Assert(source.Length - sourceIndex <= InternalBufferLengthBytes, "Expected remaining.Length to be less than or equals InternalBufferLengthBytes"); Debug.Assert(state.BufferedCount == 0, "Expected BufferedCount to be zero."); Buffer.MemoryCopy(sourcePtr + sourceIndex, buffer, source.Length - sourceIndex, source.Length - sourceIndex); - state.BufferedCount = (uint)(source.Length - sourceIndex); + state.BufferedCount = (uint) (source.Length - sourceIndex); #endif } #pragma warning restore SA1519 // Braces should not be omitted from multi-line child statement @@ -357,12 +357,12 @@ public static void HashInternalLoop(ulong* accumulators, byte* source, uint leng const int StripesPerBlock = (SecretLengthBytes - StripeLengthBytes) / SecretConsumeRateBytes; const int BlockLen = StripeLengthBytes * StripesPerBlock; - int blocksNum = (int)((length - 1) / BlockLen); + int blocksNum = (int) ((length - 1) / BlockLen); Accumulate(accumulators, source, secret, StripesPerBlock, true, blocksNum); int offset = BlockLen * blocksNum; - int stripesNumber = (int)((length - 1 - offset) / StripeLengthBytes); + int stripesNumber = (int) ((length - 1 - offset) / StripeLengthBytes); Accumulate(accumulators, source + offset, secret, stripesNumber); Accumulate512(accumulators, source + length - StripeLengthBytes, secret + (SecretLengthBytes - StripeLengthBytes - SecretLastAccStartBytes)); } @@ -377,14 +377,14 @@ public static void ConsumeStripes(ulong* accumulators, ref ulong stripesSoFar, u { // need a scrambling operation ulong stripesAfterBlock = stripes - stripesToEndOfBlock; - Accumulate(accumulators, source, secret + ((int)stripesSoFar * SecretConsumeRateBytes), (int)stripesToEndOfBlock); + Accumulate(accumulators, source, secret + ((int) stripesSoFar * SecretConsumeRateBytes), (int) stripesToEndOfBlock); ScrambleAccumulators(accumulators, secret + (SecretLengthBytes - StripeLengthBytes)); - Accumulate(accumulators, source + ((int)stripesToEndOfBlock * StripeLengthBytes), secret, (int)stripesAfterBlock); + Accumulate(accumulators, source + ((int) stripesToEndOfBlock * StripeLengthBytes), secret, (int) stripesAfterBlock); stripesSoFar = stripesAfterBlock; } else { - Accumulate(accumulators, source, secret + ((int)stripesSoFar * SecretConsumeRateBytes), (int)stripes); + Accumulate(accumulators, source, secret + ((int) stripesSoFar * SecretConsumeRateBytes), (int) stripes); stripesSoFar += stripes; } } @@ -436,14 +436,14 @@ public static void DigestLong(ref State state, ulong* accumulators, byte* secret else { byte* lastStripe = stackalloc byte[StripeLengthBytes]; - int catchupSize = StripeLengthBytes - (int)state.BufferedCount; + int catchupSize = StripeLengthBytes - (int) state.BufferedCount; #if NET new ReadOnlySpan(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span(lastStripe, StripeLengthBytes)); new ReadOnlySpan(buffer, (int)state.BufferedCount).CopyTo(new Span(lastStripe + catchupSize, (int)state.BufferedCount)); #else Buffer.MemoryCopy(buffer + InternalBufferLengthBytes - catchupSize, lastStripe, StripeLengthBytes, catchupSize); - Buffer.MemoryCopy(buffer, lastStripe + catchupSize, (int)state.BufferedCount, (int)state.BufferedCount); + Buffer.MemoryCopy(buffer, lastStripe + catchupSize, (int) state.BufferedCount, (int) state.BufferedCount); #endif accumulateData = lastStripe; } @@ -502,7 +502,7 @@ public static ulong Mix16Bytes(byte* source, ulong secretLow, ulong secretHigh, /// Calculates a 32-bit to 64-bit long multiply. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong Multiply32To64(uint v1, uint v2) => (ulong)v1 * v2; + public static ulong Multiply32To64(uint v1, uint v2) => (ulong) v1 * v2; /// This is a fast avalanche stage, suitable when input bits are already partially mixed. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -520,10 +520,10 @@ public static ulong Multiply64To128(ulong left, ulong right, out ulong lower) #if NET return Math.BigMul(left, right, out lower); #else - ulong lowerLow = Multiply32To64((uint)left, (uint)right); - ulong higherLow = Multiply32To64((uint)(left >> 32), (uint)right); - ulong lowerHigh = Multiply32To64((uint)left, (uint)(right >> 32)); - ulong higherHigh = Multiply32To64((uint)(left >> 32), (uint)(right >> 32)); + ulong lowerLow = Multiply32To64((uint) left, (uint) right); + ulong higherLow = Multiply32To64((uint) (left >> 32), (uint) right); + ulong lowerHigh = Multiply32To64((uint) left, (uint) (right >> 32)); + ulong higherHigh = Multiply32To64((uint) (left >> 32), (uint) (right >> 32)); ulong cross = (lowerLow >> 32) + (higherLow & 0xFFFFFFFF) + lowerHigh; ulong upper = (higherLow >> 32) + (cross >> 32) + higherHigh; @@ -721,7 +721,7 @@ private static void Accumulate512Inlined(ulong* accumulators, byte* source, byte ulong sourceKey = sourceVal ^ ReadUInt64LE(secret + (i * 8)); accumulators[i ^ 1] += sourceVal; // swap adjacent lanes - accumulators[i] += Multiply32To64((uint)sourceKey, (uint)(sourceKey >> 32)); + accumulators[i] += Multiply32To64((uint) sourceKey, (uint) (sourceKey >> 32)); } } } diff --git a/src/BenchmarkDotNet/Helpers/PowerManagementHelper.cs b/src/BenchmarkDotNet/Helpers/PowerManagementHelper.cs index f25a5579b7..8de118f8d9 100644 --- a/src/BenchmarkDotNet/Helpers/PowerManagementHelper.cs +++ b/src/BenchmarkDotNet/Helpers/PowerManagementHelper.cs @@ -20,7 +20,7 @@ internal static unsafe Guid? CurrentPlan var activePolicyGuid = *activePolicyGuidPtr; - PInvoke.LocalFree((HLOCAL)activePolicyGuidPtr); + PInvoke.LocalFree((HLOCAL) activePolicyGuidPtr); return activePolicyGuid; } @@ -35,23 +35,23 @@ internal unsafe static string CurrentPlanFriendlyName return ""; Guid activeSchemaGuid = *activeGuidPtr; - PInvoke.LocalFree((HLOCAL)activeGuidPtr); + PInvoke.LocalFree((HLOCAL) activeGuidPtr); Span buffer = stackalloc byte[260]; - uint bufferSize = (uint)buffer.Length; + uint bufferSize = (uint) buffer.Length; res = PInvoke.PowerReadFriendlyName(null, activeSchemaGuid, null, null, buffer, ref bufferSize); if (res == WIN32_ERROR.ERROR_MORE_DATA) { - buffer = new byte[(int)bufferSize]; + buffer = new byte[(int) bufferSize]; res = PInvoke.PowerReadFriendlyName(null, activeSchemaGuid, null, null, buffer, ref bufferSize); - bufferSize = (uint)buffer.Length; + bufferSize = (uint) buffer.Length; } if (res != WIN32_ERROR.NO_ERROR) return ""; - ReadOnlySpan chars = MemoryMarshal.Cast(buffer.Slice(0, (int)bufferSize)); + ReadOnlySpan chars = MemoryMarshal.Cast(buffer.Slice(0, (int) bufferSize)); return chars.TrimEnd('\0').ToString(); // Trim null terminator of PWSTR. } } diff --git a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs index d8ba2fe803..701c9b3346 100644 --- a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs @@ -200,12 +200,12 @@ internal static bool TryResolveExecutableInPath(string? value, [NotNullWhen(true // Typed to char[] because it could be a string or char[] with newer .net versions var directories = Environment.GetEnvironmentVariable("PATH")! - .Split((char[])[Path.PathSeparator], StringSplitOptions.RemoveEmptyEntries); + .Split((char[]) [Path.PathSeparator], StringSplitOptions.RemoveEmptyEntries); if (OsDetector.IsWindows()) { var extensions = Environment.GetEnvironmentVariable("PATHEXT")! - .Split((char[])[Path.PathSeparator], StringSplitOptions.RemoveEmptyEntries); + .Split((char[]) [Path.PathSeparator], StringSplitOptions.RemoveEmptyEntries); foreach (var directory in directories) { diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs index 8e0a1da4eb..e4f5f9286d 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/IlGeneratorEmitOpExtensions.cs @@ -22,10 +22,10 @@ public static void EmitStloc(this ILGenerator ilBuilder, LocalBuilder local) ilBuilder.Emit(OpCodes.Stloc_3); break; case var i when i < 255: - ilBuilder.Emit(OpCodes.Stloc_S, (byte)local.LocalIndex); + ilBuilder.Emit(OpCodes.Stloc_S, (byte) local.LocalIndex); break; default: - ilBuilder.Emit(OpCodes.Stloc, checked((short)local.LocalIndex)); + ilBuilder.Emit(OpCodes.Stloc, checked((short) local.LocalIndex)); break; } } @@ -47,10 +47,10 @@ public static void EmitLdloc(this ILGenerator ilBuilder, LocalBuilder local) ilBuilder.Emit(OpCodes.Ldloc_3); break; case var i when i < 255: - ilBuilder.Emit(OpCodes.Ldloc_S, (byte)local.LocalIndex); + ilBuilder.Emit(OpCodes.Ldloc_S, (byte) local.LocalIndex); break; default: - ilBuilder.Emit(OpCodes.Ldloc, checked((short)local.LocalIndex)); + ilBuilder.Emit(OpCodes.Ldloc, checked((short) local.LocalIndex)); break; } } @@ -60,10 +60,10 @@ public static void EmitLdloca(this ILGenerator ilBuilder, LocalBuilder local) switch (local.LocalIndex) { case var i when i < 255: - ilBuilder.Emit(OpCodes.Ldloca_S, (byte)local.LocalIndex); + ilBuilder.Emit(OpCodes.Ldloca_S, (byte) local.LocalIndex); break; default: - ilBuilder.Emit(OpCodes.Ldloca, checked((short)local.LocalIndex)); + ilBuilder.Emit(OpCodes.Ldloca, checked((short) local.LocalIndex)); break; } } @@ -88,7 +88,7 @@ public static void EmitLdarg(this ILGenerator ilBuilder, ParameterInfo argument) { // this is passed as Ldarg_0 var position = argument.Position; - if (!((MethodBase)argument.Member).IsStatic) + if (!((MethodBase) argument.Member).IsStatic) position++; switch (position) @@ -106,10 +106,10 @@ public static void EmitLdarg(this ILGenerator ilBuilder, ParameterInfo argument) ilBuilder.Emit(OpCodes.Ldarg_3); break; case var i when i < 255: - ilBuilder.Emit(OpCodes.Ldarg_S, (byte)position); + ilBuilder.Emit(OpCodes.Ldarg_S, (byte) position); break; default: - ilBuilder.Emit(OpCodes.Ldarg, checked((short)position)); + ilBuilder.Emit(OpCodes.Ldarg, checked((short) position)); break; } } @@ -117,16 +117,16 @@ public static void EmitLdarg(this ILGenerator ilBuilder, ParameterInfo argument) public static void EmitStarg(this ILGenerator ilBuilder, ParameterInfo argument) { var position = argument.Position; - if (!((MethodBase)argument.Member).IsStatic) + if (!((MethodBase) argument.Member).IsStatic) position++; if (position < 255) { - ilBuilder.Emit(OpCodes.Starg_S, (byte)position); + ilBuilder.Emit(OpCodes.Starg_S, (byte) position); } else { - ilBuilder.Emit(OpCodes.Starg, checked((short)position)); + ilBuilder.Emit(OpCodes.Starg, checked((short) position)); } } @@ -165,7 +165,7 @@ public static void EmitLdc_I4(this ILGenerator ilBuilder, int value) ilBuilder.Emit(OpCodes.Ldc_I4_8); break; case var i when sbyte.MinValue <= i && i <= sbyte.MaxValue: - ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte)value); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte) value); break; default: ilBuilder.Emit(OpCodes.Ldc_I4, value); diff --git a/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs b/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs index 7fd7135dea..df2dfb8f44 100644 --- a/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs +++ b/src/BenchmarkDotNet/Helpers/Reflection.Emit/MethodBuilderExtensions.cs @@ -9,7 +9,7 @@ internal static class MethodBuilderExtensions public static ParameterInfo[] GetEmitParameters(this MethodBuilder method, IEnumerable signatureParameters) => signatureParameters .Select(p => - (ParameterInfo)new EmitParameterInfo( + (ParameterInfo) new EmitParameterInfo( p.Position, p.Name, p.ParameterType, diff --git a/src/BenchmarkDotNet/Helpers/SourceCodeHelper.cs b/src/BenchmarkDotNet/Helpers/SourceCodeHelper.cs index 5d2f4571a2..a4f0c97d07 100644 --- a/src/BenchmarkDotNet/Helpers/SourceCodeHelper.cs +++ b/src/BenchmarkDotNet/Helpers/SourceCodeHelper.cs @@ -161,21 +161,21 @@ private static string ToInvariantCultureString(object @enum) switch (Type.GetTypeCode(Enum.GetUnderlyingType(@enum.GetType()))) { case TypeCode.Byte: - return ((byte)@enum).ToString(CultureInfo.InvariantCulture); + return ((byte) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.Int16: - return ((short)@enum).ToString(CultureInfo.InvariantCulture); + return ((short) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.Int32: - return ((int)@enum).ToString(CultureInfo.InvariantCulture); + return ((int) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.Int64: - return ((long)@enum).ToString(CultureInfo.InvariantCulture); + return ((long) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.SByte: - return ((sbyte)@enum).ToString(CultureInfo.InvariantCulture); + return ((sbyte) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.UInt16: - return ((ushort)@enum).ToString(CultureInfo.InvariantCulture); + return ((ushort) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.UInt32: - return ((uint)@enum).ToString(CultureInfo.InvariantCulture); + return ((uint) @enum).ToString(CultureInfo.InvariantCulture); case TypeCode.UInt64: - return ((ulong)@enum).ToString(CultureInfo.InvariantCulture); + return ((ulong) @enum).ToString(CultureInfo.InvariantCulture); default: throw new ArgumentOutOfRangeException(nameof(@enum)); } diff --git a/src/BenchmarkDotNet/Helpers/TaskbarProgress.cs b/src/BenchmarkDotNet/Helpers/TaskbarProgress.cs index 953cf2d0fa..592fa9cb6b 100644 --- a/src/BenchmarkDotNet/Helpers/TaskbarProgress.cs +++ b/src/BenchmarkDotNet/Helpers/TaskbarProgress.cs @@ -46,7 +46,7 @@ internal void SetProgress(float progressValue) { throw new ArgumentOutOfRangeException(nameof(progressValue), "progressValue must be between 0 and 1 inclusive."); } - uint value = (uint)(progressValue * 100); + uint value = (uint) (progressValue * 100); com?.SetValue(value); terminal?.SetValue(value); } @@ -102,7 +102,7 @@ private class TaskbarInstance { } private Com(IntPtr handle) { - taskbarInstance = (ITaskbarList3)new TaskbarInstance(); + taskbarInstance = (ITaskbarList3) new TaskbarInstance(); consoleWindowHandle = handle; } diff --git a/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs b/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs index 2610da0316..22a7ed1bbd 100644 --- a/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ThreadPoolHelper.cs @@ -19,9 +19,9 @@ public void GetResult() => cancellationToken.ThrowIfCancellationRequested(); public void OnCompleted(Action continuation) - => ThreadPool.QueueUserWorkItem(static state => ((Action)state!)(), continuation); + => ThreadPool.QueueUserWorkItem(static state => ((Action) state!)(), continuation); public void UnsafeOnCompleted(Action continuation) - => ThreadPool.UnsafeQueueUserWorkItem(static state => ((Action)state!)(), continuation); + => ThreadPool.UnsafeQueueUserWorkItem(static state => ((Action) state!)(), continuation); } } diff --git a/src/BenchmarkDotNet/Helpers/TitleHelper.cs b/src/BenchmarkDotNet/Helpers/TitleHelper.cs index 6f0aa1e646..94c64dc028 100644 --- a/src/BenchmarkDotNet/Helpers/TitleHelper.cs +++ b/src/BenchmarkDotNet/Helpers/TitleHelper.cs @@ -64,7 +64,7 @@ internal static string GetJoinedSummaryTitle(string? customTitle, int desiredMax => Truncate(customTitle.IsBlank() ? JoinedSummaryTitle : Escape(customTitle), desiredMaxLength); // the title becomes a file name, so it can not contain characters that are invalid for a path - private static string Escape(string title) => FolderNameHelper.ToFolderName((object)title); + private static string Escape(string title) => FolderNameHelper.ToFolderName((object) title); /// /// shortens the title so that the paths of the artifacts named after it don't exceed the limits of the OS diff --git a/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs b/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs index 0c4aaa8add..534b062802 100644 --- a/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs +++ b/src/BenchmarkDotNet/Helpers/UniqueIDGenerator.cs @@ -45,13 +45,13 @@ private static Guid VersionedGuidFromHash(Span hashBytes, byte hashVersion // does not affect endianness, so we can safely assume the byte data are at the end of the int. // We also don't care to specify the whole expansion of the int in the bit masks, which effectively ignores all the data in the int // before the last byte data, but that is okay, they will always be zero. - hashBytes[firstByte] = (byte)((hashBytes[firstByte] & 0b0000_1111) | (hashVersion << 4)); + hashBytes[firstByte] = (byte) ((hashBytes[firstByte] & 0b0000_1111) | (hashVersion << 4)); // We set first 4bits 7th byte to 8 to indicate that this is a version 8 UUID. https://www.rfc-editor.org/rfc/rfc9562.html#name-uuid-version-8 - hashBytes[versionByte] = (byte)((hashBytes[versionByte] & 0b0000_1111) | 0b1000_0000); + hashBytes[versionByte] = (byte) ((hashBytes[versionByte] & 0b0000_1111) | 0b1000_0000); // We set the first 2 bits of nineth byte to 0b10. In the guid this is stored as byte, so we don't care about endiannes. int variantByte = 8; - hashBytes[variantByte] = (byte)((hashBytes[variantByte] & 0b0011_1111) | 0b1000_0000); + hashBytes[variantByte] = (byte) ((hashBytes[variantByte] & 0b0011_1111) | 0b1000_0000); return CreateGuidFromBigEndian(hashBytes); } @@ -63,8 +63,8 @@ private static Guid CreateGuidFromBigEndian(ReadOnlySpan bytes) #else return new Guid( (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3], - (short)((bytes[4] << 8) | bytes[5]), - (short)((bytes[6] << 8) | bytes[7]), + (short) ((bytes[4] << 8) | bytes[5]), + (short) ((bytes[6] << 8) | bytes[7]), bytes[8], bytes[9], bytes[10], bytes[11], bytes[12], bytes[13], bytes[14], bytes[15]); #endif } diff --git a/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs b/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs index 275844b619..69899f4640 100644 --- a/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs +++ b/src/BenchmarkDotNet/Jobs/EnvironmentMode.cs @@ -126,7 +126,7 @@ public void SetEnvironmentVariable(EnvironmentVariable variable) internal BdnEnvironment ToPerfonar() => new() { Jit = HasValue(JitCharacteristic) ? Jit : null, - Affinity = HasValue(AffinityCharacteristic) ? (long)Affinity : null + Affinity = HasValue(AffinityCharacteristic) ? (long) Affinity : null }; } } diff --git a/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs b/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs index dfc1b54719..625e1ea8c2 100644 --- a/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs +++ b/src/BenchmarkDotNet/Jobs/EnvironmentVariable.cs @@ -28,7 +28,7 @@ public override bool Equals(object? obj) return true; if (obj.GetType() != GetType()) return false; - return Equals((EnvironmentVariable)obj); + return Equals((EnvironmentVariable) obj); } public override int GetHashCode() => HashCode.Combine(Key, Value); diff --git a/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs b/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs index 87ffa06804..497932912a 100644 --- a/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs +++ b/src/BenchmarkDotNet/Jobs/JobIdGenerator.cs @@ -13,7 +13,7 @@ public static string GenerateRandomId(Job job) var random = new Random(seed); string id = ""; for (int i = 0; i < 6; i++) - id += (char)('A' + random.Next(26)); + id += (char) ('A' + random.Next(26)); return "Job-" + id; } @@ -25,7 +25,7 @@ private static int GetStableHashCode(string value) { hash = ((hash << 5) + hash) + c; // hash * 32 + hash + c } - return unchecked((int)hash); + return unchecked((int) hash); } } } diff --git a/src/BenchmarkDotNet/Jobs/JobMode`1.cs b/src/BenchmarkDotNet/Jobs/JobMode`1.cs index ac8b8716fe..f1a1e43052 100644 --- a/src/BenchmarkDotNet/Jobs/JobMode`1.cs +++ b/src/BenchmarkDotNet/Jobs/JobMode`1.cs @@ -11,6 +11,6 @@ protected JobMode() { } protected JobMode(string id) : base(id) { } - [PublicAPI] public Job Job => (Job)OwnerOrSelf; + [PublicAPI] public Job Job => (Job) OwnerOrSelf; } } diff --git a/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs b/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs index beebe5480d..7cf4970ac3 100644 --- a/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs +++ b/src/BenchmarkDotNet/Loggers/AsyncProcessOutputReader.cs @@ -23,7 +23,7 @@ internal class AsyncProcessOutputReader : IDisposable public Channel? OutputChannel => outputChannel; - internal bool IsStarted => Interlocked.Read(ref status) == (long)Status.Started; + internal bool IsStarted => Interlocked.Read(ref status) == (long) Status.Started; internal AsyncProcessOutputReader( Process process, @@ -47,19 +47,19 @@ internal AsyncProcessOutputReader( this.readStandardError = readStandardError; this.stdOutLogger = stdOutLogger ?? NullLogger.Instance; this.stdErrLogger = stdErrLogger ?? NullLogger.Instance; - status = (long)Status.Created; + status = (long) Status.Created; } public void Dispose() { - Interlocked.Exchange(ref status, (long)Status.Disposed); + Interlocked.Exchange(ref status, (long) Status.Disposed); Detach(); } internal void BeginRead() { - if (Interlocked.CompareExchange(ref status, (long)Status.Started, (long)Status.Created) != (long)Status.Created) + if (Interlocked.CompareExchange(ref status, (long) Status.Started, (long) Status.Created) != (long) Status.Created) throw new InvalidOperationException("Reader can be started only once"); Attach(); @@ -72,7 +72,7 @@ internal void BeginRead() internal void CancelRead() { - if (Interlocked.CompareExchange(ref status, (long)Status.Stopped, (long)Status.Started) != (long)Status.Started) + if (Interlocked.CompareExchange(ref status, (long) Status.Stopped, (long) Status.Started) != (long) Status.Started) throw new InvalidOperationException("Only a started reader can be stopped"); process.CancelOutputRead(); @@ -85,7 +85,7 @@ internal void CancelRead() internal async ValueTask StopReadAsync() { - if (Interlocked.CompareExchange(ref status, (long)Status.Stopped, (long)Status.Started) != (long)Status.Started) + if (Interlocked.CompareExchange(ref status, (long) Status.Stopped, (long) Status.Started) != (long) Status.Started) throw new InvalidOperationException("Only a started reader can be stopped"); await stdOutFinishTcs.Task.WaitAsync(FinishEventTimeout).ConfigureAwait(false); @@ -184,7 +184,7 @@ private void ProcessOnErrorDataReceived(object sender, DataReceivedEventArgs e) } private T ReturnIfStopped(Func getter) - => Interlocked.Read(ref status) == (long)Status.Stopped + => Interlocked.Read(ref status) == (long) Status.Stopped ? getter.Invoke() : throw new InvalidOperationException("The reader must be stopped first"); diff --git a/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs b/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs index 3a7d365dcd..31de3d62ca 100644 --- a/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs +++ b/src/BenchmarkDotNet/Loggers/LinqPadLogger.cs @@ -32,7 +32,7 @@ public sealed class LinqPadLogger : ILogger if (withStyle != null) { - var isDarkTheme = (bool)(withStyle.DeclaringType!.GetProperty("IsDarkThemeEnabled", BindingFlags.Static | BindingFlags.Public)?.GetValue(null) ?? false); + var isDarkTheme = (bool) (withStyle.DeclaringType!.GetProperty("IsDarkThemeEnabled", BindingFlags.Static | BindingFlags.Public)?.GetValue(null) ?? false); var colorScheme = isDarkTheme ? CreateDarkScheme() : CreateLightScheme(); return new LinqPadLogger(withStyle, colorScheme); } diff --git a/src/BenchmarkDotNet/Mathematics/Statistics.cs b/src/BenchmarkDotNet/Mathematics/Statistics.cs index d5c59ae3ed..0b5ca76034 100644 --- a/src/BenchmarkDotNet/Mathematics/Statistics.cs +++ b/src/BenchmarkDotNet/Mathematics/Statistics.cs @@ -42,7 +42,7 @@ public Statistics(params double[] values) : { } public Statistics(IEnumerable values) : - this(values.Select(value => (double)value)) + this(values.Select(value => (double) value)) { } public Statistics(IEnumerable values) : this(new Sample(values.ToArray(), TimeUnit.Nanosecond)) { } diff --git a/src/BenchmarkDotNet/Models/BdnLifecycle.cs b/src/BenchmarkDotNet/Models/BdnLifecycle.cs index 6af56afdd4..4cb9c54e70 100644 --- a/src/BenchmarkDotNet/Models/BdnLifecycle.cs +++ b/src/BenchmarkDotNet/Models/BdnLifecycle.cs @@ -28,7 +28,7 @@ public override bool Equals(object? obj) return true; if (obj.GetType() != GetType()) return false; - return Equals((BdnLifecycle)obj); + return Equals((BdnLifecycle) obj); } public override int GetHashCode() => HashCode.Combine(LaunchIndex, IterationMode, IterationStage); diff --git a/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs b/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs index fabd904c81..150d713a30 100644 --- a/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs +++ b/src/BenchmarkDotNet/Parameters/DeepEqualityComparer.cs @@ -64,12 +64,12 @@ private static bool ValuesEqual(T1 x, T2 y) if (x is IDictionary xDict) // Dictionary iteration order is not stable, so compare via sorted keys. { - return DictionariesEqual(xDict, (IDictionary)y); + return DictionariesEqual(xDict, (IDictionary) y); } if (ImplementsSet(x)) // Set iteration order is not stable, so compare via sorted elements. { - return SetsEqual((IEnumerable)x, (IEnumerable)y); + return SetsEqual((IEnumerable) x, (IEnumerable) y); } if (x is IStructuralEquatable xStructuralEquatable) @@ -93,7 +93,7 @@ private static bool ValuesEqual(T1 x, T2 y) if (x is IEnumerable xEnumerable) // General collection equality support { - return EnumerablesEqual(xEnumerable, (IEnumerable)y); + return EnumerablesEqual(xEnumerable, (IEnumerable) y); } return x.Equals(y); @@ -146,7 +146,7 @@ private static bool TryEquatable(object x, object y) return false; var method = equatableInterface.GetMethod(nameof(IEquatable.Equals), BindingFlags.Public | BindingFlags.Instance); - return (bool?)method?.Invoke(x, [y]) ?? false; + return (bool?) method?.Invoke(x, [y]) ?? false; } private static bool TryFallbackStructuralEquals(object x, object y, out bool equals) @@ -154,7 +154,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ // Check for multi-dimensional array and ITuple and re-try for each element recursively. if (x is Array xArr) { - Array yArr = (Array)y; + Array yArr = (Array) y; if (xArr.Rank != yArr.Rank) { equals = false; @@ -176,7 +176,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ string methodName = xArr.Rank == 2 ? nameof(TwoDArraysEqual) : nameof(ThreeDArraysEqual); - equals = (bool)typeof(DeepEqualityComparer) + equals = (bool) typeof(DeepEqualityComparer) .GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Static)! .MakeGenericMethod(xArr.GetType().GetElementType()!, yArr.GetType().GetElementType()!) .Invoke(null, [xArr, yArr])!; @@ -212,7 +212,7 @@ private static bool TryFallbackStructuralEquals(object x, object y, out bool equ if (x is IEnumerable xEnumerable) // General collection equality support { - equals = EnumerablesEqual(xEnumerable, (IEnumerable)y); + equals = EnumerablesEqual(xEnumerable, (IEnumerable) y); return true; } diff --git a/src/BenchmarkDotNet/Parameters/ParameterComparer.cs b/src/BenchmarkDotNet/Parameters/ParameterComparer.cs index 1187b4a714..a3617e5b55 100644 --- a/src/BenchmarkDotNet/Parameters/ParameterComparer.cs +++ b/src/BenchmarkDotNet/Parameters/ParameterComparer.cs @@ -82,7 +82,7 @@ private static int CompareValues(T1 x, T2 y) if (x is IEnumerable xEnumerable) // General collection comparison support { - return CompareEnumerables(xEnumerable, (IEnumerable)y); + return CompareEnumerables(xEnumerable, (IEnumerable) y); } // Anything else to differentiate between objects. @@ -94,7 +94,7 @@ private static bool TryFallbackStructuralCompareTo(object x, object y, out int c // Check for multi-dimensional array and ITuple and re-try for each element recursively. if (x is Array xArr) { - Array yArr = (Array)y; + Array yArr = (Array) y; if (xArr.Rank != yArr.Rank) { comparison = xArr.Rank.CompareTo(yArr.Rank); @@ -116,7 +116,7 @@ private static bool TryFallbackStructuralCompareTo(object x, object y, out int c string methodName = xArr.Rank == 2 ? nameof(CompareTwoDArray) : nameof(CompareThreeDArray); - comparison = (int)typeof(ParameterComparer) + comparison = (int) typeof(ParameterComparer) .GetMethod(methodName, BindingFlags.NonPublic | BindingFlags.Static)! .MakeGenericMethod(xArr.GetType().GetElementType()!, yArr.GetType().GetElementType()!) .Invoke(null, [xArr, yArr])!; @@ -152,7 +152,7 @@ private static bool TryFallbackStructuralCompareTo(object x, object y, out int c if (x is IEnumerable xEnumerable) // General collection equality support { - comparison = CompareEnumerables(xEnumerable, (IEnumerable)y); + comparison = CompareEnumerables(xEnumerable, (IEnumerable) y); return true; } diff --git a/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs b/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs index c52d6aa14d..2a927e735c 100644 --- a/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs +++ b/src/BenchmarkDotNet/Parameters/SmartParamBuilder.cs @@ -46,7 +46,7 @@ internal static IReadOnlyList CreateForParams(ParameterDefinitio // the whole array, because the generated code emits no index here to reach inside one with, and // unwrapping only the in-process side would have the two toolchains assign different values. if (values.All(value => value is object[] { Length: 1 } wrapper && SourceCodeHelper.IsCompilationTimeConstant(wrapper[0]))) - values = values.Select(value => ((object[])value!)[0]).ToArray(); + values = values.Select(value => ((object[]) value!)[0]).ToArray(); bool namesNothing = source.GetSourceReturnType().TryGetSourceElementType(out var elementType) && elementType == typeof(object); diff --git a/src/BenchmarkDotNet/Portability/CodeGen.cs b/src/BenchmarkDotNet/Portability/CodeGen.cs index 4b60dfd0fe..422f85c3d6 100644 --- a/src/BenchmarkDotNet/Portability/CodeGen.cs +++ b/src/BenchmarkDotNet/Portability/CodeGen.cs @@ -6,7 +6,7 @@ namespace BenchmarkDotNet.Portability public static class CodeGenHelper { // AggressiveOptimization is not available in netstandard2.0, so just use the value casted to enum. - public const MethodImplOptions AggressiveOptimizationOption = (MethodImplOptions)512; - public const MethodImplAttributes AggressiveOptimizationOptionForEmit = (MethodImplAttributes)512; + public const MethodImplOptions AggressiveOptimizationOption = (MethodImplOptions) 512; + public const MethodImplAttributes AggressiveOptimizationOptionForEmit = (MethodImplAttributes) 512; } } diff --git a/src/BenchmarkDotNet/Portability/JitInfo.cs b/src/BenchmarkDotNet/Portability/JitInfo.cs index 636d2438ba..ee3d8b8a4f 100644 --- a/src/BenchmarkDotNet/Portability/JitInfo.cs +++ b/src/BenchmarkDotNet/Portability/JitInfo.cs @@ -205,7 +205,7 @@ static long ApplySingleProcMultiplier(int delayMs) { return delayMs; } - long newDelayMs = (long)delayMs * multiplier; + long newDelayMs = (long) delayMs * multiplier; return newDelayMs > uint.MaxValue ? delayMs : newDelayMs; } } diff --git a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs index f701c34b49..88b23b8fdc 100644 --- a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs +++ b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs @@ -59,7 +59,7 @@ private static bool GetIsAot() if (methodInfo != null) { - return !(bool)methodInfo.Invoke(null, null); + return !(bool) methodInfo.Invoke(null, null); } } @@ -220,12 +220,12 @@ public static Platform GetCurrentPlatform() { // these are not part of .NET Standard 2.0, so we use hardcoded values taken from // https://github.com/dotnet/runtime/blob/080fcae7eaa8367abf7900e08ff2e52e3efea5bf/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs#L9 - const Architecture Wasm = (Architecture)4; - const Architecture S390x = (Architecture)5; - const Architecture LoongArch64 = (Architecture)6; - const Architecture Armv6 = (Architecture)7; - const Architecture Ppc64le = (Architecture)8; - const Architecture RiscV64 = (Architecture)9; + const Architecture Wasm = (Architecture) 4; + const Architecture S390x = (Architecture) 5; + const Architecture LoongArch64 = (Architecture) 6; + const Architecture Armv6 = (Architecture) 7; + const Architecture Ppc64le = (Architecture) 8; + const Architecture RiscV64 = (Architecture) 9; switch (ProcessArchitecture) { diff --git a/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs b/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs index 1153f19564..236c6ffdee 100644 --- a/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs +++ b/src/BenchmarkDotNet/Reports/DisplayPrecisionManager.cs @@ -45,7 +45,7 @@ internal static int CalcPrecision(IList values) return MinPrecision; if (minValue < 1 - 1e-9) return MaxPrecision; - return MathHelper.Clamp((int)Math.Truncate(-Math.Log10(minValue)) + 3, MinPrecision, MaxPrecision); + return MathHelper.Clamp((int) Math.Truncate(-Math.Log10(minValue)) + 3, MinPrecision, MaxPrecision); } internal static int CalcPrecision(IList values, int parentPrecision) diff --git a/src/BenchmarkDotNet/Running/BenchmarkConverter.cs b/src/BenchmarkDotNet/Running/BenchmarkConverter.cs index 49a1c46002..4eecac5bfa 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkConverter.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkConverter.cs @@ -375,7 +375,7 @@ private static IReadOnlyList GetValidValues(object?[] values, Pa // [EnumeratorCancellation] CancellationToken); we invoke it with their default values. object? sourceValue = source is MethodInfo method ? method.Invoke(method.IsStatic ? null : Activator.CreateInstance(sourceType), GetDefaultArguments(method)) - : ((PropertyInfo)source).GetValue(((PropertyInfo)source).GetMethod!.IsStatic ? null : Activator.CreateInstance(sourceType)!); + : ((PropertyInfo) source).GetValue(((PropertyInfo) source).GetMethod!.IsStatic ? null : Activator.CreateInstance(sourceType)!); return await ToArrayAsync(sourceValue, source, sourceType, declarationErrors, cancellationToken).ConfigureAwait() is { } values ? (source, values) @@ -413,7 +413,7 @@ private static ValidationError NoSourceMemberFound(Type sourceType, string sourc { var sourceType = memberInfo is MethodInfo methodInfo ? methodInfo.ReturnType - : ((PropertyInfo)memberInfo).PropertyType; + : ((PropertyInfo) memberInfo).PropertyType; // Checked before the shape, so a null async source reports the same declaration error a null // synchronous source does instead of failing while being enumerated. diff --git a/src/BenchmarkDotNet/Running/BenchmarkId.cs b/src/BenchmarkDotNet/Running/BenchmarkId.cs index 1d83eb9893..55f0f27623 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkId.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkId.cs @@ -31,10 +31,10 @@ public BenchmarkId(int value, BenchmarkCase benchmarkCase) public override int GetHashCode() => Value; public string ToArguments(int port, Diagnosers.RunMode diagnoserRunMode) - => $"{IpcHelper.PortDescriptor} {port} --benchmarkName {FullBenchmarkName.EscapeCommandLine()} --job {JobId.EscapeCommandLine()} --diagnoserRunMode {(int)diagnoserRunMode} --benchmarkId {Value}"; + => $"{IpcHelper.PortDescriptor} {port} --benchmarkName {FullBenchmarkName.EscapeCommandLine()} --job {JobId.EscapeCommandLine()} --diagnoserRunMode {(int) diagnoserRunMode} --benchmarkId {Value}"; public string ToArguments(string ipcDirectory, Diagnosers.RunMode diagnoserRunMode) - => $"{IpcHelper.DirDescriptor} {ipcDirectory.EscapeCommandLine()} --benchmarkName {FullBenchmarkName.EscapeCommandLine()} --job {JobId.EscapeCommandLine()} --diagnoserRunMode {(int)diagnoserRunMode} --benchmarkId {Value}"; + => $"{IpcHelper.DirDescriptor} {ipcDirectory.EscapeCommandLine()} --benchmarkName {FullBenchmarkName.EscapeCommandLine()} --job {JobId.EscapeCommandLine()} --diagnoserRunMode {(int) diagnoserRunMode} --benchmarkId {Value}"; public override string ToString() => Value.ToString(); diff --git a/src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs b/src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs index e4d0dcb8c3..50a19afb21 100644 --- a/src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs +++ b/src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs @@ -351,7 +351,7 @@ private static async ValueTask PrintSummary(ILogger logger, ImmutableConfig conf await BenchmarkReportExporter.ExportToLogAsync(summary, logger, cancellationToken).ConfigureAwait(); logger.WriteLineHeader("// * Summary *"); - await ((MarkdownExporter)MarkdownExporter.Console).ExportToLogAsync(summary, logger, cancellationToken).ConfigureAwait(); + await ((MarkdownExporter) MarkdownExporter.Console).ExportToLogAsync(summary, logger, cancellationToken).ConfigureAwait(); // TODO: make exporter ConclusionHelper.Print(logger, config.GetCompositeAnalyser().Analyse(summary).Distinct().ToList()); @@ -581,7 +581,7 @@ private static async ValueTask RunCore(BenchmarkCase benchmarkC double overheadApprox = new Statistics(measurements.Where(m => m.Is(IterationMode.Overhead, IterationStage.Actual)).Select(m => m.Nanoseconds)).Median; double workloadApprox = new Statistics(measurements.Where(m => m.Is(IterationMode.Workload, IterationStage.Actual)).Select(m => m.Nanoseconds)).Median; double percent = overheadApprox / workloadApprox * 100; - launchCount = (int)Math.Round(Math.Max(2, 2 + (percent - 1) / 3)); // an empirical formula + launchCount = (int) Math.Round(Math.Max(2, 2 + (percent - 1) / 3)); // an empirical formula } } logger.WriteLine(); @@ -815,13 +815,13 @@ private static void LogProgress(ILogger logger, in StartedClock runsChronometer, int executedBenchmarkCount = totalBenchmarkCount - benchmarksToRunCount; TimeSpan fromNow = GetEstimatedFinishTime(runsChronometer, benchmarksToRunCount, executedBenchmarkCount); DateTime estimatedEnd = DateTime.Now.Add(fromNow); - string message = $"// ** Remained {benchmarksToRunCount} ({(double)benchmarksToRunCount / totalBenchmarkCount:P1}) benchmark(s) to run." + - $" Estimated finish {estimatedEnd:yyyy-MM-dd H:mm} ({(int)fromNow.TotalHours}h {fromNow.Minutes}m from now) **"; + string message = $"// ** Remained {benchmarksToRunCount} ({(double) benchmarksToRunCount / totalBenchmarkCount:P1}) benchmark(s) to run." + + $" Estimated finish {estimatedEnd:yyyy-MM-dd H:mm} ({(int) fromNow.TotalHours}h {fromNow.Minutes}m from now) **"; logger.WriteLineHeader(message); - consoleTitler.UpdateTitle($"{benchmarksToRunCount}/{totalBenchmarkCount} Remaining - {(int)fromNow.TotalHours}h {fromNow.Minutes}m to finish"); + consoleTitler.UpdateTitle($"{benchmarksToRunCount}/{totalBenchmarkCount} Remaining - {(int) fromNow.TotalHours}h {fromNow.Minutes}m to finish"); - taskbarProgress.SetProgress((float)executedBenchmarkCount / totalBenchmarkCount); + taskbarProgress.SetProgress((float) executedBenchmarkCount / totalBenchmarkCount); } private static TimeSpan GetEstimatedFinishTime(in StartedClock runsChronometer, int benchmarksToRunCount, int executedBenchmarkCount) diff --git a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliExecutor.cs b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliExecutor.cs index eab089454f..257e84d098 100644 --- a/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliExecutor.cs @@ -110,7 +110,7 @@ private async ValueTask Execute(BenchmarkCase benchmarkCase, results = broker.Results; prefixedOutput = broker.PrefixedOutput; - if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo($"// The benchmarking process did not quit within {ExecuteParameters.ProcessExitTimeout.TotalSeconds} seconds, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Toolchains/Executor.cs b/src/BenchmarkDotNet/Toolchains/Executor.cs index 989b8c0cfd..4c682ad26c 100644 --- a/src/BenchmarkDotNet/Toolchains/Executor.cs +++ b/src/BenchmarkDotNet/Toolchains/Executor.cs @@ -94,7 +94,7 @@ private async ValueTask ExecuteCore(BenchmarkCase benchmarkCase, results = broker.Results; prefixedOutput = broker.PrefixedOutput; - if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo("// The benchmarking process did not quit on time, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs index 75811241fc..0cbeae2e87 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/AsyncStateMachineEmitter.cs @@ -303,7 +303,7 @@ private Type CompleteAsyncStateMachineType(Type asyncMethodBuilderType, AsyncSta IL_006f: stfld int32 BenchmarkDotNet.Autogenerated.Runnable_0/'d__1'::'<>1__state' */ ilBuilder.Emit(OpCodes.Ldarg_0); - ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte)-2); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte) -2); ilBuilder.Emit(OpCodes.Stfld, stateField); /* // <>t__builder.SetException(exception); @@ -334,7 +334,7 @@ private Type CompleteAsyncStateMachineType(Type asyncMethodBuilderType, AsyncSta ilBuilder.MarkLabel(endTryLabel); ilBuilder.Emit(OpCodes.Ldarg_0); - ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte)-2); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (sbyte) -2); ilBuilder.Emit(OpCodes.Stfld, stateField); /* // <>t__builder.SetResult(); diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs index 249b57759c..5fd4baeb5b 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/EmitExtensions.cs @@ -14,10 +14,10 @@ internal static void Save(this AssemblyBuilder assemblyBuilder, string assemblyF => ExecuteMethodUsingReflection(assemblyBuilder, nameof(Save), assemblyFileName); internal static ModuleBuilder DefineDynamicModule(this AssemblyBuilder assemblyBuilder, string moduleName, string moduleFileName) - => (ModuleBuilder)ExecuteMethodUsingReflection(assemblyBuilder, nameof(AssemblyBuilder.DefineDynamicModule), moduleName, moduleFileName); + => (ModuleBuilder) ExecuteMethodUsingReflection(assemblyBuilder, nameof(AssemblyBuilder.DefineDynamicModule), moduleName, moduleFileName); internal static AssemblyBuilder DefineDynamicAssembly(this AppDomain domain, AssemblyName assemblyName, AssemblyBuilderAccess assemblyMode, string assemblyDirectory) - => (AssemblyBuilder)ExecuteMethodUsingReflection(domain, nameof(AssemblyBuilder.DefineDynamicAssembly), assemblyName, assemblyMode, assemblyDirectory); + => (AssemblyBuilder) ExecuteMethodUsingReflection(domain, nameof(AssemblyBuilder.DefineDynamicAssembly), assemblyName, assemblyMode, assemblyDirectory); private static object ExecuteMethodUsingReflection(T instance, string methodName, params object[] arguments) { diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs index c3adb3e38c..39d1e51b97 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RunnableEmitter.cs @@ -144,7 +144,7 @@ private static AssemblyBuilder DefineAssemblyBuilder(string assemblyResultPath, #endif var assemblyMode = saveToDisk - ? (AssemblyBuilderAccess)3 // https://apisof.net/catalog/System.Reflection.Emit.AssemblyBuilderAccess.RunAndSave + ? (AssemblyBuilderAccess) 3 // https://apisof.net/catalog/System.Reflection.Emit.AssemblyBuilderAccess.RunAndSave : AssemblyBuilderAccess.RunAndCollect; var assemblyBuilder = saveToDisk @@ -165,7 +165,7 @@ private static void DefineAssemblyAttributes(AssemblyBuilder assemblyBuilder) var attBuilder = new CustomAttributeBuilder( attributeCtor, - [(int)CompilationRelaxations.NoStringInterning]); + [(int) CompilationRelaxations.NoStringInterning]); assemblyBuilder.SetCustomAttribute(attBuilder); // [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] @@ -484,10 +484,10 @@ private MethodBuilder EmitTrickTheJit() ?? throw new MissingMemberException(nameof(Random.Next)); ilBuilder.Emit(OpCodes.Ldarg_0); - ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte)123); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte) 123); ilBuilder.Emit(OpCodes.Newobj, randomCtor); ilBuilder.Emit(OpCodes.Ldc_I4_0); - ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte)10); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte) 10); ilBuilder.Emit(OpCodes.Callvirt, randomNextMethod); ilBuilder.Emit(OpCodes.Call, forDisassemblyDiagnoserMethod); @@ -524,7 +524,7 @@ private MethodBuilder EmitForDisassemblyDiagnoserMethod() IL_0003: bne.un.s IL_0014 // we use long jump */ ilBuilder.Emit(OpCodes.Ldarg_1); - ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte)11); + ilBuilder.Emit(OpCodes.Ldc_I4_S, (byte) 11); ilBuilder.Emit(OpCodes.Bne_Un, notElevenLabel); { /* @@ -567,7 +567,7 @@ instance void Overhead (int64 arg0) cil managed noinlining flags(0200) // Replace arg names var parameters = Descriptor.WorkloadMethod.GetParameters() .Select(p => - (ParameterInfo)new EmitParameterInfo( + (ParameterInfo) new EmitParameterInfo( p.Position, ArgParamPrefix + p.Position, p.ParameterType, diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs index d87ba0162e..8be9348304 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Emitters/RuntimeAsyncEmitter.cs @@ -7,7 +7,7 @@ namespace BenchmarkDotNet.Toolchains.InProcess.Emit.Implementation; partial class RunnableEmitter { // MethodImplAttributes.Async was added in .Net 10. - private const MethodImplAttributes AsyncMethodImplAttribute = (MethodImplAttributes)8192; + private const MethodImplAttributes AsyncMethodImplAttribute = (MethodImplAttributes) 8192; // Looked up at runtime because the frameworks BenchmarkDotNet targets either lack it or mark it experimental. private static readonly Lazy AsyncHelpersType = new(() => diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs index 8a26221a73..59772fa524 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/Implementation/Runnable/RunnableReflectionHelpers.cs @@ -121,7 +121,7 @@ private static TDelegate GetDelegateCore(object instance, string memb if (result == null) throw new InvalidOperationException($"Can't find a member {memberName}."); - return (TDelegate)(object)Delegate.CreateDelegate(typeof(TDelegate), instance, result); + return (TDelegate) (object) Delegate.CreateDelegate(typeof(TDelegate), instance, result); } } } diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs index ead2c13379..c20b0034be 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/Emit/InProcessEmitRunner.cs @@ -51,7 +51,7 @@ public static async ValueTask Run(IHost host, ExecuteParameters parameters) } internal static Type GetRunnableType(ExecuteParameters parameters) - => ((InProcessEmitArtifactsPath)parameters.BuildResult.ArtifactsPaths) + => ((InProcessEmitArtifactsPath) parameters.BuildResult.ArtifactsPaths) .GeneratedAssembly .GetType(EmittedTypePrefix + parameters.BenchmarkId)!; @@ -63,7 +63,7 @@ private static async ValueTask RunCore(Type runnableType, IHost host, ExecutePar // generated member by name on a type the benchmark also contributes members to. var constructorArguments = new object?[1]; var instance = runnableType.GetConstructors().Single().Invoke(constructorArguments); - var trickTheJit = (Action)constructorArguments[0]!; + var trickTheJit = (Action) constructorArguments[0]!; FillMembers(instance, benchmarkCase, host.CancellationToken); host.WriteLine(); diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs index 11a957900f..fdce9ab172 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionBase.cs @@ -59,7 +59,7 @@ protected static TDelegate Unroll(TDelegate callback, int unrollFacto delegates[i] = callback; } - return (TDelegate)Delegate.Combine(delegates)!; + return (TDelegate) Delegate.Combine(delegates)!; } // must be kept in sync with Runnable_X.Overhead diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs index 8300b040fc..f9c26f3120 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/BenchmarkActionFactory.cs @@ -129,7 +129,7 @@ private static void PrepareInstanceAndResultType(object instance, MethodInfo tar /// Helper to enforce .ctor signature. private static BenchmarkActionBase Create(Type actionType, object? instance, MethodInfo method, int unrollFactor) => - (BenchmarkActionBase)Activator.CreateInstance(actionType, instance, method, unrollFactor)!; + (BenchmarkActionBase) Activator.CreateInstance(actionType, instance, method, unrollFactor)!; private static readonly MethodInfo FallbackSignature = new Action(BenchmarkActionBase.OverheadStatic).GetMethodInfo(); diff --git a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitRunner.cs b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitRunner.cs index 326f858e9f..e38e5b5931 100644 --- a/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitRunner.cs +++ b/src/BenchmarkDotNet/Toolchains/InProcess/NoEmit/InProcessNoEmitRunner.cs @@ -37,7 +37,7 @@ public static async ValueTask Run(IHost host, ExecuteParameters parameters, var methodInfo = type.GetMethod(nameof(Runnable.RunCore), BindingFlags.Public | BindingFlags.Static) ?? throw new InvalidOperationException($"Bug: method {nameof(Runnable.RunCore)} in {inProcessRunnableTypeName} not found."); - await ((ValueTask)methodInfo.Invoke(null, [host, parameters, benchmarkActionFactory])!).ConfigureAwait(); + await ((ValueTask) methodInfo.Invoke(null, [host, parameters, benchmarkActionFactory])!).ConfigureAwait(); return 0; } diff --git a/src/BenchmarkDotNet/Toolchains/LargeAddressAware.cs b/src/BenchmarkDotNet/Toolchains/LargeAddressAware.cs index e30345adfa..7929fbc64f 100644 --- a/src/BenchmarkDotNet/Toolchains/LargeAddressAware.cs +++ b/src/BenchmarkDotNet/Toolchains/LargeAddressAware.cs @@ -11,7 +11,7 @@ public static void SetLargeAddressAware(string filePath) var value = binaryReader.ReadInt16(); if ((value & 0x20) == 0) { - value = (short)(value | 0x20); + value = (short) (value | 0x20); stream.Position -= 2; var binaryWriter = new BinaryWriter(stream); binaryWriter.Write(value); diff --git a/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs b/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs index a9b7bf0631..d28cbc8656 100644 --- a/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs +++ b/src/BenchmarkDotNet/Toolchains/Wasm/WasmExecutor.cs @@ -57,7 +57,7 @@ private async ValueTask ProbeWebSocketSupportAsync(BenchmarkCase benchmark } finally { - if (!probeProcess.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!probeProcess.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { probeProcess.KillTree(); } @@ -144,7 +144,7 @@ private async ValueTask Execute(BenchmarkCase benchmarkCase, Benc if (isFileBasedIpc) { - ((FileStdOutListener)processListener.Listener).AttachProcessOutputReader(processOutputReader); + ((FileStdOutListener) processListener.Listener).AttachProcessOutputReader(processOutputReader); } await diagnoser.HandleAsync(HostSignal.BeforeProcessStart, new DiagnoserActionParameters(processListener.Process, benchmarkCase, benchmarkId), cancellationToken).ConfigureAwait(); @@ -218,7 +218,7 @@ await broker.ProcessData(cancellationToken) .WaitAsync(TimeSpan.FromMinutes(settings.ProcessTimeoutMinutes)).ConfigureAwait(false); #pragma warning restore CA2016 // Forward the 'CancellationToken' parameter to methods - if (!process.WaitForExit(milliseconds: (int)ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) + if (!process.WaitForExit(milliseconds: (int) ExecuteParameters.ProcessExitTimeout.TotalMilliseconds)) { logger.WriteLineInfo($"// The benchmarking process did not quit within {ExecuteParameters.ProcessExitTimeout.TotalSeconds} seconds, it's going to get force killed now."); } diff --git a/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs b/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs index f33d3429b3..127696387a 100644 --- a/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs +++ b/src/BenchmarkDotNet/Validators/DotNetSdkValidator.cs @@ -148,7 +148,7 @@ private static void Get45PlusFromRegistry(List versions) { if (ndpKey.GetValue("Release") != null) { - versions.Add(CheckFor45PlusVersion((int)ndpKey.GetValue("Release")!)); + versions.Add(CheckFor45PlusVersion((int) ndpKey.GetValue("Release")!)); } } } diff --git a/src/BenchmarkDotNet/Validators/ValidationError.cs b/src/BenchmarkDotNet/Validators/ValidationError.cs index ad05c0ae61..852fda3040 100644 --- a/src/BenchmarkDotNet/Validators/ValidationError.cs +++ b/src/BenchmarkDotNet/Validators/ValidationError.cs @@ -35,7 +35,7 @@ public override bool Equals(object? obj) return true; if (obj.GetType() != GetType()) return false; - return Equals((ValidationError)obj); + return Equals((ValidationError) obj); } public override int GetHashCode() => HashCode.Combine(IsCritical, Message, BenchmarkCase); diff --git a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs index 8c7bb31f4d..31f4861669 100644 --- a/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs +++ b/tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs @@ -523,7 +523,7 @@ public static IEnumerable NonPublicClassMemberAccessModifiers #pragma warning restore IDE0028 // Simplify collection initialization public static IEnumerable<(string CurrentUniqueAttributeUsage, int CurrentUniqueAttributeUsagePosition, int[] Counts)> DuplicateSameParameterAttributeUsages - => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int)tdr[1], (tdr[2] as int[])!)); + => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int) tdr[1], (tdr[2] as int[])!)); public static IEnumerable DuplicateParameterAttributeUsageCounts => DuplicateAttributeUsageCountsTheoryData; @@ -692,7 +692,7 @@ public static IEnumerable NonPublicClassMemberAccessModifiers #pragma warning restore IDE0028 // Simplify collection initialization public static IEnumerable<(string CurrentUniqueAttributeUsage, int CurrentUniqueAttributeUsagePosition, int[] Counts)> DuplicateSameParameterAttributeUsages - => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int)tdr[1], (tdr[2] as int[])!)); + => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int) tdr[1], (tdr[2] as int[])!)); public static TheoryData DuplicateParameterAttributeUsageCounts => DuplicateAttributeUsageCountsTheoryData; @@ -1155,7 +1155,7 @@ public static TheoryData UniqueParameterAttributeUsages => UniqueParameterAttributesTheoryData.Select(tdr => ((tdr[0] as string)!, (tdr[1] as string)!)); public static IEnumerable<(string CurrentUniqueAttributeUsage, int CurrentUniqueAttributeUsagePosition, int[] Counts)> DuplicateSameParameterAttributeUsages - => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int)tdr[1], (tdr[2] as int[])!)); + => DuplicateSameAttributeUsagesTheoryData.Select(tdr => ((tdr[0] as string)!, (int) tdr[1], (tdr[2] as int[])!)); public static TheoryData DuplicateParameterAttributeUsageCounts => DuplicateAttributeUsageCountsTheoryData; diff --git a/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs b/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs index 9c2ff25c73..2b3f963e6f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.SharedDiagnosers/MockInProcessDiagnoser.cs @@ -78,7 +78,7 @@ public sealed class MockInProcessDiagnoserHandler : IInProcessDiagnoserHandler public void Initialize(string? serializedConfig) { var split = serializedConfig!.Split(' '); - _signal = (BenchmarkSignal)Enum.Parse(typeof(BenchmarkSignal), split[0]); + _signal = (BenchmarkSignal) Enum.Parse(typeof(BenchmarkSignal), split[0]); _result = split[1]; } diff --git a/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs b/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs index da909c04ab..aad4657910 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs @@ -206,7 +206,7 @@ public static class ExternalGenericArgumentsSource { public static IEnumerable SingleValue() { - yield return (T)(object)3; + yield return (T) (object) 3; } public static IEnumerable ArgumentList() @@ -534,7 +534,7 @@ public class WithArrayOfStringAsArgument // arguments accept "params object[]", when we pass just a string[] it's recognized as an array of params public void TypeReflectionArrayGetType(object anArray) { - string[] strings = (string[])anArray; + string[] strings = (string[]) anArray; if (strings.Length != 0) throw new ArgumentException("The array should be empty"); @@ -1019,16 +1019,16 @@ public enum SomeEnum : long } [Benchmark] - [Arguments(SomeEnum.First, (SomeEnum)100, (SomeEnum)(-100))] + [Arguments(SomeEnum.First, (SomeEnum) 100, (SomeEnum) (-100))] public void Test(SomeEnum defined, SomeEnum undefined, SomeEnum undefinedNegative) { if (SomeEnum.First != defined) throw new ArgumentException("The passed defined enum has wrong value!"); - if ((SomeEnum)100 != undefined) + if ((SomeEnum) 100 != undefined) throw new ArgumentException("The passed undefined enum has wrong value!"); - if ((SomeEnum)(-100) != undefinedNegative) + if ((SomeEnum) (-100) != undefinedNegative) throw new ArgumentException("The passed undefined negative enum has wrong value!"); } } diff --git a/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs b/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs index 7f1f886967..b159f81833 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/CustomBuildConfigurationTests.cs @@ -22,7 +22,7 @@ public void UserCanSpecifyCustomBuildConfiguration() var jobWithCustomConfiguration = Job.Dry.WithCustomBuildConfiguration("CUSTOM"); var config = CreateSimpleConfig(job: jobWithCustomConfiguration); - config = ((ManualConfig)config).WithBuildTimeout(TimeSpan.FromSeconds(360)); + config = ((ManualConfig) config).WithBuildTimeout(TimeSpan.FromSeconds(360)); var report = CanExecute(config); diff --git a/tests/BenchmarkDotNet.IntegrationTests/Detectors/CpuDetectorTests.cs b/tests/BenchmarkDotNet.IntegrationTests/Detectors/CpuDetectorTests.cs index 58e3ed5158..197dd91da8 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Detectors/CpuDetectorTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Detectors/CpuDetectorTests.cs @@ -59,8 +59,8 @@ public void DetectCpuInfoOnWindowsAndCompareValues() return; } - var expected = (double)ctx.Expectation!.Value; - var actual = (double)ctx.Subject!.Value; + var expected = (double) ctx.Expectation!.Value; + var actual = (double) ctx.Subject!.Value; var tolerance = Math.Abs(expected) * 0.02d; // Accept 2% difference actual.Should().BeApproximately(expected, tolerance); }).WhenTypeIs()); diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs index 687fc51ec4..d1311d17eb 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcess.EmitTests/NaiveRunnableEmitDiff.cs @@ -194,7 +194,7 @@ private static Instruction ResolveLeaveTarget(Instruction target) var seen = new HashSet(); while (IsLeave(target) && seen.Add(target)) { - target = (Instruction)target.Operand; + target = (Instruction) target.Operand; } return target; } @@ -619,29 +619,29 @@ private static void Diff(Instruction op1, Instruction op2, MethodDefinition meth } else if (op1.Operand is TypeReference tr) { - DiffSignature(tr, (TypeReference)op2.Operand); + DiffSignature(tr, (TypeReference) op2.Operand); } else if (op1.Operand is FieldReference fr) { - DiffSignature(fr, (FieldReference)op2.Operand); + DiffSignature(fr, (FieldReference) op2.Operand); } else if (op1.Operand is MethodReference mr) { - DiffSignature(mr, (MethodReference)op2.Operand); + DiffSignature(mr, (MethodReference) op2.Operand); } else if (op1.Operand is ParameterDefinition p) { - DiffSignature(p, (ParameterDefinition)op2.Operand); + DiffSignature(p, (ParameterDefinition) op2.Operand); } else if (op1.Operand is VariableDefinition v) { - DiffSignature(v, (VariableDefinition)op2.Operand, method1); + DiffSignature(v, (VariableDefinition) op2.Operand, method1); } else if (op1.Operand is Instruction i) { // Follow leave-chains so a paired-up Leave on each side compares against its FINAL // destination — Roslyn jumps directly, ILGenerator chains via implicit hops. - var resolved2 = ResolveLeaveTarget((Instruction)op2.Operand); + var resolved2 = ResolveLeaveTarget((Instruction) op2.Operand); var resolved1 = ResolveLeaveTarget(i); op2ToOp1Map.TryGetValue(resolved2, out var expectedOp1Operand); if (resolved1 != expectedOp1Operand) @@ -651,7 +651,7 @@ private static void Diff(Instruction op1, Instruction op2, MethodDefinition meth { // OpCodes.Switch has an Instruction[] operand. Each branch target must map to the // same instruction-index on both sides via op2ToOp1Map, just like the single-target case. - var targets2 = (Instruction[])op2.Operand; + var targets2 = (Instruction[]) op2.Operand; if (targets1.Length != targets2.Length) throw new InvalidOperationException($"No matching op for {op1} vs {op2} ({method1})."); for (int t = 0; t < targets1.Length; t++) diff --git a/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs b/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs index 7a11389686..800df6e9fa 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs @@ -91,7 +91,7 @@ public void BenchmarkDifferentPlatformReturnsValidationError() [AssertionMethod] private async Task TestInvoke(Expression> methodCall, int unrollFactor) { - var targetMethod = ((MethodCallExpression)methodCall.Body).Method; + var targetMethod = ((MethodCallExpression) methodCall.Body).Method; var descriptor = new Descriptor(typeof(BenchmarkAllCases), targetMethod, targetMethod, targetMethod); // Run mode @@ -119,7 +119,7 @@ private async Task TestInvoke(Expression> methodCall, [AssertionMethod] private async Task TestInvoke(Expression> methodCall, int unrollFactor) { - var targetMethod = ((MethodCallExpression)methodCall.Body).Method; + var targetMethod = ((MethodCallExpression) methodCall.Body).Method; await TestInvoke(targetMethod, unrollFactor); } diff --git a/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs b/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs index 6d6880b0ef..0cb4b819c2 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/JitListenerTests.cs @@ -325,7 +325,7 @@ public void JitStage_OverloadsAreNotConfused() using var observer = JitListener.Create([watched.Method]); - RunJitStageToCompletion(observer, [driven.Method], i => driven((int)i)); + RunJitStageToCompletion(observer, [driven.Method], i => driven((int) i)); Assert.NotNull(observer); Assert.False(observer.ReachedFinalTier, @@ -342,7 +342,7 @@ public void JitStage_CanonicalizedOverloadsAreNotConfused() using var observer = JitListener.Create([watched.Method]); - RunJitStageToCompletion(observer, [driven.Method], i => driven((int)i)); + RunJitStageToCompletion(observer, [driven.Method], i => driven((int) i)); Assert.NotNull(observer); Assert.False(observer.ReachedFinalTier, diff --git a/tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs b/tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs index 5371dc8dd1..3e75f85c5a 100755 --- a/tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs @@ -436,7 +436,7 @@ int GetSize(Type type) { var sizeOf = typeof(Unsafe).GetTypeInfo().GetMethod(nameof(Unsafe.SizeOf))!; - return (int)sizeOf.MakeGenericMethod(type).Invoke(null, null)!; + return (int) sizeOf.MakeGenericMethod(type).Invoke(null, null)!; } return typeof(T) diff --git a/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs b/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs index 8da61638f2..58c72ad38f 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/Shared/BenchmarkTestExecutor.cs @@ -107,7 +107,7 @@ private static void ValidateSummary(Summary summary) protected IConfig CreateSimpleConfig(OutputLogger? logger = null, Job? job = null) { - var baseConfig = job == null ? (IConfig)new SingleRunFastConfig() : new SingleJobConfig(job); + var baseConfig = job == null ? (IConfig) new SingleRunFastConfig() : new SingleJobConfig(job); return baseConfig .AddLogger(logger ?? (Output != null ? new OutputLogger(Output) : ConsoleLogger.Default)) .AddColumnProvider(DefaultColumnProviders.Instance) diff --git a/tests/BenchmarkDotNet.IntegrationTests/ValuesReturnedByBenchmarkTest.cs b/tests/BenchmarkDotNet.IntegrationTests/ValuesReturnedByBenchmarkTest.cs index 57891903f4..14833498b9 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/ValuesReturnedByBenchmarkTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/ValuesReturnedByBenchmarkTest.cs @@ -105,7 +105,7 @@ public class Job { } public unsafe void* PointerToAnything() => System.IntPtr.Zero.ToPointer(); [Benchmark] - public unsafe int* PointerToUnmanagedType() => (int*)System.IntPtr.Zero.ToPointer(); + public unsafe int* PointerToUnmanagedType() => (int*) System.IntPtr.Zero.ToPointer(); [Benchmark] public unsafe delegate* FunctionPointer() => &ReturnArgument; diff --git a/tests/BenchmarkDotNet.Tests/Attributes/ParamsAllValuesVerifyTests.cs b/tests/BenchmarkDotNet.Tests/Attributes/ParamsAllValuesVerifyTests.cs index 56204d09e1..85cd38b415 100644 --- a/tests/BenchmarkDotNet.Tests/Attributes/ParamsAllValuesVerifyTests.cs +++ b/tests/BenchmarkDotNet.Tests/Attributes/ParamsAllValuesVerifyTests.cs @@ -38,7 +38,7 @@ public async Task BenchmarkShouldProduceSummary(Type benchmarkType) var exporter = MarkdownExporter.Mock; var summary = MockFactory.CreateSummary(benchmarkType); - await ((ExporterBase)exporter).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) exporter).ExportToLogAsync(summary, logger, CancellationToken.None); var validator = ParamsAllValuesValidator.FailOnError; var errors = await validator.ValidateAsync(new ValidationParameters(summary.BenchmarksCases, summary.BenchmarksCases.First().Config)).ToArrayAsync(); diff --git a/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs b/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs index a818280098..dc0f61754f 100644 --- a/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs +++ b/tests/BenchmarkDotNet.Tests/CharacteristicPresenterTests.cs @@ -12,7 +12,7 @@ public class CharacteristicPresenterTests [InlineData(0, 4, "0000")] public void ProcessorAffinityIsPrintedAsBitMask(int mask, int processorCount, string expectedResult) { - Assert.Equal(expectedResult, ((IntPtr)mask).ToPresentation(processorCount)); + Assert.Equal(expectedResult, ((IntPtr) mask).ToPresentation(processorCount)); } [Fact] diff --git a/tests/BenchmarkDotNet.Tests/ConfigParserTests.cs b/tests/BenchmarkDotNet.Tests/ConfigParserTests.cs index e38de2e377..ea3f60e22e 100644 --- a/tests/BenchmarkDotNet.Tests/ConfigParserTests.cs +++ b/tests/BenchmarkDotNet.Tests/ConfigParserTests.cs @@ -264,8 +264,8 @@ public void CoreRunConfigParsedCorrectlyWhenRuntimeNotSpecified() Assert.Single(config.GetJobs()); CoreRunToolchain? toolchain = config.GetJobs().Single().GetToolchain() as CoreRunToolchain; Assert.NotNull(toolchain); - Assert.Equal(((Runtime)RuntimeInformation.GetCurrentRuntime()).GetTfm(), - ((DotNetCliBuilder)toolchain.Builder).Settings.TargetFrameworkMoniker); // runtime was not specified so the current was used + Assert.Equal(((Runtime) RuntimeInformation.GetCurrentRuntime()).GetTfm(), + ((DotNetCliBuilder) toolchain.Builder).Settings.TargetFrameworkMoniker); // runtime was not specified so the current was used Assert.Equal(fakeCoreRunPath, toolchain.SourceCoreRun.FullName); Assert.Equal(fakeDotnetCliPath, toolchain.Settings.CliPath?.FullName); Assert.Equal(fakeRestorePackages, toolchain.Settings.PackagesPath?.FullName); @@ -280,8 +280,8 @@ public void SpecifyingCoreRunWithFullFrameworkTargetsMostRecentTfm() Assert.NotNull(config); Job coreRunJob = config.GetJobs().Single(); - CoreRunToolchain coreRunToolchain = (CoreRunToolchain)coreRunJob.GetToolchain(); - DotNetCliBuilder builder = (DotNetCliBuilder)coreRunToolchain.Builder; + CoreRunToolchain coreRunToolchain = (CoreRunToolchain) coreRunJob.GetToolchain(); + DotNetCliBuilder builder = (DotNetCliBuilder) coreRunToolchain.Builder; Assert.Equal("net12.0", builder.Settings.TargetFrameworkMoniker); } @@ -302,16 +302,16 @@ public void SpecifyingCoreRunAndRuntimeCreatesTwoJobs() Job coreRunJob = config.GetJobs().Single(job => job.GetToolchain() is CoreRunToolchain); Job runtimeJob = config.GetJobs().Single(job => job.GetToolchain() is CsProjCoreToolchain); - CoreRunToolchain coreRunToolchain = (CoreRunToolchain)coreRunJob.GetToolchain(); - DotNetCliBuilder builder = (DotNetCliBuilder)coreRunToolchain.Builder; - Assert.Equal(((Runtime)RuntimeInformation.GetCurrentRuntime()).GetTfm(), builder.Settings.TargetFrameworkMoniker); + CoreRunToolchain coreRunToolchain = (CoreRunToolchain) coreRunJob.GetToolchain(); + DotNetCliBuilder builder = (DotNetCliBuilder) coreRunToolchain.Builder; + Assert.Equal(((Runtime) RuntimeInformation.GetCurrentRuntime()).GetTfm(), builder.Settings.TargetFrameworkMoniker); Assert.Equal(fakeCoreRunPath, coreRunToolchain.SourceCoreRun.FullName); Assert.Equal(fakeDotnetCliPath, coreRunToolchain.Settings.CliPath?.FullName); Assert.Equal(fakeRestorePackages, coreRunToolchain.Settings.PackagesPath?.FullName); - CsProjCoreToolchain coreToolchain = (CsProjCoreToolchain)runtimeJob.GetToolchain(); - builder = (DotNetCliBuilder)coreToolchain.Builder; - Assert.Equal(runtime, ((DotNetCliBuilder)coreToolchain.Builder).Settings.TargetFrameworkMoniker); + CsProjCoreToolchain coreToolchain = (CsProjCoreToolchain) runtimeJob.GetToolchain(); + builder = (DotNetCliBuilder) coreToolchain.Builder; + Assert.Equal(runtime, ((DotNetCliBuilder) coreToolchain.Builder).Settings.TargetFrameworkMoniker); Assert.Equal(fakeDotnetCliPath, coreToolchain.Settings.CliPath?.FullName); Assert.Equal(fakeRestorePackages, builder.Settings.PackagesPath?.FullName); } @@ -328,7 +328,7 @@ public void FirstJobIsBaseline_RuntimesCoreRun() Assert.Equal(3, config.GetJobs().Count()); Job baselineJob = config.GetJobs().Single(job => job.Meta.Baseline == true); Assert.False(baselineJob.GetToolchain() is CoreRunToolchain); - Assert.Equal(runtime1, ((DotNetCliBuilder)baselineJob.GetToolchain().Builder).Settings.TargetFrameworkMoniker); + Assert.Equal(runtime1, ((DotNetCliBuilder) baselineJob.GetToolchain().Builder).Settings.TargetFrameworkMoniker); } [FactEnvSpecific("It's impossible to determine TFM for CoreRunToolchain if host process is not .NET (Core) process", EnvRequirement.DotNetCoreOnly)] @@ -343,7 +343,7 @@ public void FirstJobIsBaseline_CoreRunsRuntimes() Assert.NotNull(config); Assert.Equal(4, config.GetJobs().Count()); Job baselineJob = config.GetJobs().Single(job => job.Meta.Baseline == true); - Assert.Equal(fakePath1, ((CoreRunToolchain)baselineJob.GetToolchain()).SourceCoreRun.FullName); + Assert.Equal(fakePath1, ((CoreRunToolchain) baselineJob.GetToolchain()).SourceCoreRun.FullName); } [FactEnvSpecific("It's impossible to determine TFM for CoreRunToolchain if host process is not .NET (Core) process", EnvRequirement.DotNetCoreOnly)] @@ -432,8 +432,8 @@ public void IlCompilerPathParsedCorrectly() Assert.Single(config.GetJobs()); CsProjNativeAotToolchain? toolchain = config.GetJobs().Single().GetToolchain() as CsProjNativeAotToolchain; Assert.NotNull(toolchain); - Assert.Equal(fakePath.FullName, ((NativeAotSettings)toolchain.Settings).LocalIlcPackages?.FullName); - Assert.Equal("12.0.0-dev", ((NativeAotSettings)toolchain.Settings).IlCompilerVersion); + Assert.Equal(fakePath.FullName, ((NativeAotSettings) toolchain.Settings).LocalIlcPackages?.FullName); + Assert.Equal("12.0.0-dev", ((NativeAotSettings) toolchain.Settings).IlCompilerVersion); } [Fact] @@ -452,10 +452,10 @@ public void UserCanSpecifyMultipleIlcPackagesPaths() Assert.Equal(2, jobs.Length); var baseline = Assert.Single(jobs, job => job.Meta.Baseline); Assert.Equal("NativeAOT 10.0-1", baseline.Id); - Assert.Equal(before.FullName, ((NativeAotSettings)((CsProjNativeAotToolchain)baseline.GetToolchain()).Settings).LocalIlcPackages?.FullName); + Assert.Equal(before.FullName, ((NativeAotSettings) ((CsProjNativeAotToolchain) baseline.GetToolchain()).Settings).LocalIlcPackages?.FullName); var other = Assert.Single(jobs, job => !job.Meta.Baseline); Assert.Equal("NativeAOT 10.0-2", other.Id); - Assert.Equal(after.FullName, ((NativeAotSettings)((CsProjNativeAotToolchain)other.GetToolchain()).Settings).LocalIlcPackages?.FullName); + Assert.Equal(after.FullName, ((NativeAotSettings) ((CsProjNativeAotToolchain) other.GetToolchain()).Settings).LocalIlcPackages?.FullName); } finally { @@ -503,7 +503,7 @@ public void SingleIlcPackagesPathCanBeCombinedWithPackagesPath() var config = ConfigParser.Parse(["-r", "nativeaot10.0", "--packages", packages, "--ilcPackages", existing.FullName], new OutputLogger(Output)).config; Assert.NotNull(config); - var settings = (NativeAotSettings)((CsProjNativeAotToolchain)Assert.Single(config.GetJobs()).GetToolchain()).Settings; + var settings = (NativeAotSettings) ((CsProjNativeAotToolchain) Assert.Single(config.GetJobs()).GetToolchain()).Settings; Assert.Equal(packages, settings.PackagesPath?.FullName); } @@ -587,14 +587,14 @@ public void DotNetCliParsedCorrectly(string tfm, bool isCore) if (isCore) { Assert.True(toolchain is CsProjCoreToolchain); - Assert.Equal(fakeDotnetCliPath, ((CsProjCoreToolchain)toolchain).Settings.CliPath?.FullName); + Assert.Equal(fakeDotnetCliPath, ((CsProjCoreToolchain) toolchain).Settings.CliPath?.FullName); } else { Assert.True(toolchain is CsProjFrameworkToolchain); - Assert.Equal(fakeDotnetCliPath, ((DotNetCliBuilder)toolchain.Builder).Settings.CliPath?.FullName); + Assert.Equal(fakeDotnetCliPath, ((DotNetCliBuilder) toolchain.Builder).Settings.CliPath?.FullName); } - Assert.Equal(tfm, ((DotNetCliBuilder)toolchain.Builder).Settings.TargetFrameworkMoniker); + Assert.Equal(tfm, ((DotNetCliBuilder) toolchain.Builder).Settings.TargetFrameworkMoniker); } [Theory] @@ -661,7 +661,7 @@ public void PackagesPathParsedCorrectly() Assert.Single(config.GetJobs()); var toolchain = config.GetJobs().Single().GetToolchain() as CsProjCoreToolchain; Assert.NotNull(toolchain); - Assert.Equal(fakeRestoreDirectory, ((DotNetCliBuilder)toolchain.Builder).Settings.PackagesPath?.FullName); + Assert.Equal(fakeRestoreDirectory, ((DotNetCliBuilder) toolchain.Builder).Settings.PackagesPath?.FullName); } [Fact] @@ -673,7 +673,7 @@ public void FreshPackagesParsedCorrectly() Assert.Single(config.GetJobs()); var toolchain = config.GetJobs().Single().GetToolchain() as CsProjCoreToolchain; Assert.NotNull(toolchain); - Assert.True(((DotNetCliBuilder)toolchain.Builder).Settings.UseFreshPackages); + Assert.True(((DotNetCliBuilder) toolchain.Builder).Settings.UseFreshPackages); } [Fact] @@ -683,7 +683,7 @@ public void UserCanSpecifyAffinity() var config = ConfigParser.Parse(["--affinity", affinity.ToString()], new OutputLogger(Output)).config; Assert.NotNull(config); - Assert.Equal(new IntPtr((long)affinity), config.GetJobs().Single().Environment.Affinity); + Assert.Equal(new IntPtr((long) affinity), config.GetJobs().Single().Environment.Affinity); } [FactEnvSpecific("A mask with a bit above 32 does not fit in IntPtr on a 32 bit runtime", EnvRequirement.Platform64BitOnly)] @@ -693,7 +693,7 @@ public void UserCanSpecifyAffinityBeyondThirtyTwoProcessors() var config = ConfigParser.Parse(["--affinity", affinity.ToString()], new OutputLogger(Output)).config; Assert.NotNull(config); - Assert.Equal(new IntPtr((long)affinity), config.GetJobs().Single().Environment.Affinity); + Assert.Equal(new IntPtr((long) affinity), config.GetJobs().Single().Environment.Affinity); } [FactEnvSpecific("A mask with the top bit set does not fit in IntPtr on a 32 bit runtime", EnvRequirement.Platform64BitOnly)] @@ -705,7 +705,7 @@ public void UserCanSpecifyAffinityForTheSixtyFourthProcessor() var config = ConfigParser.Parse(["--affinity", affinity.ToString()], new OutputLogger(Output)).config; Assert.NotNull(config); - Assert.Equal(new IntPtr(unchecked((long)affinity)), config.GetJobs().Single().Environment.Affinity); + Assert.Equal(new IntPtr(unchecked((long) affinity)), config.GetJobs().Single().Environment.Affinity); } [Theory] @@ -715,7 +715,7 @@ public void UserCanSpecifyAffinityForTheSixtyFourthProcessor() public void AffinityThatFitsThirtyTwoBitsIsAcceptedByAThirtyTwoBitProcess(ulong affinity) { Assert.True(ConfigParser.TryConvertAffinity(affinity, pointerSize: 4, out var converted)); - Assert.Equal(new IntPtr(unchecked((int)affinity)), converted); + Assert.Equal(new IntPtr(unchecked((int) affinity)), converted); } [Theory] @@ -734,7 +734,7 @@ public void AffinityWiderThanThirtyTwoBitsIsRejectedByAThirtyTwoBitProcess(ulong public void AffinityOfAnyWidthIsAcceptedByASixtyFourBitProcess(ulong affinity) { Assert.True(ConfigParser.TryConvertAffinity(affinity, pointerSize: 8, out var converted)); - Assert.Equal(new IntPtr(unchecked((long)affinity)), converted); + Assert.Equal(new IntPtr(unchecked((long) affinity)), converted); } [Fact] @@ -825,7 +825,7 @@ public void NetMonikersAreRecognizedAsNetCoreMonikers(string tfm, string expecte Assert.Single(config.GetJobs()); var toolchain = config.GetJobs().Single().GetToolchain() as CsProjCoreToolchain; Assert.NotNull(toolchain); - Assert.Equal(expectedTfm, ((DotNetCliBuilder)toolchain.Builder).Settings.TargetFrameworkMoniker); + Assert.Equal(expectedTfm, ((DotNetCliBuilder) toolchain.Builder).Settings.TargetFrameworkMoniker); } [Theory] @@ -839,7 +839,7 @@ public void PlatformSpecificMonikersAreSupported(string msBuildMoniker) Assert.Single(config.GetJobs()); var toolchain = config.GetJobs().Single().GetToolchain() as CsProjCoreToolchain; Assert.NotNull(toolchain); - Assert.Equal(msBuildMoniker, ((DotNetCliBuilder)toolchain.Builder).Settings.TargetFrameworkMoniker); + Assert.Equal(msBuildMoniker, ((DotNetCliBuilder) toolchain.Builder).Settings.TargetFrameworkMoniker); } [Fact] @@ -1095,7 +1095,7 @@ public void UserCanSpecifyWasmArgs() foreach (var job in parsedConfiguration.config.GetJobs()) { var wasmToolchain = Assert.IsAssignableFrom(job.GetToolchain()); - Assert.Equal(" --expose_wasm --module", ((WasmSettings)wasmToolchain.Settings).JavaScriptEngineArguments); + Assert.Equal(" --expose_wasm --module", ((WasmSettings) wasmToolchain.Settings).JavaScriptEngineArguments); } } @@ -1109,7 +1109,7 @@ public void UserCanSpecifyWasmArgsUsingEquals() foreach (var job in parsedConfiguration.config.GetJobs()) { var wasmToolchain = Assert.IsAssignableFrom(job.GetToolchain()); - Assert.Equal("--expose_wasm --module", ((WasmSettings)wasmToolchain.Settings).JavaScriptEngineArguments); + Assert.Equal("--expose_wasm --module", ((WasmSettings) wasmToolchain.Settings).JavaScriptEngineArguments); } } @@ -1132,7 +1132,7 @@ public void UserCanSpecifyWasmArgsViaResponseFile() var wasmToolchain = Assert.IsAssignableFrom(job.GetToolchain()); // We may need change assertion to just "--expose_wasm --module" // if https://github.com/commandlineparser/commandline/pull/892 lands - Assert.Equal(" --expose_wasm --module", ((WasmSettings)wasmToolchain.Settings).JavaScriptEngineArguments); + Assert.Equal(" --expose_wasm --module", ((WasmSettings) wasmToolchain.Settings).JavaScriptEngineArguments); } } @@ -1144,7 +1144,7 @@ public void UserCanSpecifyWasmMainJsTemplate() var job = parsedConfiguration.config!.GetJobs().Single(); var wasmToolchain = Assert.IsAssignableFrom(job.GetToolchain()); - Assert.Equal("dummyFile.js", ((WasmSettings)wasmToolchain.Settings).MainJsTemplate?.Name); + Assert.Equal("dummyFile.js", ((WasmSettings) wasmToolchain.Settings).MainJsTemplate?.Name); } [Theory] diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs index 1ebf181a4d..f3dbae8698 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Arm64DisassemblerTests.IsLdrLiteral64.cs @@ -29,10 +29,10 @@ public void IsLdrLiteral64() var instruction = Arm64Instruction.Decode(rawInstruction); instruction.Id.Should().Be(Arm64InstructionId.LDR_64_loadlit); - var registerOperand = (Arm64RegisterOperand)instruction.GetOperand(0); - registerOperand.Value.Should().Be((Arm64RegisterAny)X5); + var registerOperand = (Arm64RegisterOperand) instruction.GetOperand(0); + registerOperand.Value.Should().Be((Arm64RegisterAny) X5); - var labelOperand = (Arm64LabelOperand)instruction.GetOperand(1); + var labelOperand = (Arm64LabelOperand) instruction.GetOperand(1); labelOperand.Offset.Should().Be(expectedOffsetBytes); } @@ -55,11 +55,11 @@ public void IsLdrLiteral64_WithMinValue() var instruction = Arm64Instruction.Decode(rawInstruction); instruction.Id.Should().Be(Arm64InstructionId.LDR_64_loadlit); - var registerOperand = (Arm64RegisterOperand)instruction.GetOperand(0); - registerOperand.Value.Should().Be((Arm64RegisterAny)X0); + var registerOperand = (Arm64RegisterOperand) instruction.GetOperand(0); + registerOperand.Value.Should().Be((Arm64RegisterAny) X0); - var labelOperand = (Arm64LabelOperand)instruction.GetOperand(1); + var labelOperand = (Arm64LabelOperand) instruction.GetOperand(1); labelOperand.Offset.Should().Be(expectedOffsetBytes); } @@ -82,10 +82,10 @@ public void IsLdrLiteral64_WithMaxValue() var instruction = Arm64Instruction.Decode(rawInstruction); instruction.Id.Should().Be(Arm64InstructionId.LDR_64_loadlit); - var registerOperand = (Arm64RegisterOperand)instruction.GetOperand(0); - registerOperand.Value.Should().Be((Arm64RegisterAny)X0); + var registerOperand = (Arm64RegisterOperand) instruction.GetOperand(0); + registerOperand.Value.Should().Be((Arm64RegisterAny) X0); - var labelOperand = (Arm64LabelOperand)instruction.GetOperand(1); + var labelOperand = (Arm64LabelOperand) instruction.GetOperand(1); labelOperand.Offset.Should().Be(expectedOffsetBytes); } @@ -105,8 +105,8 @@ public void IsLdrLiteral64_With32bitRegister_ShouldBeFalse() var instruction = Arm64Instruction.Decode(rawInstruction); instruction.Id.Should().Be(Arm64InstructionId.LDR_32_loadlit); - var registerOperand = (Arm64RegisterOperand)instruction.GetOperand(0); - registerOperand.Value.Should().Be((Arm64RegisterAny)W5); + var registerOperand = (Arm64RegisterOperand) instruction.GetOperand(0); + registerOperand.Value.Should().Be((Arm64RegisterAny) W5); } } #endif diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/Arm64TestInstructions.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/Arm64TestInstructions.cs index 31942d6670..1371670c22 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/Arm64TestInstructions.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/Arm64TestInstructions.cs @@ -132,7 +132,7 @@ public static AsmArm64.Arm64Instruction ToAsmArm64Instruction(this uint rawInstr public static Arm64Instruction ToCapstoneArm64Instruction(this uint rawInstruction, ulong baseAddress, uint i) { - ulong offset = (ulong)i * 4; + ulong offset = (ulong) i * 4; return rawInstruction.ToCapstoneArm64Instruction(baseAddress + offset); } @@ -144,7 +144,7 @@ public static Arm64Instruction ToCapstoneArm64Instruction(this uint rawInstructi using var disassembler = CapstoneDisassembler.CreateArm64Disassembler(Arm64DisassembleMode.Arm); disassembler.EnableInstructionDetails = true; - var instructions = disassembler.Disassemble(bytes.ToArray(), (long)baseAddress); + var instructions = disassembler.Disassemble(bytes.ToArray(), (long) baseAddress); if (instructions.Length == 0) { var instruction = AsmArm64.Arm64Instruction.Decode(rawInstruction); diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs index d9491687f9..4207408b16 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/Arm64/Helpers/MockMemory.cs @@ -116,10 +116,10 @@ private int Read(ulong address, Span buffer) return 0; ulong offset = address - region.Address; - int available = region.Bytes.Length - (int)offset; + int available = region.Bytes.Length - (int) offset; int count = Math.Min(buffer.Length, available); - region.Bytes.AsSpan((int)offset, count).CopyTo(buffer); + region.Bytes.AsSpan((int) offset, count).CopyTo(buffer); return count; } @@ -147,7 +147,7 @@ private bool TryReadPointer(ulong address, out ulong value) ulong offset = address - region.Address; - if (offset < (ulong)region.Bytes.Length) + if (offset < (ulong) region.Bytes.Length) return region; } @@ -156,14 +156,14 @@ private bool TryReadPointer(ulong address, out ulong value) private static bool IsOverlapping(ulong address1, int length1, ulong address2, int length2) { - ulong end1 = checked(address1 + (ulong)length1); - ulong end2 = checked(address2 + (ulong)length2); + ulong end1 = checked(address1 + (ulong) length1); + ulong end2 = checked(address2 + (ulong) length2); return address1 < end2 && address2 < end1; } private static ulong GetEndAddress(ulong address, int length) - => checked(address + (ulong)length); + => checked(address + (ulong) length); private sealed class MemoryRegion(ulong address, byte[] bytes) { diff --git a/tests/BenchmarkDotNet.Tests/Disassemblers/GithubMarkdownDisassemblyExporterMultiCorerunTest.cs b/tests/BenchmarkDotNet.Tests/Disassemblers/GithubMarkdownDisassemblyExporterMultiCorerunTest.cs index 3caef15578..9956660088 100644 --- a/tests/BenchmarkDotNet.Tests/Disassemblers/GithubMarkdownDisassemblyExporterMultiCorerunTest.cs +++ b/tests/BenchmarkDotNet.Tests/Disassemblers/GithubMarkdownDisassemblyExporterMultiCorerunTest.cs @@ -29,7 +29,7 @@ public async Task ExportToLog_IncludesJobInfoInHeader() var exporter = new GithubMarkdownDisassemblyExporter(results, config); // Act - await ((ExporterBase)exporter).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) exporter).ExportToLogAsync(summary, logger, CancellationToken.None); // Assert var output = logger.GetLog(); @@ -49,7 +49,7 @@ public async Task ExportToLog_FormatsHeaderWithJobDisplayInfo() var exporter = new GithubMarkdownDisassemblyExporter(results, config); // Act - await ((ExporterBase)exporter).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) exporter).ExportToLogAsync(summary, logger, CancellationToken.None); // Assert var output = logger.GetLog(); diff --git a/tests/BenchmarkDotNet.Tests/EventPipeProfilerTests.cs b/tests/BenchmarkDotNet.Tests/EventPipeProfilerTests.cs index bf0f119865..bf0fc5a28f 100644 --- a/tests/BenchmarkDotNet.Tests/EventPipeProfilerTests.cs +++ b/tests/BenchmarkDotNet.Tests/EventPipeProfilerTests.cs @@ -31,12 +31,12 @@ public void UserSettingsOverrideDefaultSettings() var defaultSettings = new EventPipeProvider( DotNetRuntime, EventLevel.Informational, - (long)ClrTraceEventParser.Keywords.Default); + (long) ClrTraceEventParser.Keywords.Default); var userSettings = new EventPipeProvider( DotNetRuntime, EventLevel.Verbose, - (long)(ClrTraceEventParser.Keywords.Default | ClrTraceEventParser.Keywords.JitTracing)); + (long) (ClrTraceEventParser.Keywords.Default | ClrTraceEventParser.Keywords.JitTracing)); var result = EventPipeProfiler.MapToProviders(EventPipeProfile.CpuSampling, [userSettings]); diff --git a/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs b/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs index 5ecbe8e0dc..9f8593d961 100644 --- a/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs +++ b/tests/BenchmarkDotNet.Tests/Exporters/CommonExporterVerifyTests.cs @@ -50,7 +50,7 @@ public async Task Exporters(string cultureInfoName) foreach (var exporter in exporters) { PrintTitle(logger, exporter); - await ((ExporterBase)exporter).ExportToLogAsync( + await ((ExporterBase) exporter).ExportToLogAsync( MockFactory.CreateSummary( config.WithCultureInfo(cultureInfo), hugeSd: false, diff --git a/tests/BenchmarkDotNet.Tests/Exporters/MarkdownExporterVerifyTests.cs b/tests/BenchmarkDotNet.Tests/Exporters/MarkdownExporterVerifyTests.cs index 6916e5dcea..f905ba28bf 100644 --- a/tests/BenchmarkDotNet.Tests/Exporters/MarkdownExporterVerifyTests.cs +++ b/tests/BenchmarkDotNet.Tests/Exporters/MarkdownExporterVerifyTests.cs @@ -37,7 +37,7 @@ public async Task GroupExporterTest(Type benchmarkType) var exporter = MarkdownExporter.Mock; var summary = MockFactory.CreateSummary(benchmarkType); - await ((ExporterBase)exporter).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) exporter).ExportToLogAsync(summary, logger, CancellationToken.None); var validator = BaselineValidator.FailOnError; var errors = await validator.ValidateAsync(new ValidationParameters(summary.BenchmarksCases, summary.BenchmarksCases.First().Config)).ToArrayAsync(); diff --git a/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs b/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs index 0307255b49..2453150c1c 100644 --- a/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs +++ b/tests/BenchmarkDotNet.Tests/Exporters/OpenMetricsExporterTests.cs @@ -92,7 +92,7 @@ public async Task SingleBenchmark_ProducesHelpAndTypeOnce() var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var settings = VerifyHelper.Create(); await Verifier.Verify(logger.GetLog(), settings); @@ -172,7 +172,7 @@ public async Task ParametrizedBenchmarks_LabelExpansion() []); var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var settings = VerifyHelper.Create(); await Verifier.Verify(logger.GetLog(), settings); @@ -216,7 +216,7 @@ public async Task LabelsAreEscapedCorrectly() []); var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var settings = VerifyHelper.Create(); await Verifier.Verify(logger.GetLog(), settings); @@ -258,7 +258,7 @@ public async Task DecimalSeparator_UsesInvariantCulture() var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var log = logger.GetLog(); // Verify that the value uses a period, not a comma @@ -310,7 +310,7 @@ public async Task MemoryDiagnoser_ExportsAllocatedBytesPerOperation() var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var settings = VerifyHelper.Create(); await Verifier.Verify(logger.GetLog(), settings); @@ -352,7 +352,7 @@ public async Task MemoryDiagnoser_WithoutAllocationData_ExportsAllocatedBytesAsN var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var log = logger.GetLog(); Assert.Contains("# HELP benchmark_allocated_bytes Allocated managed memory per single benchmark operation.", log); @@ -392,7 +392,7 @@ public async Task WithoutMemoryDiagnoser_CustomAllocatedBytesMetricIsNotSuppress var logger = new AccumulationLogger(); - await ((ExporterBase)OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); + await ((ExporterBase) OpenMetricsExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None); var log = logger.GetLog(); Assert.Contains("# HELP benchmark_allocated_bytes Additional metric allocated_bytes", log); diff --git a/tests/BenchmarkDotNet.Tests/Helpers/UniqueIdGeneratorTests.cs b/tests/BenchmarkDotNet.Tests/Helpers/UniqueIdGeneratorTests.cs index de6b40769f..a7decff031 100644 --- a/tests/BenchmarkDotNet.Tests/Helpers/UniqueIdGeneratorTests.cs +++ b/tests/BenchmarkDotNet.Tests/Helpers/UniqueIdGeneratorTests.cs @@ -85,7 +85,7 @@ private void Validate(string guidText) private static byte GetEmbeddedHashVersion(Guid guid) { var b = guid.ToByteArray(); - return (byte)(b[3] >> 4); + return (byte) (b[3] >> 4); } public class Benchmarks diff --git a/tests/BenchmarkDotNet.Tests/MonoDisassemblyOutputParserTests.cs b/tests/BenchmarkDotNet.Tests/MonoDisassemblyOutputParserTests.cs index 8c340225ea..cd01942606 100644 --- a/tests/BenchmarkDotNet.Tests/MonoDisassemblyOutputParserTests.cs +++ b/tests/BenchmarkDotNet.Tests/MonoDisassemblyOutputParserTests.cs @@ -284,8 +284,8 @@ private static void Check(string input, DisassemblyResult expected, string metho Assert.Equal(expected.Methods[0].Maps[0].SourceCodes.Length, disassemblyResult.Methods[0].Maps[0].SourceCodes.Length); for (int i = 0; i < expected.Methods[0].Maps[0].SourceCodes.Length; i++) - Assert.Equal(((MonoCode)expected.Methods[0].Maps[0].SourceCodes[i]).Text, - ((MonoCode)disassemblyResult.Methods[0].Maps[0].SourceCodes[i]).Text); + Assert.Equal(((MonoCode) expected.Methods[0].Maps[0].SourceCodes[i]).Text, + ((MonoCode) disassemblyResult.Methods[0].Maps[0].SourceCodes[i]).Text); Assert.Equal(expected.Errors.Length, disassemblyResult.Errors.Length); for (int i = 0; i < expected.Errors.Length; i++) diff --git a/tests/BenchmarkDotNet.Tests/ParameterComparerTests.cs b/tests/BenchmarkDotNet.Tests/ParameterComparerTests.cs index d434704297..1b7c0618ba 100644 --- a/tests/BenchmarkDotNet.Tests/ParameterComparerTests.cs +++ b/tests/BenchmarkDotNet.Tests/ParameterComparerTests.cs @@ -148,10 +148,10 @@ public void IComparableComparisionTest() var sortedData = originalData.OrderBy(d => d, comparer).ToArray(); // Check that we sort by numeric value, not string order!! - Assert.Equal(1, ((ComplexParameter)sortedData[0].Items[0].Value!).Value); - Assert.Equal(2, ((ComplexParameter)sortedData[1].Items[0].Value!).Value); - Assert.Equal(3, ((ComplexParameter)sortedData[2].Items[0].Value!).Value); - Assert.Equal(4, ((ComplexParameter)sortedData[3].Items[0].Value!).Value); + Assert.Equal(1, ((ComplexParameter) sortedData[0].Items[0].Value!).Value); + Assert.Equal(2, ((ComplexParameter) sortedData[1].Items[0].Value!).Value); + Assert.Equal(3, ((ComplexParameter) sortedData[2].Items[0].Value!).Value); + Assert.Equal(4, ((ComplexParameter) sortedData[3].Items[0].Value!).Value); } [Fact] @@ -180,10 +180,10 @@ public void ValueTupleWithNonIComparableInnerTypesComparisionTest() var sortedData = originalData.OrderBy(d => d, comparer).ToArray(); - Assert.Equal(1, (((ComplexNonIComparableParameter, int))sortedData[0].Items[0].Value!).Item2); - Assert.Equal(2, (((ComplexNonIComparableParameter, int))sortedData[1].Items[0].Value!).Item2); - Assert.Equal(3, (((ComplexNonIComparableParameter, int))sortedData[2].Items[0].Value!).Item2); - Assert.Equal(4, (((ComplexNonIComparableParameter, int))sortedData[3].Items[0].Value!).Item2); + Assert.Equal(1, (((ComplexNonIComparableParameter, int)) sortedData[0].Items[0].Value!).Item2); + Assert.Equal(2, (((ComplexNonIComparableParameter, int)) sortedData[1].Items[0].Value!).Item2); + Assert.Equal(3, (((ComplexNonIComparableParameter, int)) sortedData[2].Items[0].Value!).Item2); + Assert.Equal(4, (((ComplexNonIComparableParameter, int)) sortedData[3].Items[0].Value!).Item2); } [Fact] @@ -212,10 +212,10 @@ public void TupleWithNonIComparableInnerTypesComparisionTest() var sortedData = originalData.OrderBy(d => d, comparer).ToArray(); - Assert.Equal(1, ((Tuple)sortedData[0].Items[0].Value!).Item2); - Assert.Equal(2, ((Tuple)sortedData[1].Items[0].Value!).Item2); - Assert.Equal(3, ((Tuple)sortedData[2].Items[0].Value!).Item2); - Assert.Equal(4, ((Tuple)sortedData[3].Items[0].Value!).Item2); + Assert.Equal(1, ((Tuple) sortedData[0].Items[0].Value!).Item2); + Assert.Equal(2, ((Tuple) sortedData[1].Items[0].Value!).Item2); + Assert.Equal(3, ((Tuple) sortedData[2].Items[0].Value!).Item2); + Assert.Equal(4, ((Tuple) sortedData[3].Items[0].Value!).Item2); } private class ComplexParameter : IComparable, IComparable diff --git a/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs b/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs index 21cea4260a..136370a3c2 100644 --- a/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs +++ b/tests/BenchmarkDotNet.Tests/ParamsSourceTests.cs @@ -576,7 +576,7 @@ public class MismatchedEnumSource public static IEnumerable Values() { yield return "not an enum"; } - [Benchmark] public int Run() => (int)Value; + [Benchmark] public int Run() => (int) Value; } public class ErasedEnumSource @@ -586,7 +586,7 @@ public class ErasedEnumSource public static IEnumerable Values() { yield return 2; } - [Benchmark] public int Run() => (int)Value; + [Benchmark] public int Run() => (int) Value; } public static class ArgumentListSource @@ -667,7 +667,7 @@ public class BoxImpl : IBox { } [GenericTypeArguments(typeof(int))] public class MatchedGenericArgumentSource { - public static IEnumerable Values() { yield return (T)(object)7; } + public static IEnumerable Values() { yield return (T) (object) 7; } [Benchmark] [ArgumentsSource(nameof(Values))] @@ -677,7 +677,7 @@ public class MatchedGenericArgumentSource [GenericTypeArguments(typeof(byte[]))] public class SpanFromGenericArgumentSource { - public static IEnumerable Values() { yield return (T)(object)new byte[] { 1, 2, 3 }; } + public static IEnumerable Values() { yield return (T) (object) new byte[] { 1, 2, 3 }; } [Benchmark] [ArgumentsSource(nameof(Values))] diff --git a/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs b/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs index 42318eed85..5840182f8a 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/ColumnTests.cs @@ -39,7 +39,7 @@ private Summary CreateSummary(IConfig config) { var logger = new AccumulationLogger(); var summary = MockFactory.CreateSummary(config); - ((ExporterBase)MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return summary; } diff --git a/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs b/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs index a1c324c0c4..8d5ae7d987 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/DefaultColumnProvidersTests.cs @@ -48,7 +48,7 @@ private Summary CreateSummary(bool hugeSd, Metric[] metrics) { var logger = new AccumulationLogger(); var summary = MockFactory.CreateSummary(DefaultConfig.Instance, hugeSd, metrics); - ((ExporterBase)MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return summary; } diff --git a/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs b/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs index 106215cbbd..09055e56e2 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/RatioPrecisionTests.cs @@ -43,7 +43,7 @@ private void ContainsDecimalPointAndCheckDecimalPrecision(int[] baseLineValues, { if (value.Contains('.')) { - Assert.Equal((1 / (double)baseLineValues[0]) < 0.01 ? 3 : 2, value.Split('.')[1].Length); + Assert.Equal((1 / (double) baseLineValues[0]) < 0.01 ? 3 : 2, value.Split('.')[1].Length); } } @@ -69,7 +69,7 @@ private Summary CreateSummary(int[] values) TestCultureInfo.Instance, [], []); - ((ExporterBase)MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return summary; } diff --git a/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs b/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs index 6f9695a872..f4c8bbfe96 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/RatioStyleTests.cs @@ -90,7 +90,7 @@ private Summary CreateSummary(int[] values, RatioStyle ratioStyle, int noise) TestCultureInfo.Instance, [], []); - ((ExporterBase)MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return summary; } diff --git a/tests/BenchmarkDotNet.Tests/Reports/SummaryTableTests.cs b/tests/BenchmarkDotNet.Tests/Reports/SummaryTableTests.cs index 2b175d4271..c6f9a004f6 100644 --- a/tests/BenchmarkDotNet.Tests/Reports/SummaryTableTests.cs +++ b/tests/BenchmarkDotNet.Tests/Reports/SummaryTableTests.cs @@ -27,7 +27,7 @@ private SummaryTable CreateTable() var config = DefaultConfig.Instance; var summary = MockFactory.CreateSummary(config); var table = new SummaryTable(summary); - ((ExporterBase)MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) MarkdownExporter.Default).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return table; } diff --git a/tests/BenchmarkDotNet.Tests/RuntimeEqualityTests.cs b/tests/BenchmarkDotNet.Tests/RuntimeEqualityTests.cs index 5315e839b5..9e9878014a 100644 --- a/tests/BenchmarkDotNet.Tests/RuntimeEqualityTests.cs +++ b/tests/BenchmarkDotNet.Tests/RuntimeEqualityTests.cs @@ -26,8 +26,8 @@ public void CustomRuntimeEqualityIsHonoredThroughTheIEquatableRuntimePath() Runtime sameAsA = new CustomRuntime("Custom", new Version(1, 0), "a"); // Directly via the concrete Equals(object). - Assert.False(a.Equals((object)differsByExtra)); - Assert.True(a.Equals((object)sameAsA)); + Assert.False(a.Equals((object) differsByExtra)); + Assert.True(a.Equals((object) sameAsA)); // Via IEquatable (Dictionary/HashSet/EqualityComparer use this) — the path that previously ignored Extra. var comparer = EqualityComparer.Default; diff --git a/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs b/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs index 664caea5c7..85f7c81d72 100644 --- a/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs +++ b/tests/BenchmarkDotNet.Tests/RuntimeParseTests.cs @@ -136,7 +136,7 @@ public void EveryDotNetRuntimeTrimsAnythingPastMajorMinor(string prefix) "mono" => MonoCoreRuntime.From(new Version(99, 0, 30)), "monowasm" => MonoWasmRuntime.From(new Version(99, 0, 30)), "monowasmaot" => MonoWasmAotRuntime.From(new Version(99, 0, 30)), - _ => (Runtime)CoreWasmRuntime.From(new Version(99, 0, 30)), + _ => (Runtime) CoreWasmRuntime.From(new Version(99, 0, 30)), }; Assert.Equal(new Version(99, 0), withBuild.Version); diff --git a/tests/BenchmarkDotNet.Tests/Serialization/DisassemblerModelSerializationTests.cs b/tests/BenchmarkDotNet.Tests/Serialization/DisassemblerModelSerializationTests.cs index 62738eea37..64f94e812c 100644 --- a/tests/BenchmarkDotNet.Tests/Serialization/DisassemblerModelSerializationTests.cs +++ b/tests/BenchmarkDotNet.Tests/Serialization/DisassemblerModelSerializationTests.cs @@ -125,8 +125,8 @@ public void Arm64AsmSerializationTest() DisassembleSyntax = disassembleSyntax, Instruction = instruction, InstructionLength = instruction.Bytes.Length, - InstructionPointer = (ulong)instruction.Address, - ReferencedAddress = (instruction.Address > ushort.MaxValue) ? (ulong)instruction.Address : null, + InstructionPointer = (ulong) instruction.Address, + ReferencedAddress = (instruction.Address > ushort.MaxValue) ? (ulong) instruction.Address : null, IsReferencedAddressIndirect = true, // Test with dummy value }; diff --git a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs index 8bcfa124df..f4f59c3333 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/Mocks/MockRunner.cs @@ -36,7 +36,7 @@ public static Summary Run(ITestOutputHelper output, Func(config); var exporter = MarkdownExporter.Mock; - ((ExporterBase)exporter).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); + ((ExporterBase) exporter).ExportToLogAsync(summary, logger, CancellationToken.None).AsTask().GetAwaiter().GetResult(); output.WriteLine(logger.GetLog()); return summary; diff --git a/tests/BenchmarkDotNet.Tests/Shared/TestCultureInfo.cs b/tests/BenchmarkDotNet.Tests/Shared/TestCultureInfo.cs index 6f246c1fe6..3759e7d3ed 100644 --- a/tests/BenchmarkDotNet.Tests/Shared/TestCultureInfo.cs +++ b/tests/BenchmarkDotNet.Tests/Shared/TestCultureInfo.cs @@ -9,7 +9,7 @@ internal static class TestCultureInfo static TestCultureInfo() { - Instance = (CultureInfo)DefaultCultureInfo.Instance.Clone(); + Instance = (CultureInfo) DefaultCultureInfo.Instance.Clone(); } } } diff --git a/tests/BenchmarkDotNet.Tests/StringExtensionsTests.cs b/tests/BenchmarkDotNet.Tests/StringExtensionsTests.cs index 31ca2d4101..073531c465 100644 --- a/tests/BenchmarkDotNet.Tests/StringExtensionsTests.cs +++ b/tests/BenchmarkDotNet.Tests/StringExtensionsTests.cs @@ -10,7 +10,7 @@ public class StringExtensionsTests public void AsValidFileNameReplacesAllInvalidFileNameCharactersWithTheirRepresentation() { foreach (char invalidPathChar in Path.GetInvalidFileNameChars()) - Assert.Equal($"char{(short)invalidPathChar}", invalidPathChar.ToString().AsValidFileName()); + Assert.Equal($"char{(short) invalidPathChar}", invalidPathChar.ToString().AsValidFileName()); } [Fact] diff --git a/tests/BenchmarkDotNet.Tests/dotMemory/DotMemoryTests.cs b/tests/BenchmarkDotNet.Tests/dotMemory/DotMemoryTests.cs index 9a7056de84..c6a4a7b736 100644 --- a/tests/BenchmarkDotNet.Tests/dotMemory/DotMemoryTests.cs +++ b/tests/BenchmarkDotNet.Tests/dotMemory/DotMemoryTests.cs @@ -13,7 +13,7 @@ public void AllRuntimeMonikersAreKnown() var diagnoser = new DotMemoryDiagnoser(); foreach (var field in typeof(RuntimeMoniker).GetFields(BindingFlags.Public | BindingFlags.Static)) { - var moniker = (string)field.GetValue(null)!; + var moniker = (string) field.GetValue(null)!; diagnoser.IsSupported(Runtime.Parse(moniker)); // Just check that it doesn't throw exceptions } } diff --git a/tests/BenchmarkDotNet.Tests/dotTrace/DotTraceTests.cs b/tests/BenchmarkDotNet.Tests/dotTrace/DotTraceTests.cs index 074c78dae3..7e332ae741 100644 --- a/tests/BenchmarkDotNet.Tests/dotTrace/DotTraceTests.cs +++ b/tests/BenchmarkDotNet.Tests/dotTrace/DotTraceTests.cs @@ -13,7 +13,7 @@ public void AllRuntimeMonikersAreKnown() var diagnoser = new DotTraceDiagnoser(); foreach (var field in typeof(RuntimeMoniker).GetFields(BindingFlags.Public | BindingFlags.Static)) { - var moniker = (string)field.GetValue(null)!; + var moniker = (string) field.GetValue(null)!; diagnoser.IsSupported(Runtime.Parse(moniker)); // Just check that it doesn't throw exceptions } } From 03206cff08ab06766abbe8f2fbce2f434c7e0264 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sun, 18 Oct 2026 06:47:05 +0900 Subject: [PATCH 7/9] chore: apply dotnet format to runtime async project --- .../RuntimeAsyncEmitTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BenchmarkDotNet.IntegrationTests.RuntimeAsync/RuntimeAsyncEmitTest.cs b/tests/BenchmarkDotNet.IntegrationTests.RuntimeAsync/RuntimeAsyncEmitTest.cs index d0414c1ce7..ff35c45780 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.RuntimeAsync/RuntimeAsyncEmitTest.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.RuntimeAsync/RuntimeAsyncEmitTest.cs @@ -11,7 +11,7 @@ namespace BenchmarkDotNet.IntegrationTests.RuntimeAsync; public class RuntimeAsyncEmitTest(ITestOutputHelper output) : BenchmarkTestExecutor(output) { - private const MethodImplAttributes AsyncMethodImpl = (MethodImplAttributes)0x2000; + private const MethodImplAttributes AsyncMethodImpl = (MethodImplAttributes) 0x2000; [Theory] [InlineData(typeof(RuntimeAsyncTaskCaseBenchmark))] From 9891e1dc08747a2bea83b1d369b17073c6539d47 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sun, 18 Oct 2026 06:47:43 +0900 Subject: [PATCH 8/9] chore: apply dotnet format to BenchmarkDotNet.Build project --- build/BenchmarkDotNet.Build/BuildContext.cs | 2 +- build/BenchmarkDotNet.Build/CommandLineParser.cs | 2 +- build/BenchmarkDotNet.Build/EnvVar.cs | 2 +- build/BenchmarkDotNet.Build/Example.cs | 2 +- build/BenchmarkDotNet.Build/HelpInfo.cs | 2 +- build/BenchmarkDotNet.Build/Helpers/OctokitExtensions.cs | 2 +- build/BenchmarkDotNet.Build/Helpers/Utils.cs | 2 +- build/BenchmarkDotNet.Build/IHelpProvider.cs | 2 +- build/BenchmarkDotNet.Build/Meta/Repo.cs | 2 +- build/BenchmarkDotNet.Build/Meta/VersionHistory.cs | 2 +- build/BenchmarkDotNet.Build/Options/BoolOption.cs | 2 +- build/BenchmarkDotNet.Build/Options/IOption.cs | 2 +- build/BenchmarkDotNet.Build/Options/KnownOptions.cs | 2 +- build/BenchmarkDotNet.Build/Options/Option.cs | 2 +- build/BenchmarkDotNet.Build/Options/StringOption.cs | 2 +- build/BenchmarkDotNet.Build/Program.cs | 2 +- build/BenchmarkDotNet.Build/Runners/BuildRunner.cs | 2 +- .../BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs | 2 +- .../Runners/Changelog/ChangelogDetailsBuilder.cs | 2 +- build/BenchmarkDotNet.Build/Runners/DocumentationRunner.cs | 2 +- build/BenchmarkDotNet.Build/Runners/GitRunner.cs | 2 +- build/BenchmarkDotNet.Build/Runners/ReleaseRunner.cs | 2 +- build/BenchmarkDotNet.Build/Runners/UnitTestRunner.cs | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/build/BenchmarkDotNet.Build/BuildContext.cs b/build/BenchmarkDotNet.Build/BuildContext.cs index cec634b3b7..5fe34addb0 100644 --- a/build/BenchmarkDotNet.Build/BuildContext.cs +++ b/build/BenchmarkDotNet.Build/BuildContext.cs @@ -192,4 +192,4 @@ public void RunOnlyInPushMode(Action action) else this.Information(" Skip because PushMode is disabled"); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/CommandLineParser.cs b/build/BenchmarkDotNet.Build/CommandLineParser.cs index e97676ca68..4caccb9df2 100644 --- a/build/BenchmarkDotNet.Build/CommandLineParser.cs +++ b/build/BenchmarkDotNet.Build/CommandLineParser.cs @@ -334,4 +334,4 @@ private void WriteLine(string message = "", ConsoleColor? color = null) Write(message, color); Console.WriteLine(); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/EnvVar.cs b/build/BenchmarkDotNet.Build/EnvVar.cs index 569c33726b..bcd4989a70 100644 --- a/build/BenchmarkDotNet.Build/EnvVar.cs +++ b/build/BenchmarkDotNet.Build/EnvVar.cs @@ -20,4 +20,4 @@ public void AssertHasValue() } public void SetEmpty() => Environment.SetEnvironmentVariable(Name, ""); -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Example.cs b/build/BenchmarkDotNet.Build/Example.cs index eaef9799e5..d9544ae031 100644 --- a/build/BenchmarkDotNet.Build/Example.cs +++ b/build/BenchmarkDotNet.Build/Example.cs @@ -35,4 +35,4 @@ public Example WithArgument(StringOption option, string value) public record Argument(string Name, string? Value, bool IsMsBuild); -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/HelpInfo.cs b/build/BenchmarkDotNet.Build/HelpInfo.cs index 5de8c27931..c2dac5f254 100644 --- a/build/BenchmarkDotNet.Build/HelpInfo.cs +++ b/build/BenchmarkDotNet.Build/HelpInfo.cs @@ -9,4 +9,4 @@ public class HelpInfo public IOption[] Options { get; init; } = Array.Empty(); public EnvVar[] EnvironmentVariables { get; init; } = Array.Empty(); public Example[] Examples { get; init; } = Array.Empty(); -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Helpers/OctokitExtensions.cs b/build/BenchmarkDotNet.Build/Helpers/OctokitExtensions.cs index f981d6a12c..6da7ef0244 100644 --- a/build/BenchmarkDotNet.Build/Helpers/OctokitExtensions.cs +++ b/build/BenchmarkDotNet.Build/Helpers/OctokitExtensions.cs @@ -37,4 +37,4 @@ public static string ToByStr(this GitHubCommit commit) return commit.Author.ToStr("by"); return commit.Commit.Author != null ? commit.Commit.Author.ToStr("by") : ""; } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Helpers/Utils.cs b/build/BenchmarkDotNet.Build/Helpers/Utils.cs index 51554413cc..0c6bc4740e 100644 --- a/build/BenchmarkDotNet.Build/Helpers/Utils.cs +++ b/build/BenchmarkDotNet.Build/Helpers/Utils.cs @@ -82,4 +82,4 @@ public static string[] GetTargetFrameworks(BuildContext context) : ["net10.0"]; } } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/IHelpProvider.cs b/build/BenchmarkDotNet.Build/IHelpProvider.cs index 6fff1c061f..80efc7656e 100644 --- a/build/BenchmarkDotNet.Build/IHelpProvider.cs +++ b/build/BenchmarkDotNet.Build/IHelpProvider.cs @@ -3,4 +3,4 @@ namespace BenchmarkDotNet.Build; public interface IHelpProvider { HelpInfo GetHelp(); -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Meta/Repo.cs b/build/BenchmarkDotNet.Build/Meta/Repo.cs index 6e2b332d27..760f676fad 100644 --- a/build/BenchmarkDotNet.Build/Meta/Repo.cs +++ b/build/BenchmarkDotNet.Build/Meta/Repo.cs @@ -31,4 +31,4 @@ public static async Task GetDependentProjectsNumber() return number; } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Meta/VersionHistory.cs b/build/BenchmarkDotNet.Build/Meta/VersionHistory.cs index a6a0b81265..21c151cae5 100644 --- a/build/BenchmarkDotNet.Build/Meta/VersionHistory.cs +++ b/build/BenchmarkDotNet.Build/Meta/VersionHistory.cs @@ -17,4 +17,4 @@ public VersionHistory(BuildContext context, FilePath versionFilePath) CurrentVersion = lines.Last(); StableVersions = lines.Skip(1).SkipLast(1).ToArray(); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Options/BoolOption.cs b/build/BenchmarkDotNet.Build/Options/BoolOption.cs index 3213ee8d54..fdb0bd21f7 100644 --- a/build/BenchmarkDotNet.Build/Options/BoolOption.cs +++ b/build/BenchmarkDotNet.Build/Options/BoolOption.cs @@ -24,4 +24,4 @@ public void AssertTrue(BuildContext context) if (!value) throw new Exception($"{CommandLineName} is not specified"); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Options/IOption.cs b/build/BenchmarkDotNet.Build/Options/IOption.cs index 0a2046816e..e5d72c9996 100644 --- a/build/BenchmarkDotNet.Build/Options/IOption.cs +++ b/build/BenchmarkDotNet.Build/Options/IOption.cs @@ -5,4 +5,4 @@ public interface IOption string CommandLineName { get; } string Description { get; } string[] Aliases { get; } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Options/KnownOptions.cs b/build/BenchmarkDotNet.Build/Options/KnownOptions.cs index d1a21a76b6..1bb1dedba0 100644 --- a/build/BenchmarkDotNet.Build/Options/KnownOptions.cs +++ b/build/BenchmarkDotNet.Build/Options/KnownOptions.cs @@ -57,4 +57,4 @@ public static class KnownOptions { Description = "When specified, the task actually perform push to GitHub and nuget.org" }; -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Options/Option.cs b/build/BenchmarkDotNet.Build/Options/Option.cs index 4840af7ad2..455cd1ed9c 100644 --- a/build/BenchmarkDotNet.Build/Options/Option.cs +++ b/build/BenchmarkDotNet.Build/Options/Option.cs @@ -37,4 +37,4 @@ protected Option(string commandLineName) .Where(context.HasArgument) .Select(name => context.Arguments.GetArgument(name)) .FirstOrDefault(); -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Options/StringOption.cs b/build/BenchmarkDotNet.Build/Options/StringOption.cs index 657017dbe2..9582636083 100644 --- a/build/BenchmarkDotNet.Build/Options/StringOption.cs +++ b/build/BenchmarkDotNet.Build/Options/StringOption.cs @@ -26,4 +26,4 @@ public string AssertHasValue(BuildContext context) throw new Exception($"{CommandLineName} is not specified"); return value; } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Program.cs b/build/BenchmarkDotNet.Build/Program.cs index fdf9c11d44..9349e16fc7 100644 --- a/build/BenchmarkDotNet.Build/Program.cs +++ b/build/BenchmarkDotNet.Build/Program.cs @@ -361,4 +361,4 @@ public class ReleaseTask : FrostingTask, IHelpProvider .WithArgument(KnownOptions.Push) ] }; -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/BuildRunner.cs b/build/BenchmarkDotNet.Build/Runners/BuildRunner.cs index 7acfc97788..3047ac4a91 100644 --- a/build/BenchmarkDotNet.Build/Runners/BuildRunner.cs +++ b/build/BenchmarkDotNet.Build/Runners/BuildRunner.cs @@ -174,4 +174,4 @@ public void Pack() }; context.DotNetPack(context.TemplatesTestsProjectFile.FullPath, settingsTemplate); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs b/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs index 059ecc7594..da4df354cf 100644 --- a/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs +++ b/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogBuilder.cs @@ -269,4 +269,4 @@ private void EnsureSrcDirectoryExist(bool forceClone = false) Log($"Fetch completed: '{Repo.ChangelogBranch}' -> '{SrcDirectory}'."); } } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogDetailsBuilder.cs b/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogDetailsBuilder.cs index 772690547d..bece27b7bd 100644 --- a/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogDetailsBuilder.cs +++ b/build/BenchmarkDotNet.Build/Runners/Changelog/ChangelogDetailsBuilder.cs @@ -181,4 +181,4 @@ public static void Run(BuildContext context, DirectoryPath path, context.Error(e.ToString()); } } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/DocumentationRunner.cs b/build/BenchmarkDotNet.Build/Runners/DocumentationRunner.cs index cdd7cd86b9..4023a436a8 100644 --- a/build/BenchmarkDotNet.Build/Runners/DocumentationRunner.cs +++ b/build/BenchmarkDotNet.Build/Runners/DocumentationRunner.cs @@ -176,4 +176,4 @@ private void GenerateRedirects() context.GenerateFile(fullFilePath, content); } } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/GitRunner.cs b/build/BenchmarkDotNet.Build/Runners/GitRunner.cs index eefff045a6..7ed7c44200 100644 --- a/build/BenchmarkDotNet.Build/Runners/GitRunner.cs +++ b/build/BenchmarkDotNet.Build/Runners/GitRunner.cs @@ -127,4 +127,4 @@ private void RunCommand(Action? call, string commandLineArgs) } } } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/ReleaseRunner.cs b/build/BenchmarkDotNet.Build/Runners/ReleaseRunner.cs index f7651cb4e1..60d21df823 100644 --- a/build/BenchmarkDotNet.Build/Runners/ReleaseRunner.cs +++ b/build/BenchmarkDotNet.Build/Runners/ReleaseRunner.cs @@ -189,4 +189,4 @@ private static string PreprocessMarkdown(string content) return newContent.ToString(); } -} \ No newline at end of file +} diff --git a/build/BenchmarkDotNet.Build/Runners/UnitTestRunner.cs b/build/BenchmarkDotNet.Build/Runners/UnitTestRunner.cs index 93a34da17d..791ea2c4bd 100644 --- a/build/BenchmarkDotNet.Build/Runners/UnitTestRunner.cs +++ b/build/BenchmarkDotNet.Build/Runners/UnitTestRunner.cs @@ -86,4 +86,4 @@ public void RunAnalyzerTests() } public void RunInTests(string tfm) => RunTests(IntegrationTestsProjectFile, "integration", tfm); -} \ No newline at end of file +} From 1bb592aed6b5bde3fb831ec3afaf558a44bbad86 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:38:50 +0900 Subject: [PATCH 9/9] chore: apply dotnet format command after rebase to latest master --- .../Environments/PhysicalMemoryInfo.cs | 6 ++-- src/BenchmarkDotNet/Helpers/ProcessHelper.cs | 2 +- .../Environments/PhysicalMemoryInfoTests.cs | 18 ++++++------ .../Perfonar/PerfonarTests.cs | 28 +++++++++---------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs b/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs index abb894d213..d5198b75ef 100644 --- a/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs +++ b/src/BenchmarkDotNet/Environments/PhysicalMemoryInfo.cs @@ -97,7 +97,7 @@ public static class SystemMemory if (PInvoke.GlobalMemoryStatusEx(ref memStatus)) { var (speed, type) = GetWindowsMemoryDetails(); - return new PhysicalMemoryInfo((long)memStatus.ullTotalPhys, (long)memStatus.ullAvailPhys, speed, type); + return new PhysicalMemoryInfo((long) memStatus.ullTotalPhys, (long) memStatus.ullAvailPhys, speed, type); } return null; @@ -201,7 +201,7 @@ private static unsafe (long? SpeedMts, string? MemoryType) GetWindowsMemoryDetai try { const uint rsMb = 0x52534D42; // 'RSMB' - var provider = (FIRMWARE_TABLE_PROVIDER)rsMb; + var provider = (FIRMWARE_TABLE_PROVIDER) rsMb; uint bufferSize = PInvoke.GetSystemFirmwareTable(provider, 0, null, 0); if (bufferSize == 0) return (null, null); @@ -217,7 +217,7 @@ private static unsafe (long? SpeedMts, string? MemoryType) GetWindowsMemoryDetai const int headerSize = 8; if (buffer.Length < headerSize) return (null, null); - int tableLength = (int)Math.Min(BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(4)), (uint)(buffer.Length - headerSize)); + int tableLength = (int) Math.Min(BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(4)), (uint) (buffer.Length - headerSize)); return ParseSmbiosMemoryDevices(buffer.AsSpan(headerSize, tableLength)); } catch diff --git a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs index 701c9b3346..1d209b8f41 100644 --- a/src/BenchmarkDotNet/Helpers/ProcessHelper.cs +++ b/src/BenchmarkDotNet/Helpers/ProcessHelper.cs @@ -53,7 +53,7 @@ internal static class ProcessHelper // On timeout, disposing the cleanup helper kills the still-running process. var readTask = process.StandardOutput.ReadToEndAsync(); - if (!readTask.Wait(timeout.Value) || !process.WaitForExit((int)timeout.Value.TotalMilliseconds)) + if (!readTask.Wait(timeout.Value) || !process.WaitForExit((int) timeout.Value.TotalMilliseconds)) return null; return readTask.Result; } diff --git a/tests/BenchmarkDotNet.Tests/Environments/PhysicalMemoryInfoTests.cs b/tests/BenchmarkDotNet.Tests/Environments/PhysicalMemoryInfoTests.cs index 26e99e19e5..3eeb375a55 100644 --- a/tests/BenchmarkDotNet.Tests/Environments/PhysicalMemoryInfoTests.cs +++ b/tests/BenchmarkDotNet.Tests/Environments/PhysicalMemoryInfoTests.cs @@ -77,7 +77,7 @@ public void SmbiosIgnoresSaturatedSpeedWithoutExtendedField() { byte[] table = Table(MemoryDevice(Smbios28Length, Ddr5, speed: 0xFFFF, configuredSpeed: 0xFFFF)); - Assert.Equal(((long?)null, "DDR5"), SystemMemory.ParseSmbiosMemoryDevices(table)); + Assert.Equal(((long?) null, "DDR5"), SystemMemory.ParseSmbiosMemoryDevices(table)); } [Fact] @@ -108,7 +108,7 @@ public void SmbiosStopsAtEndOfTable() OtherStructure(type: 127), MemoryDevice(Smbios28Length, Ddr5, speed: 4800, configuredSpeed: 4800)); - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseSmbiosMemoryDevices(table)); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseSmbiosMemoryDevices(table)); } [Fact] @@ -116,7 +116,7 @@ public void SmbiosToleratesTruncatedTable() { byte[] full = Table(MemoryDevice(Smbios28Length, Ddr5, speed: 4800, configuredSpeed: 4800)); - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseSmbiosMemoryDevices(full.AsSpan(0, 10))); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseSmbiosMemoryDevices(full.AsSpan(0, 10))); } [Fact] @@ -152,7 +152,7 @@ public void MacAppleSiliconReadsTypeWithoutSpeed() } """; - Assert.Equal(((long?)null, "LPDDR5"), SystemMemory.ParseMacMemoryJson(json)); + Assert.Equal(((long?) null, "LPDDR5"), SystemMemory.ParseMacMemoryJson(json)); } [Fact] @@ -162,15 +162,15 @@ public void MacVirtualMachinePlaceholdersAreIgnored() const string arm64 = """{ "SPMemoryDataType" : [ { "dimm_manufacturer" : "Unknown", "dimm_type" : "Unknown", "SPMemoryDataType" : "7 GB" } ] }"""; const string x64 = """{ "SPMemoryDataType" : [ { "_items" : [ { "_name" : "DIMM0", "dimm_size" : "14 GB", "dimm_speed" : "1600 MHz", "dimm_type" : "RAM" } ] } ] }"""; - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseMacMemoryJson(arm64)); - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseMacMemoryJson(x64)); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseMacMemoryJson(arm64)); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseMacMemoryJson(x64)); } [Fact] public void MacWithoutMemoryDataReturnsNothing() { - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseMacMemoryJson("""{ "SPMemoryDataType" : [] }""")); - Assert.Equal(((long?)null, (string?)null), SystemMemory.ParseMacMemoryJson("{}")); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseMacMemoryJson("""{ "SPMemoryDataType" : [] }""")); + Assert.Equal(((long?) null, (string?) null), SystemMemory.ParseMacMemoryJson("{}")); } [Theory] @@ -197,7 +197,7 @@ private static byte[] OtherStructure(byte type, params string[] strings) { var formatted = new byte[4]; formatted[0] = type; - formatted[1] = (byte)formatted.Length; + formatted[1] = (byte) formatted.Length; return WithStrings(formatted, strings); } diff --git a/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs b/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs index 8c75931005..4434991f51 100644 --- a/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs +++ b/tests/BenchmarkDotNet.Tests/Perfonar/PerfonarTests.cs @@ -20,12 +20,12 @@ public async Task PerfonarIndexTest(string key) { var content = new PerfonarIndex(TableDataMap[key].RootEntry).Dump(); - try - { - await VerifyString(key, content); - } - catch - { + try + { + await VerifyString(key, content); + } + catch + { output.WriteLine(content); throw; } @@ -38,13 +38,13 @@ public async Task PerfonarTableTest(string key) var table = TableDataMap[key]; string markdown = table.ToMarkdown(new PerfonarTableStyle()); string json = LightJsonSerializer.Serialize(table.RootEntry, new LightJsonSettings { Indent = true }); - - var content = $"{markdown}\n{json}"; - try - { - await VerifyString(key, content); + + var content = $"{markdown}\n{json}"; + try + { + await VerifyString(key, content); } - catch + catch { output.WriteLine(content); throw; @@ -186,7 +186,7 @@ public async Task PerfonarTableTest(string key) private Task VerifyString(string key, string content) { var settings = VerifyHelper.Create("Perfonar"); - settings.UseParameters(key); - return Verifier.Verify(content, settings); + settings.UseParameters(key); + return Verifier.Verify(content, settings); } }