Skip to content

Commit 5cb927d

Browse files
committed
Suppress CA1725: Parameter names should match base declaration
1 parent 67eaf6e commit 5cb927d

File tree

90 files changed

+341
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+341
-202
lines changed

Build/Build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AnalysisLevel>latest</AnalysisLevel>
1212
<AnalysisMode>Recommended</AnalysisMode>
1313
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14-
<WarningsNotAsErrors>CS0618,CA1725,CA5351</WarningsNotAsErrors>
14+
<WarningsNotAsErrors>CS0618,CA5351</WarningsNotAsErrors>
1515
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1616
</PropertyGroup>
1717
<ItemGroup>

Build/Lifetime.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace DotNetNuke.Build
77
using Cake.Common;
88
using Cake.Common.Diagnostics;
99
using Cake.Core;
10-
using Cake.Core.Diagnostics;
1110
using Cake.Core.IO;
1211
using Cake.Frosting;
1312

@@ -17,7 +16,7 @@ public sealed class Lifetime : FrostingLifetime<Context>
1716
private static readonly string[] CorepackToolNames = ["corepack", "corepack.cmd",];
1817

1918
/// <inheritdoc/>
20-
public override void Setup(Context context, ISetupContext setupContext)
19+
public override void Setup(Context context, ISetupContext info)
2120
{
2221
context.IsRunningInCI = context.HasEnvironmentVariable("TF_BUILD");
2322
context.Information("Is Running in CI : {0}", context.IsRunningInCI);

DNN Platform/Connectors/Azure/Dnn.AzureConnector.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<AnalysisMode>Recommended</AnalysisMode>
1212
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1313
<NoWarn>CS1591</NoWarn>
14-
<WarningsNotAsErrors>CA1725</WarningsNotAsErrors>
1514
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1615
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1716
</PropertyGroup>

DNN Platform/Connectors/Azure/Services/ServiceRouteMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class ServiceRouteMapper : IServiceRouteMapper
1111
private static readonly string[] Namespaces = ["Dnn.AzureConnector.Services",];
1212

1313
/// <inheritdoc/>
14-
public void RegisterRoutes(IMapRoute routeManager)
14+
public void RegisterRoutes(IMapRoute mapRouteManager)
1515
{
16-
routeManager.MapHttpRoute(
16+
mapRouteManager.MapHttpRoute(
1717
"AzureConnector",
1818
"default",
1919
"{controller}/{action}",

DNN Platform/DotNetNuke.Web/Components/Controllers/ControlBarController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace DotNetNuke.Web.Components.Controllers
66
{
77
using System;
88
using System.Collections.Generic;
9+
using System.Diagnostics.CodeAnalysis;
910
using System.Globalization;
1011
using System.IO;
1112
using System.Linq;
@@ -70,9 +71,10 @@ public IEnumerable<KeyValuePair<string, PortalDesktopModuleInfo>> GetBookmarkedD
7071

7172
return this.GetBookmarkedModules(PortalSettings.Current.PortalId, userId)
7273
.Where(kvp => kvp.Key.ToLower(CultureInfo.InvariantCulture).Contains(formattedSearchTerm));
73-
}
74-
74+
}
75+
7576
/// <inheritdoc/>
77+
[SuppressMessage("Microsoft.Naming", "CA1725:ParameterNamesShouldMatchBaseDeclaration", Justification = "Breaking change")]
7678
public void SaveBookMark(int portalId, int userId, string bookmarkTitle, string bookmarkValue)
7779
{
7880
var ensuredBookmarkValue = bookmarkValue;

DNN Platform/DotNetNuke.Web/DotNetNuke.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AnalysisMode>Recommended</AnalysisMode>
1212
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1313
<NoWarn>CS1591</NoWarn>
14-
<WarningsNotAsErrors>CS0618,SA1600,CA1725,CA3075,CA5351</WarningsNotAsErrors>
14+
<WarningsNotAsErrors>CS0618,SA1600,CA3075,CA5351</WarningsNotAsErrors>
1515
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1616
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1717
</PropertyGroup>

DNN Platform/DotNetNuke.Web/UI/WebControls/DnnFormEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace DotNetNuke.Web.UI.WebControls
66
using System;
77
using System.Collections.Generic;
88
using System.ComponentModel;
9+
using System.Diagnostics.CodeAnalysis;
910
using System.Text;
1011
using System.Web.UI;
1112
using System.Web.UI.WebControls;
@@ -165,6 +166,7 @@ protected virtual void CreateControlHierarchy(bool useDataSource)
165166
}
166167

167168
/// <inheritdoc/>
169+
[SuppressMessage("Microsoft.Naming", "CA1725:ParameterNamesShouldMatchBaseDeclaration", Justification = "Breaking change")]
168170
protected override void LoadControlState(object state)
169171
{
170172
if (state != null)

DNN Platform/DotNetNuke.Web/UI/WebControls/DnnFormItemBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ protected void UpdateDataSource(object oldValue, object newValue, string dataFie
269269
}
270270

271271
/// <inheritdoc/>
272+
[SuppressMessage("Microsoft.Naming", "CA1725:ParameterNamesShouldMatchBaseDeclaration", Justification = "Breaking change")]
272273
protected override void LoadControlState(object state)
273274
{
274275
this.value = state;

DNN Platform/DotNetNuke.WebUtility/ClientAPIPostBackControl.vb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
' Copyright (c) .NET Foundation. All rights reserved.
1+
' Copyright (c) .NET Foundation. All rights reserved.
22
' Licensed under the MIT License. See LICENSE file in the project root for full license information.
33

4+
Imports System.Diagnostics.CodeAnalysis
45
Imports System.Web.UI
56

67
Namespace DotNetNuke.UI.Utilities
@@ -99,6 +100,7 @@ Namespace DotNetNuke.UI.Utilities
99100
''' [Jon Henning] 9/15/2004 Created
100101
''' </history>
101102
''' -----------------------------------------------------------------------------
103+
<SuppressMessage("Microsoft.Naming", "CA1725:ParameterNamesShouldMatchBaseDeclaration", Justification := "Breaking change")>
102104
Public Sub RaisePostBackEvent(ByVal strEventArgument As String) Implements System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
103105
Dim objArg As ClientAPIPostBackEventArgs = New ClientAPIPostBackEventArgs(strEventArgument)
104106
If Not EventHandlers(objArg.EventName) Is Nothing Then

DNN Platform/DotNetNuke.WebUtility/DotNetNuke.WebUtility.vbproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<AnalysisMode>Recommended</AnalysisMode>
1414
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1515
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
16-
<WarningsNotAsErrors>CA1725,CA3075,CA5372</WarningsNotAsErrors>
16+
<WarningsNotAsErrors>CA3075,CA5372</WarningsNotAsErrors>
1717
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
</PropertyGroup>

0 commit comments

Comments
 (0)