Remove obsolete CA1026 rule suppression (#25934)

This commit is contained in:
xtqqczze
2025-08-31 23:20:07 +05:00
committed by GitHub
parent 41ecc6847c
commit eda56e282e
3 changed files with 0 additions and 11 deletions
@@ -64,7 +64,6 @@ namespace System.Management.Automation
/// <param name="moduleName"></param>
/// <param name="commandTypes"></param>
/// <returns></returns>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public static IEnumerable<CompletionResult> CompleteCommand(string commandName, string moduleName, CommandTypes commandTypes = CommandTypes.All)
{
var runspace = Runspace.DefaultRunspace;
@@ -95,7 +95,6 @@ namespace System.Management.Automation.PerformanceData
/// based on Provider Id, counterSetId, counterSetInstanceType, a collection
/// with counters information and an optional counterSetName.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected CounterSetRegistrarBase(
Guid providerId,
Guid counterSetId,
@@ -220,7 +219,6 @@ namespace System.Management.Automation.PerformanceData
/// <summary>
/// Constructor that creates an instance of PSCounterSetRegistrar.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public PSCounterSetRegistrar(
Guid providerId,
Guid counterSetId,
@@ -162,7 +162,6 @@ namespace System.Management.Automation.PerformanceData
/// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool UpdateCounterByValue(
Guid counterSetId,
int counterId,
@@ -193,7 +192,6 @@ namespace System.Management.Automation.PerformanceData
/// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool UpdateCounterByValue(
Guid counterSetId,
string counterName,
@@ -224,7 +222,6 @@ namespace System.Management.Automation.PerformanceData
/// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool UpdateCounterByValue(
string counterSetName,
int counterId,
@@ -264,7 +261,6 @@ namespace System.Management.Automation.PerformanceData
/// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool UpdateCounterByValue(
string counterSetName,
string counterName,
@@ -303,7 +299,6 @@ namespace System.Management.Automation.PerformanceData
/// to 'counterValue'.
/// Otherwise, updates the denominator component to 'counterValue'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
Guid counterSetId,
int counterId,
@@ -334,7 +329,6 @@ namespace System.Management.Automation.PerformanceData
/// to 'counterValue'.
/// Otherwise, updates the denominator component to 'counterValue'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
Guid counterSetId,
string counterName,
@@ -365,7 +359,6 @@ namespace System.Management.Automation.PerformanceData
/// to 'counterValue'.
/// Otherwise, updates the denominator component to 'counterValue'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
string counterSetName,
int counterId,
@@ -404,7 +397,6 @@ namespace System.Management.Automation.PerformanceData
/// to 'counterValue'.
/// Otherwise, updates the denominator component to 'counterValue'.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
string counterSetName,
string counterName,