Skip to content

Commit 6404d58

Browse files
committed
Addressed mismatched parameter documentation
Added documentation for parameters where missing, removed extraneous documentation from since-deleted parameters, and updated documentation—or parameters!—to ensure they shared the same name. This resolves CS1573.
1 parent 4919695 commit 6404d58

6 files changed

Lines changed: 6 additions & 10 deletions

File tree

OnTopic.AspNetCore.Mvc/Controllers/SitemapController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public ActionResult Index(bool indent = false, bool includeMetadata = false) {
168168
/// <summary>
169169
/// Given a root topic, generates an XML-formatted sitemap.
170170
/// </summary>
171-
/// <param name="topic">The topic to add to the sitemap.</param>
171+
/// <param name="rootTopic">The topic to add to the sitemap.</param>
172172
/// <param name="includeMetadata">Optionally enables extended metadata associated with each topic.</param>
173173
/// <returns>A Sitemap.org sitemap.</returns>
174174
private XDocument GenerateSitemap(Topic rootTopic, bool includeMetadata = false) =>

OnTopic.AspNetCore.Mvc/TopicViewLocationExpander.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ public void PopulateValues(ViewLocationExpanderContext context) {
8888
/*==========================================================================================================================
8989
| METHOD: EXPAND VIEW LOCATIONS
9090
\-------------------------------------------------------------------------------------------------------------------------*/
91-
/// <summary>
92-
/// Introduces additional routes
93-
/// </summary>
94-
/// <param name="context">The <see cref="ViewLocationExpanderContext"/> that the request is operating within.</param>
91+
/// <inheritdoc/>
9592
public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations) {
9693

9794
/*------------------------------------------------------------------------------------------------------------------------

OnTopic.AspNetCore.Mvc/TopicViewResultExecutor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public class TopicViewResultExecutor : ViewExecutor, IActionResultExecutor<Topic
3535
/// <param name="viewEngine">The <see cref="ICompositeViewEngine"/>.</param>
3636
/// <param name="tempDataFactory">The <see cref="ITempDataDictionaryFactory"/>.</param>
3737
/// <param name="diagnosticListener">The <see cref="DiagnosticListener"/>.</param>
38-
/// <param name="loggerFactory">The <see cref="ILoggerFactory"/>.</param>
3938
/// <param name="modelMetadataProvider">The <see cref="IModelMetadataProvider"/>.</param>
4039
public TopicViewResultExecutor(
4140
IOptions<MvcViewOptions> viewOptions,

OnTopic.Data.Sql/SqlCommandExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ internal static void AddParameter(this SqlCommand command, string sqlParameter,
105105
/// <param name="command">The SQL command object.</param>
106106
/// <param name="sqlParameter">The SQL parameter.</param>
107107
/// <param name="fieldValue">The SQL field value.</param>
108-
/// <param name="sqlDbType">The SQL field data type.</param>
109108
internal static void AddParameter(this SqlCommand command, string sqlParameter, string? fieldValue)
110109
=> AddParameter(command, sqlParameter, String.IsNullOrEmpty(fieldValue)? null : fieldValue, SqlDbType.VarChar);
111110

@@ -117,7 +116,6 @@ internal static void AddParameter(this SqlCommand command, string sqlParameter,
117116
/// <param name="fieldValue">The SQL field value.</param>
118117
/// <param name="sqlDbType">The SQL field data type.</param>
119118
/// <param name="paramDirection">The SQL parameter's directional setting (input-only, output-only, etc.).</param>
120-
/// <param name="sqlLength">Length limit for the SQL field.</param>
121119
/// <requires description="The SQL command object must be specified." exception="T:System.ArgumentNullException">
122120
/// command is not null
123121
/// </requires>

OnTopic.Data.Sql/SqlDataReaderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private static void SetExtendedAttributes(this SqlDataReader reader, TopicIndex
347347
/// behavior is overwritten to accept whatever value is submitted. This can be used, for instance, to prevent an update
348348
/// from being persisted to the data store on <see cref="Repositories.ITopicRepository.Save(Topic, Boolean)"/>.
349349
/// </param>
350-
private static void SetRelationships(this IDataReader reader, TopicIndex topics, bool? isDirty = false) {
350+
private static void SetRelationships(this IDataReader reader, TopicIndex topics, bool? markDirty = false) {
351351

352352
/*------------------------------------------------------------------------------------------------------------------------
353353
| Identify attributes
@@ -378,7 +378,7 @@ private static void SetRelationships(this IDataReader reader, TopicIndex topics,
378378
| Set relationship on object
379379
\-----------------------------------------------------------------------------------------------------------------------*/
380380
if (!isDeleted) {
381-
current.Relationships.SetValue(relationshipKey, related, isDirty);
381+
current.Relationships.SetValue(relationshipKey, related, markDirty);
382382
}
383383
else if (current.Relationships.Contains(relationshipKey, related)) {
384384
current.Relationships.Remove(relationshipKey, related);

OnTopic.Data.Sql/SqlTopicRepository.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ protected override sealed void DeleteTopic(Topic topic) {
618618
/// Internal method that saves topic relationships to the n:n mapping table in SQL.
619619
/// </summary>
620620
/// <param name="topic">The topic object whose relationships should be persisted.</param>
621+
/// <param name="version">The version that should be associated with the updated value.</param>
621622
/// <param name="connection">The SQL connection.</param>
622623
private static void PersistRelationships(Topic topic, DateTime version, SqlConnection connection) {
623624

@@ -684,6 +685,7 @@ private static void PersistRelationships(Topic topic, DateTime version, SqlConne
684685
/// Internal method that saves topic references to the 1:n mapping table in SQL.
685686
/// </summary>
686687
/// <param name="topic">The topic object whose references should be persisted.</param>
688+
/// <param name="version">The version that should be associated with the updated value.</param>
687689
/// <param name="connection">The SQL connection.</param>
688690
private static void PersistReferences(Topic topic, DateTime version, SqlConnection connection) {
689691

0 commit comments

Comments
 (0)