FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update AzF profile to be useful by rjmholt · Pull Request #1341 · PowerShell/PSScriptAnalyzer · GitHub

Update AzF profile to be useful - #1341

Merged
Rob Holt (rjmholt) merged 3 commits into
PowerShell:masterfrom
rjmholt:azf-az-profile
Sep 14, 2019
Merged

Update AzF profile to be useful#1341
Rob Holt (rjmholt) merged 3 commits into
PowerShell:masterfrom
rjmholt:azf-az-profile

Conversation

Copy link
Copy Markdown
Contributor

PR Summary

I've run the profile collector on the AzF profile (with some difficulty) and collected a new profile that captures the default Az installation.

I've also removed cmdlets that don't work in AzF despite being present, like Start-Job and Enter-PSSession.

I had to make some small changes to the profile collector to not crash (plus one where I realised that collecting a function if we're not able to load it is unhelpful).

PR Checklist

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks ok to me but it broke 1 CI test:

    Context Targeting new-form Az profiles alongside older profiles
      [-] Finds AzF problems with a script 7.37s
        KeyNotFoundException: The given key 'InDisconnectedSession' was not present in the dictionary.
        at <ScriptBlock>, C:\projects\psscriptanalyzer\Tests\Rules\UseCompatibleCommands.Tests.ps1: line 334

Copy link
Copy Markdown
Contributor Author

Impressive that testing picked that up! I'll have to make some further edits

Copy link
Copy Markdown
Contributor Author

Impressive that testing picked that up!

Have to credit you entirely for that Christoph Bergmeister (@bergmeister) -- you asked for those tests.

Looks like they're working now. Hopefully the Lazys don't hide other faults. I took out parameters and commands manually, and it looks like I took a parameter out without its alias there.

Rob Holt (rjmholt) merged commit 5e207aa into PowerShell:master Sep 14, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL