Skip to content

Conversation

@jsoref
Copy link
Contributor

@jsoref jsoref commented Sep 1, 2016

These changes are mostly to arguments, local variables, local functions, and non-public methods (mostly private, some protected), and a couple of comments (which I apparently failed to group w/ a previous comments only PR).
I'm trying to exclude public methods from this series (that's reserved for another PR later) -- If there are public methods in here, I'll gladly drop them.

As there are quite a few changes, I've tried to group changes into commits per directory tree.

@msftclas
Copy link

msftclas commented Sep 1, 2016

Hi @jsoref, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@vors vors self-assigned this Sep 1, 2016
@vors
Copy link
Collaborator

vors commented Sep 1, 2016

There are compilation errors introduced by your changes (click red crosses to go to the detailed logs). Please fix them first, before we evaluate the PR

@jsoref jsoref force-pushed the spelling-locals branch 2 times, most recently from 0059f4b to f33b2d2 Compare September 1, 2016 17:14
@jsoref
Copy link
Contributor Author

jsoref commented Sep 1, 2016

I was worried event might be a reserved word, but I foolishly checked the PowerShell list instead of the C# list. The canonical spelling appears to be evt instead of evnt, so I've selected that.

The second failure is apparently a selection miss (I'm basically manually recording a subset of changes into commits -- and apparently I missed one).

Copy link
Collaborator

@vors vors Sep 2, 2016

Choose a reason for hiding this comment

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

Can we separate script files (.psm1, .ps1) into a separate PR?
C# code has static compile checks, but psm1 files would need more attention.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

Copy link
Collaborator

Choose a reason for hiding this comment

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

hitten is correct here. It means, this code path should not be hit (executed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Normally that would be spelled hit. Or one could use run or executed for clarity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

... or called.

@vors if you suggest a replacement (called, executed, hit, run, or used), I can fix it up (or I can split it off into its own PR if that helps this one merge faster).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, the separate PR is always better :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@lzybkr should we remove this commented code?

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, these C# strings that represents powershell are the worst for editing :)

This $setMaxIdleTimeoutFirst change looks good.

Copy link
Collaborator

Choose a reason for hiding this comment

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

PSReadLine is another module that has its own repo https://github.com/lzybkr/PSReadLine and will be replaced by git submodule or something similar

@vors
Copy link
Collaborator

vors commented Sep 2, 2016

Overall looks good!

Before we can merge, please

  • don't apply PSReadLine fixes
  • separate hitted replacement in a separate PR

BTW, extra thank you for keeping the history clean!

@jsoref
Copy link
Contributor Author

jsoref commented Sep 6, 2016

@vors: done

@vors
Copy link
Collaborator

vors commented Sep 6, 2016

Thank you @jsoref !

@jsoref jsoref deleted the spelling-locals branch September 7, 2016 20:21
@jsoref jsoref mentioned this pull request Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants