未验证 提交 65008a9d 编写于 作者: S Stephen Toub 提交者: GitHub

Update StyleCopAnalyzers to 1.2.0-beta.406 (#65142)

* Update to StyleCopAnalyzers 1.2.0-beta.406

* Add missing newlines at end of files to satisfy changes to SA1518
上级 615224c4
......@@ -94,7 +94,7 @@
<MicrosoftBclAsyncInterfacesVersion>5.0.0</MicrosoftBclAsyncInterfacesVersion>
<MicrosoftWin32PrimitivesVersion>4.3.0</MicrosoftWin32PrimitivesVersion>
<MicrosoftWin32RegistryVersion>5.0.0</MicrosoftWin32RegistryVersion>
<StyleCopAnalyzersVersion>1.2.0-beta.304</StyleCopAnalyzersVersion>
<StyleCopAnalyzersVersion>1.2.0-beta.406</StyleCopAnalyzersVersion>
<SystemBuffersVersion>4.5.1</SystemBuffersVersion>
<SystemCollectionsVersion>4.3.0</SystemCollectionsVersion>
<SystemCollectionsImmutableVersion>5.0.0</SystemCollectionsImmutableVersion>
......
......@@ -31,4 +31,4 @@ public static partial class JitInfo
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern long GetCompilationTimeInTicks(bool currentThread = false);
}
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ public static partial class JitInfo
private static long GetCompilationTimeInTicks(bool currentThread = false) => 0;
}
}
\ No newline at end of file
}
......@@ -21,4 +21,4 @@ internal static IntPtr IDynamicCastableGetInterfaceImplementation(object instanc
return default;
}
}
}
\ No newline at end of file
}
......@@ -400,7 +400,7 @@ namespace System.Diagnostics.Tracing
decreaseTabLevel()
writeOutput(outputFile, "}\n")
decreaseTabLevel()
writeOutput(outputFile, "}")
writeOutput(outputFile, "}\n")
def main(argv):
......
......@@ -9,4 +9,4 @@ public enum NotFoundBehavior
ReturnNull,
ReturnResolutionFailure
}
}
\ No newline at end of file
}
......@@ -33,4 +33,4 @@ public static (int ExitCode, string StdErr) RunCodesign(string args, string appH
}
}
}
}
\ No newline at end of file
}
......@@ -29,4 +29,4 @@ public static bool CheckHasDefaultValue(ParameterInfo parameter, out bool tryToG
}
}
}
}
\ No newline at end of file
}
......@@ -11,4 +11,4 @@ internal unsafe partial class Sys
[GeneratedDllImport(Interop.Libraries.SystemNative, CharSet = CharSet.Ansi, EntryPoint = "SystemNative_GetEnv")]
internal static unsafe partial IntPtr GetEnv(string name);
}
}
\ No newline at end of file
}
......@@ -14,4 +14,4 @@ internal unsafe partial class Sys
[GeneratedDllImport(Interop.Libraries.SystemNative, EntryPoint = "SystemNative_FreeEnviron")]
internal static unsafe partial void FreeEnviron(IntPtr environ);
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ internal enum CertControlStoreFlags : int
None = 0x00000000,
}
}
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ internal enum CertControlStoreType : int
CERT_STORE_CTRL_AUTO_RESYNC = 4,
}
}
}
\ No newline at end of file
}
......@@ -54,4 +54,4 @@ public Task StartAsync(CancellationToken cancellationToken)
public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
}
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@ public enum ActivityStatusCode
/// </summary>
Error = 2
}
}
\ No newline at end of file
}
......@@ -189,4 +189,4 @@ public void Dispose()
}
}
}
\ No newline at end of file
}
......@@ -74,4 +74,4 @@ internal Counter(Meter meter, string name, string? unit, string? description) :
/// <param name="tagList">A <see cref="T:System.Diagnostics.TagList" /> of tags associated with the measurement.</param>
public void Add(T delta, in TagList tagList) => RecordMeasurement(delta, in tagList);
}
}
\ No newline at end of file
}
......@@ -74,4 +74,4 @@ internal Histogram(Meter meter, string name, string? unit, string? description)
/// <param name="tagList">A <see cref="T:System.Diagnostics.TagList" /> of tags associated with the measurement.</param>
public void Record(T value, in TagList tagList) => RecordMeasurement(value, in tagList);
}
}
\ No newline at end of file
}
......@@ -47,4 +47,4 @@ protected void RecordMeasurement(T measurement, ReadOnlySpan<KeyValuePair<string
}
}
}
}
\ No newline at end of file
}
......@@ -111,4 +111,4 @@ protected void RecordMeasurement(T measurement, in TagList tagList)
RecordMeasurement(measurement, MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in tagList.Tag1), tagList.Count));
}
}
}
\ No newline at end of file
}
......@@ -43,4 +43,4 @@ internal ObservableCounter(Meter meter, string name, Func<IEnumerable<Measuremen
/// </summary>
protected override IEnumerable<Measurement<T>> Observe() => Observe(_callback);
}
}
\ No newline at end of file
}
......@@ -43,4 +43,4 @@ internal ObservableGauge(Meter meter, string name, Func<IEnumerable<Measurement<
/// </summary>
protected override IEnumerable<Measurement<T>> Observe() => Observe(_callback);
}
}
\ No newline at end of file
}
......@@ -43,4 +43,4 @@ internal ObservableUpDownCounter(Meter meter, string name, Func<IEnumerable<Meas
/// </summary>
protected override IEnumerable<Measurement<T>> Observe() => Observe(_callback);
}
}
\ No newline at end of file
}
......@@ -548,4 +548,4 @@ public bool MoveNext()
public void Reset() => _index = -1;
}
}
}
\ No newline at end of file
}
......@@ -73,4 +73,4 @@ internal UpDownCounter(Meter meter, string name, string? unit, string? descripti
/// <param name="tagList">A <see cref="T:System.Diagnostics.TagList" /> of tags associated with the measurement.</param>
public void Add(T delta, in TagList tagList) => RecordMeasurement(delta, in tagList);
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ public static bool EnableUnixSupport
get => false;
}
}
}
\ No newline at end of file
}
......@@ -157,4 +157,4 @@ private HttpMessageHandler CreateNativeHandler()
return (HttpMessageHandler)_nativeHandlerMethod!.Invoke(null, null)!;
}
}
}
\ No newline at end of file
}
......@@ -27,4 +27,4 @@ public static Task<HttpResponseMessage> SendWithNtConnectionAuthAsync(HttpReques
return InnerSendAsync(request, request.RequestUri, async, credentials, isProxyAuth: false, connection, connectionPool, cancellationToken);
}
}
}
\ No newline at end of file
}
......@@ -27,4 +27,4 @@ private static string GetIntPtrHex(SafeHandle handle)
return handle.DangerousGetHandle().ToString("X11");
}
}
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@ internal static Exception GetStreamAbortedException(long errorCode)
};
}
}
}
\ No newline at end of file
}
......@@ -365,4 +365,4 @@ private WebSocketState GetReadyState()
};
}
}
}
\ No newline at end of file
}
......@@ -21,4 +21,4 @@ public static unsafe void Write(string s)
}
}
}
}
\ No newline at end of file
}
......@@ -133,4 +133,4 @@ private void ThrowNoInvokeException()
return retValue;
}
}
}
\ No newline at end of file
}
......@@ -17,4 +17,4 @@ public sealed class ObjectiveCTrackedTypeAttribute : Attribute
/// </summary>
public ObjectiveCTrackedTypeAttribute() { }
}
}
\ No newline at end of file
}
......@@ -22,4 +22,4 @@ public UnmanagedCallConvAttribute()
/// </remarks>
public Type[]? CallConvs;
}
}
\ No newline at end of file
}
......@@ -20,4 +20,4 @@ public static TimeSpan GetCompilationTime(bool currentThread = false)
return TimeSpan.FromTicks(GetCompilationTimeInTicks(currentThread));
}
}
}
\ No newline at end of file
}
......@@ -475,4 +475,4 @@ public byte[] GetTimeZoneData(string id)
}
}
}
}
\ No newline at end of file
}
......@@ -58,4 +58,4 @@ private static int Reduce(Span<uint> bits, ReadOnlySpan<uint> modulus)
return bits.Length;
}
}
}
\ No newline at end of file
}
......@@ -850,4 +850,4 @@ private static Complex Scale(Complex value, double factor)
return new Complex((double)value, 0.0);
}
}
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ private static DSA CreateCore()
return new DSAImplementation.DSAAndroid();
}
}
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ private static DSA CreateCore()
throw new PlatformNotSupportedException();
}
}
}
\ No newline at end of file
}
......@@ -90,4 +90,4 @@ internal static ulong GetRuntimeCounterValue(RuntimeCounters counterID)
}
#endif
}
}
\ No newline at end of file
}
......@@ -34,4 +34,4 @@ public static void SetMessageSendPendingException(Exception? exception)
out int memInSizeT,
out IntPtr mem) => throw new NotImplementedException();
}
}
\ No newline at end of file
}
......@@ -35,4 +35,4 @@ private static long GetCompilationTimeInTicks(bool currentThread = false)
return currentThread ? 0 : (long)EventPipeInternal.GetRuntimeCounterValue(EventPipeInternal.RuntimeCounters.JIT_TICKS_IN_JIT);
}
}
}
\ No newline at end of file
}
......@@ -143,4 +143,4 @@ private static void DebugThrowMissingOrIncorrectCode(string code, string message
private static bool IsAsciiDigit(char c)
=> c >= '0' && c <= '9';
}
}
\ No newline at end of file
}
......@@ -126,4 +126,4 @@ internal static class MetadataKeys
public const string CreateCompositeImage = "CreateCompositeImage";
public const string PerfmapFormatVersion = "PerfmapFormatVersion";
}
}
\ No newline at end of file
}
......@@ -502,4 +502,4 @@ private static bool HasILCode(PEReader peReader, MetadataReader mdReader)
return false;
}
}
}
\ No newline at end of file
}
......@@ -402,4 +402,4 @@ private static string ArchitectureToString(Architecture architecture)
};
}
}
}
\ No newline at end of file
}
......@@ -408,4 +408,4 @@ protected override void LogEventsFromTextOutput(string singleLine, MessageImport
}
}
}
}
\ No newline at end of file
}
......@@ -37,4 +37,4 @@ public static bool HasMetadataValue(this ITaskItem item, string name, string exp
return string.Equals(value, expectedValue, StringComparison.OrdinalIgnoreCase);
}
}
}
\ No newline at end of file
}
......@@ -22,4 +22,4 @@ public static class Strings
public static string ReadyToRunNoValidRuntimePackageError = "ReadyToRunNoValidRuntimePackageError";
public static string ReadyToRunTargetNotSupportedError = "ReadyToRunTargetNotSupportedError";
}
}
\ No newline at end of file
}
......@@ -147,4 +147,4 @@ public string Replace(string template, IDictionary<string, string> values)
return sb.ToString();
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册