Skip to content

Commit

Permalink
Suppress CA1060 (#113)
Browse files Browse the repository at this point in the history
* Suppress CA1060

* Move CA1060 suppression to cover class def
  • Loading branch information
Arlodotexe authored Jul 25, 2023
1 parent f841534 commit 36c23c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace CommunityToolkit.App.Shared.Controls;

#pragma warning disable CA1060 // Move pinvokes to native methods class
public partial class TitleBar : Control
{
[DllImport("Shcore.dll", SetLastError = true)]
Expand Down Expand Up @@ -42,3 +43,4 @@ private double GetScaleAdjustment()
}
}
#endif
#pragma warning restore CA1060

0 comments on commit 36c23c8

Please sign in to comment.