A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PowerShell/PSScriptAnalyzer/commit/7874b555643315dc3d8c00394fac81e0684504ff below:

UseCompatibleCommands doc improvements · PowerShell/PSScriptAnalyzer@7874b55 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed Original file line number Diff line number Diff line change

@@ -67,12 +67,21 @@ If a command is not present in the union profile, it is assumed to be locally cr

67 67

Otherwise, if a command is present in the union profile but not present in a target,

68 68

it is deemed to be incompatible with that target.

69 69 70 +

## Configuration settings

71 + 72 +

| Configuration key | Meaning | Accepted values | Mandatory | Example |

73 +

| ----------------- | ------- | --------------- | --------- | ------- |

74 +

| `Enable` | Activates the rule | bool (`$true`/`$false`) | No (default: `$false`) | `$true` |

75 +

| `TargetProfiles` | The list of PowerShell profiles to target | string[]: absolute paths to profile files or names of profiles in the profile directory | No (default: `@()`) | `@('ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core', 'win-48_x64_10.0.17763.0_5.1.17763.316_x64_4.0.30319.42000_framework')` |

76 +

| `ProfileDirPath` | The location to search for profiles by name and use for union profile generation | string: absolute path to new profile dir | No (defaults to `compatibility_profiles` directory in PSScriptAnalyzer module | `C:\Users\me\Documents\pssaCompatProfiles` |

77 +

| `IgnoreCommands` | Commands to ignore compatibility of in scripts | string[]: names of commands to ignore | No (default: `@()`) | `@('Get-ChildItem','Import-Module')` |

78 + 70 79

An example configuration might look like:

71 80 72 81

```PowerShell

73 82

@{

74 83

Rules = @{

75 -

UseCompatibleCommmands = @{

84 +

PSUseCompatibleCommmands = @{

76 85

Enable = $true

77 86

TargetProfiles = @(

78 87

'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core'

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4