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 — Update rule docs by sdwheeler · Pull Request #1711 · PowerShell/PSScriptAnalyzer Conversation
|
| The compatibility analysis compares a command used to both a target profile and a "union" profile | ||
| (containing all commands available in *any* profile in the profile dir). If a command is not present | ||
| in the union profile, it is assumed to be locally created and ignored. Otherwise, if a command is | ||
| present in the union profile but not present in a target, it is deemed to be incompatible with that | ||
| target. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This documentation was written with semantic line breaks in mind. While those aren't used in the docs repos, I think we wish to keep them here.
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.
| If a ScriptBlock is intended to be run in a new RunSpace, variables inside it should use the | ||
| `$using:` scope modifier, or be initialized within the **ScriptBlock**. This applies to: | ||
|
|
||
| - `Invoke-Command`- Only with the **ComputerName** or **Session** parameter. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here I'd suggest -ComputerName etc, in monospace
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Bold is the style when parameter names are used in a paragraph. Code style is used when the parameter is used in a code context.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ## Description | ||
|
|
||
| For a file encoded with a format other than ASCII, ensure Byte Order Mark (BOM) is present to ensure that any application consuming this file can interpret it correctly. | ||
| For a file encoded with a format other than ASCII, ensure Byte Order Mark (BOM) is present to ensure |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this still true or do we expect UTF8 (no BOM) now?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The rule exists. I guess the question is whether it is or should be applied?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Steve Lee (@SteveL-MSFT) the rule enforces the presence of a BOM.
A script encoded with UTF-8 (no BOM) will be misinterpreted by WinPS as CP-1252.
See https://docs.microsoft.com/powershell/scripting/dev-cross-plat/vscode/understanding-file-encoding
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
(As it happens, that doc page itself has encoding issues around HTML escaping)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we add the information about WinPS to the rule doc?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Rob Holt (@rjmholt) FYI - just fixed the html encoding problem in the article. It will be live this afternoon.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Robert Holt <[email protected]> Co-authored-by: Steve Lee <[email protected]>
|
Steve Lee (@SteveL-MSFT) this is set to auto-merge, so when you refresh your review to an approval it will merge |
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.
There was an error while loading. Please reload this page.