Skip to content

Fix coding style for NewModuleManifestCommand - #9134

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
pougetat:clean-newmodulemanifest
Mar 26, 2019
Merged

Fix coding style for NewModuleManifestCommand#9134
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
pougetat:clean-newmodulemanifest

Conversation

@pougetat

@pougetat pougetat (pougetat) commented Mar 14, 2019

Copy link
Copy Markdown

The purpose of this PR is to fix some of the coding style in NewModuleManifestCommand

  • Comments for members
  • 3 member names have been changed so that the use of nameof can be consistent throughout the file : nameof(Modules.CLRVersion) => nameof(CLRVersion). Unfortunately this means not following certain conventions for these 3 member names.

PR Checklist

/// </summary>
[Parameter]
public Guid Guid
public Guid GUID

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.

Please revert - we should use camel style. Also it is public API (breaking change).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

[AllowNull]
[SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings")]
public string HelpInfoUri
public string HelpInfoURI

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.

Please revert - it is public API (breaking change).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

public Guid Guid
public Guid GUID
{
get { return _guid; }

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.

pougetat (@pougetat) You could review all such unneeded private fields and remove them. Better in follow PR.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Mar 23, 2019
@iSazonov Ilya (iSazonov) added this to the 6.3.0-preview.1 milestone Mar 26, 2019
@iSazonov Ilya (iSazonov) self-assigned this Mar 26, 2019
@iSazonov
Ilya (iSazonov) merged commit 0f429f2 into PowerShell:master Mar 26, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
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