GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — Add UseUsingScopeModifierInNewRunspaces rule by Jawz84 · Pull Request #1419 · PowerShell/PSScriptAnalyzer Conversation
|
|
You are on the right track. I suggest to continue focusing on the code of the rule itself. Don't worry about the rest like docs or some other test failures at the moment, they will be easy to fix at the end. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…en rule development
There was an error while loading. Please reload this page.
|
Christoph Bergmeister (@bergmeister) I've hit a milestone. At this point the code seems to be working as intended. I have added one minor feature which may need to be in a separate PR: I've added the option to use Can we have a little brainstorm on where this rule may be applied to, other than just for Would you like to start a review round at this point, or better after we have a clear picture of how to move forward? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The failure in Ubuntu 1804 build is the same Authenticode glitch we saw earlier. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
// brainstorm Other situations where this rule can be applied:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Michael Klement (@mklement0) thanks for creating the powershell-docs PR for documenting this. That gave me the quick overview I needed. If you have any suggestions, I'd love to hear them, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, Jos Koelewijn (@Jawz84), a great rule to add, and it would be great if it covered the other One pending PR to watch out for: PowerShell/PowerShell#11829, which is trying to eliminate overzealous As for the terminology in the rule documentation: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for pointing these out Michael Klement (@mklement0) ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The rule is working now. I am not completely satisfied with what the implementation looks like, and I'm likely to do some cleanup and refactor. If Michael Klement (@mklement0) or Christoph Bergmeister (@bergmeister) have insights how to best convert this to cleaner code, I'm all ears. Second question: when starting out, I named the rule |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Robert Holt <[email protected]>
Co-Authored-By: Robert Holt <[email protected]>
Co-Authored-By: Robert Holt <[email protected]>
…el_rule' into 1410_foreach_parallel_rule resolve merge conflict
to avoid closure allocation
|
Rob Holt (@rjmholt) I've been thinking about what to optimize, and especially: how to measure if it has worked. When I run tests, most are around 15ms, but some stand out and take longer: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Rob Holt (@rjmholt) did you have a chance to look at this yet? I'm starting to fear we might be accidentally waiting for each other |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-Authored-By: Robert Holt <[email protected]>
Co-Authored-By: Robert Holt <[email protected]>
Co-Authored-By: Robert Holt <[email protected]>
refactoring FindVarsInAssignmentAsts to return a dictionary in progress
|
Really enjoying your feedback Rob Holt (@rjmholt)! I am learning a lot. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
refactoredFindVarsInAssignmentAsts to return a dictionary
…el_rule' into 1410_foreach_parallel_rule fix merge conflict
|
Rob Holt (@rjmholt) back over to you, all good here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Christoph Bergmeister (@bergmeister), Rob Holt (@rjmholt) thanks for all the reviews. Is there anything more I can do here? I am uncertain what the next step is. Is this blocked on review from James Truher (@JamesWTruher)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think having at least one reviewer from Microsoft is good enough, this is our unwritten rule, so I'll therefore merge. Congrats and thanks for your hard work |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
New rule for ForEach-Object -Parallel that helps users pinpoint problems with their variable scoping
There was an error while loading. Please reload this page.