Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare & set modifier preference (IDE0040) severity #938

Merged
merged 1 commit into from
Jan 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false
# Wrapping
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true

# Modifier preferences
dotnet_style_require_accessibility_modifiers = omit_if_default
dotnet_diagnostic.IDE0040.severity = warning
2 changes: 2 additions & 0 deletions MoreLinq/Lookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// SOFTWARE.
#endregion

#pragma warning disable IDE0040 // Add accessibility modifiers

namespace MoreLinq
{
using System;
Expand Down