Skip to content

Enable IDE0077: LegacyFormatSuppressMessageAttribute#14495

Merged
iSazonov merged 1 commit intoPowerShell:masterfrom
xtqqczze:IDE0077
Jan 7, 2021
Merged

Enable IDE0077: LegacyFormatSuppressMessageAttribute#14495
iSazonov merged 1 commit intoPowerShell:masterfrom
xtqqczze:IDE0077

Conversation

@xtqqczze
Copy link
Copy Markdown
Contributor

@xtqqczze xtqqczze commented Dec 24, 2020

@ghost ghost assigned anmenaga Dec 24, 2020
@xtqqczze
Copy link
Copy Markdown
Contributor Author

PowerShell-CI-windows failures tracked by #14420.

@xtqqczze xtqqczze closed this Dec 24, 2020
@xtqqczze xtqqczze reopened this Dec 24, 2020
@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Dec 27, 2020
@xtqqczze xtqqczze marked this pull request as ready for review January 5, 2021 17:10
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jan 5, 2021
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
Copy Markdown
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
Copy Markdown
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

@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Jan 7, 2021
@iSazonov iSazonov assigned iSazonov and unassigned anmenaga Jan 7, 2021
@iSazonov iSazonov merged commit 89c2ad3 into PowerShell:master Jan 7, 2021
@iSazonov iSazonov added this to the 7.2.0-preview.3 milestone Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants