Skip to content

Commit

Permalink
SA1411 Attribute constructor shouldn't use unnecessary parenthesis (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
elachlan authored Oct 19, 2022
1 parent 062aae9 commit e9a1042
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eng/CodeAnalysis.src.globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ dotnet_diagnostic.SA1409.severity = none
dotnet_diagnostic.SA1410.severity = warning

# SA1411: Attribute constructor shouldn't use unnecessary parenthesis
dotnet_diagnostic.SA1411.severity = none # TODO: warning
dotnet_diagnostic.SA1411.severity = warning

# SA1412: Store files as UTF-8 with byte order mark
dotnet_diagnostic.SA1412.severity = none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal static partial class ComponentIds
/// can query the reg info of the active (or tracking) component at any time via
/// <see cref="IMsoComponentManager.FGetActiveComponent"/>.
/// </remarks>
[ComImport()]
[ComImport]
[Guid(ComponentIds.IID_IMsoComponent)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public unsafe interface IMsoComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal static partial class ComponentIds
/// that are outside of the component manager's state context. <see cref="FInState"/> is used to query the
/// state of the component manager's state context at its root.
/// </remarks>
[ComImport()]
[ComImport]
[Guid(ComponentIds.IID_IMsoComponentManager)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public unsafe interface IMsoComponentManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[assembly: Dependency("System.Core", LoadHint.Sometimes)]
// This is now trun on by default, use source file NO_RUNTIMECOMPATIBILITY_ATTRIBUTE flag to control this
// [assembly:RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: StringFreezing()]
[assembly: StringFreezing]
[assembly: System.Runtime.InteropServices.TypeLibVersion(2, 4)]

// Opts into the VS loading icons from the Icon Satellite assembly: System.Windows.Forms.VisualStudio.<version>.0.dll
[assembly: System.Drawing.BitmapSuffixInSatelliteAssembly()]
[assembly: System.Drawing.BitmapSuffixInSatelliteAssembly]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace System.Windows.Forms
{
public class ToolStripSystemRenderer : ToolStripRenderer
{
[ThreadStatic()]
[ThreadStatic]
private static VisualStyleRenderer? t_renderer = null;
private ToolStripRenderer? _toolStripHighContrastRenderer;

Expand Down

0 comments on commit e9a1042

Please sign in to comment.