Skip to content

[Code Quality] Servy.Service EnvironmentVariableHelper.cs — Duplicate <summary> XML doc on ExpandWithDictionary #708

@Christophe-Rogiers

Description

@Christophe-Rogiers

Severity: Info

File: src/Servy.Service/Helpers/EnvironmentVariableHelper.cs, lines 179-194

The private ExpandWithDictionary method has two consecutive, identical <summary> / <param> / <returns> XML documentation blocks. Same pattern as #704.

        /// <summary>
        /// Expands environment variables in a string using the provided dictionary of variables.
        /// Custom variables override system variables. Windows built-in expansion is also applied
        /// to handle system-defined placeholders such as %SystemRoot%.
        /// </summary>
        /// <param name="value">The string to expand.</param>
        /// <param name="variables">The dictionary of environment variables to use during expansion.</param>
        /// <returns>The expanded string.</returns>
        /// <summary>
        /// Expands environment variables in a string using the provided dictionary of variables.
        /// Custom variables override system variables. Windows built-in expansion is also applied
        /// to handle system-defined placeholders such as %SystemRoot%.
        /// </summary>
        /// <param name="value">The string to expand.</param>
        /// <param name="variables">The dictionary of environment variables to use during expansion.</param>
        /// <returns>The expanded string.</returns>
        private static string ExpandWithDictionary(string value, IDictionary<string, string?> variables)

Suggested fix

Remove one of the duplicate blocks (they are byte-identical).

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions