Skip to content

Commit

Permalink
[Bot] Resolve more CA suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythonic-Rainbow committed Feb 8, 2024
1 parent 0f38156 commit df953bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Bot/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_diagnostic.CA1852.severity = suggestion

# C# files
[*.cs]
# ReSharper
[*.cs]
resharper_function_never_returns_highlighting = none
resharper_arrange_object_creation_when_type_not_evident_highlighting = none
resharper_invert_if_highlighting = none
[Discord/Cmds.cs]
resharper_unused_type_global_highlighting = none
resharper_unused_member_global_highlighting = none

# C# files
[*.cs]

# New line preferences
csharp_new_line_before_open_brace = all
Expand Down
2 changes: 2 additions & 0 deletions Bot/Clash/ClanUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ internal static ClanUtil FromPoll(Clan clan)
return c;
}

// ReSharper disable All
private bool HasMember(ClanMember member) => _members.ContainsKey(member.Tag);
// ReSharper enable All
}

0 comments on commit df953bb

Please sign in to comment.