Skip to content
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
2 changes: 1 addition & 1 deletion .globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ dotnet_diagnostic.IDE0075.severity = warning
dotnet_diagnostic.IDE0076.severity = silent

# IDE0077: LegacyFormatSuppressMessageAttribute
dotnet_diagnostic.IDE0077.severity = silent
dotnet_diagnostic.IDE0077.severity = warning

# IDE0078: UsePatternCombinators
dotnet_diagnostic.IDE0078.severity = silent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Management.Automation;
using System.Text;

[module: SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Scope = "type", Target = "Microsoft.PowerShell.Commands.ByteCollection")]
[module: SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Scope = "type", Target = "~T:Microsoft.PowerShell.Commands.ByteCollection")]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need the suppression?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we enable the rule and remove the suppression we get:

Error CA1711 Rename type name ByteCollection so that it does not end in 'Collection' Microsoft.PowerShell.Commands.Utility src\Microsoft.PowerShell.Commands.Utility\commands\utility\UtilityCommon.cs 99 Active


namespace Microsoft.PowerShell.Commands
{
Expand Down