Skip to content

Commit

Permalink
editorconfig: add filters
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Dec 16, 2019
1 parent fe9a781 commit 3dfc84b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,21 @@ dotnet_diagnostic.CA1062.severity = suggestion

# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = suggestion

# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = suggestion

# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = suggestion

# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity = suggestion

# CA1051: Do not declare visible instance fields
dotnet_diagnostic.CA1051.severity = silent

# CA1712: Do not prefix enum values with type name
dotnet_diagnostic.CA1712.severity = silent

# CA1307: Specify StringComparison
dotnet_diagnostic.CA1307.severity = suggestion
2 changes: 1 addition & 1 deletion Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace MissionPlanner
{
public class Common
public static class Common
{
public static GMapMarker getMAVMarker(MAVState MAV)
{
Expand Down
5 changes: 5 additions & 0 deletions GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

1 change: 1 addition & 0 deletions MissionPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@
<Compile Include="GCSViews\ConfigurationView\ConfigUserDefined.Designer.cs">
<DependentUpon>ConfigUserDefined.cs</DependentUpon>
</Compile>
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Joystick\JoystickAxis.cs">
<SubType>UserControl</SubType>
</Compile>
Expand Down

0 comments on commit 3dfc84b

Please sign in to comment.