-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix some style issues in engine code #7246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BrucePay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of things I think you should fix.
| /// <summary> | ||
| /// The FormatData specified with constructor. This can be null if | ||
| /// FileName or FormatTable constructor is used | ||
| /// FileName or FormatTable constructor is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be: "This can be null if the FileName or FormatTable constructors are used"
| /// Define an alias entry to add to the initial session state | ||
| /// Define an alias entry to add to the initial session state. | ||
| /// </summary> | ||
| /// <param name="name">Name of the alias</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "The name of the alias entry to add."
| /// Define an alias entry to add to the initial session state | ||
| /// Define an alias entry to add to the initial session state. | ||
| /// </summary> | ||
| /// <param name="name">Name of the alias</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "The name of the alias entry to add."
| /// Define an alias entry to add to the initial session state | ||
| /// Define an alias entry to add to the initial session state. | ||
| /// </summary> | ||
| /// <param name="name">Name of the alias</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "The name of the alias entry to add."
| /// Clone this collection. | ||
| /// </summary> | ||
| /// <returns>The cloned object</returns> | ||
| /// <returns>The cloned object.</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The cloned collection."
|
|
||
| /// <summary> | ||
| /// Need to have SnapIn support till we move to modules | ||
| /// Need to have SnapIn support till we move to modules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support snapins in PSCore so maybe we should be removing these entries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is only style issues - please open new tracking Issue.
| false)) | ||
| if (SessionStateUtilities.MatchesAnyWildcardPattern(element.Name, | ||
| exportedVariables, | ||
| defaultValue: false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest lining up all three parameters but with less indentation.
if (SessionStateUtilities.MatchesAnyWildcardPattern(
element.Name,
exportedVariables,
defaultValue: false))
| /// <param name="moduleManifestPath">The manifest that generated the hashtable.</param> | ||
| /// <param name="key">the table key to use.</param> | ||
| /// <param name="manifestProcessingFlags">Specifies how to treat errors and whether to load elements.am> | ||
| /// <param name="result">Value from the manifest converted to the right type.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the "am" here?
| /// <param name="module">module to remove</param> | ||
| /// <param name="moduleNameInRemoveModuleCmdlet">module name specified in the cmdlet</param> | ||
| /// <param name="module">module to remove.</param> | ||
| /// <param name="moduleNameInRemoveModuleCmdlet">module name specified in the cmdlet.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space before "<param" ?
| /// <param name="aliasPatterns">Patterns describing the aliases to export</param> | ||
| /// <param name="variablePatterns">Patterns describing the variables to export</param> | ||
| /// <param name="doNotExportCmdlets">List of Cmdlets that will not be exported, | ||
| /// even if they match in cmdletPatterns.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra spaces before 'even'
|
@BrucePay Your feedback was addressed. |
|
@BrucePay Please update your review. |
|
@BrucePay Can you update your review? |
|
@TravisEz13 @BrucePay @daxian-dbw Could you please review? |
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments
| //If used on command collection entry, then for the same name, one can have multiple output | ||
| // To find the entries based on name. | ||
| // Why collection - Different SnapIn/modules and same entity names. | ||
| // If used on command collection entry, then for the same name, one can have multiple output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments are duplicate with the ones below in
. They can be removed.
| //This one is for module. Can take only one module, and not collection | ||
| //public static InitialSessionState Create(Module); | ||
| // This one is for module. Can take only one module, and not collection | ||
| // public static InitialSessionState Create(Module); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be these two can be removed.
| /// <param name="data">The hashtable to look for the key in.</param> | ||
| /// <param name="moduleManifestPath">The manifest that generated the hashtable.</param> | ||
| /// <param name="key">the table key to use.</param> | ||
| /// <param name="manifestProcessingFlags">Specifies how to treat errors and whether to load elements.> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</param> is missing
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iSazonov Can you please update the PR title and summary to be more related to the changes?
new commits were pushed to address the original comments.
|
@daxian-dbw Title and summary was updated. |
TravisEz13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 12 files at r1, 9 of 11 files at r3, 7 of 11 files at r4, 2 of 2 files at r5.
Reviewable status:complete! all files reviewed
PR Summary
The PR resolves some style issues in engine code. (Moved from PR #7242. )
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature testsThis change is