Fix some style issues in engine code#7246
Conversation
BrucePay
left a comment
There was a problem hiding this comment.
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.
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.
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.
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.
Should be "The name of the alias entry to add."
| /// Clone this collection. | ||
| /// </summary> | ||
| /// <returns>The cloned object</returns> | ||
| /// <returns>The cloned object.</returns> |
|
|
||
| /// <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.
We don't support snapins in PSCore so maybe we should be removing these entries?
There was a problem hiding this comment.
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.
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> |
| /// <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.
Extra space before "<param" ?
| @@ -1053,9 +1059,14 @@ private static void SortAndRemoveDuplicates<T>(List<T> input, Func<T, string> ke | |||
| /// <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.
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? |
| //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.
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.
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.> |
daxian-dbw
left a comment
There was a problem hiding this comment.
@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.
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