Skip to content
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

bring master up to 1.18.1 #1264

Merged
merged 169 commits into from
Jun 18, 2019
Merged

bring master up to 1.18.1 #1264

merged 169 commits into from
Jun 18, 2019

Conversation

JamesWTruher
Copy link
Contributor

PR Summary

With the release of 1.18.1, we need to bring the master branch up to date

PR Checklist

bergmeister and others added 30 commits March 16, 2019 14:22
…ng PowerShell for CommandInfo.

There are only 4 rules that could call the CommandInfoCache, therefore sizing the pool to 5. The pool creation is synchronous and adds 15ms of initialization overhead, which we can neglect I think.
…nsive command lookup in AvoidAlias, which is the most expensive rule. To accomodate the higher parallel demand, increase runspace pool.
Multiple runs would result in incorrect layout of the compatibility profiles
* Change module root find function

* Fix whitespace

* Add a comment
…ces indentation level incorrectly (#1191)

* Fix issue whereby single-line pipeline reduces indentation level incorrectly (problem only showed up when there was already existing indentation due to ClipNegative

* Apply suggestions from code review

Co-Authored-By: bergmeister <[email protected]>

* Fix tests by replacing break with continue (forgot I was inside for loop and not switch statement), simple mistake
Because we are using a direct invocation of ConvertTo-SecureString it triggers a warning by MS tools that secrets are not allowed to be checked in to our repository. This suppresses this warning.
Add suppression of warning for MS policy
* Fix NullReferenceException for class type

* Add regression test

* Address PR comments: add comment where the special case can happen and simplify test case to one-liner
…er examples (#1188)

* Update README.md

An updated version of PowerShell Core from 6.0.2 to 6.1.0 as per Changelog

* Update PowerShell Core docker info for Windows

* update linux images as well
…m where UseCorrectCasing corrects aliases (#1216)

* Do not use alias name as key for command info cache to fix the problem where UseCorrectCasing corrects aliases

* Remove unused aliasName parameter and left-over GetCommandInfoInternal function from refactoring a few weeks ago
…append .exe for applications on Windows (#1210)

* UseCorrectCasing: Fix special case of ? for command lookup and do not correct application names to end in .exe on Windows

* Use more generic WildcardPattern.Escape method

* Remove application extension more generically and on Windows only

* Make applications with an extension preserver the extension and re-use isWindows variable better

* Apply suggestions from code review

Co-Authored-By: bergmeister <[email protected]>
This is a proposal for fixing what I perceive to a typo. I recommend an expert should look at this first.a
Fix UseCompatibleSyntax class error message
JamesWTruher and others added 26 commits June 5, 2019 10:59
Co-Authored-By: Christoph Bergmeister [MVP] <[email protected]>
Fix logic errors in AvoidAlias rule
…nalyzer into Performance_RunspacePool_AndSpeedupAvoidAlias

Resolved by taking upstream changes
# Conflicts:
#	Rules/AvoidAlias.cs
… time. There is more cleanup needed in this class in general but this is the minimum viable change
…dSpeedupAvoidAlias

Speedup cold runs of PSSA by using a runspace pool and parallelizing the slowest rule (AvoidAlias)
Add ImplementingType to RuleInfo object
Update PossibleIncorrectComparisonWithNull documentation with better example
update signing file for versioned location of module
Prevent PSCloseBrace crash if hashtable definition start on first token and there is a PSCloseBrace violation
Make it possible to build ScriptAnalyzer with PowerShell7
…faultRules (#1245)

* remove faulty error checking

* fix syntax error

* Add test cases

* cleanup

* remove resource string of error message

* Make tests PS4 compatible
UseCorrectCasing: Do not correct applications or script paths at all
* CHANGELOG for 1.18.1

* update changelog

* Update CHANGELOG.MD
@JamesWTruher JamesWTruher requested a review from bergmeister June 18, 2019 16:53
Copy link
Collaborator

@bergmeister bergmeister left a comment

Choose a reason for hiding this comment

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

LGTM. Please use the Create a merge commit option instead of the usual squash

@JamesWTruher JamesWTruher merged commit b1a8187 into master Jun 18, 2019
@andyleejordan andyleejordan deleted the development branch September 11, 2024 22:55
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.

7 participants