A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/PowerShell/PSScriptAnalyzer/commit/42f5e58ad689fd3871bf4d9c5977b9352d1d4a1f below:

Update UseCompatibleTypes docs with more info · PowerShell/PSScriptAnalyzer@42f5e58 · 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 type is not present in the union profile, it is assumed to be locally creat

67 67

Otherwise, if a type 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 +

| `IgnoreTypes` | Full names of types or type accelerators to ignore compatibility of in scripts | string[]: names of types to ignore | No (default: `@()`) | `@('System.Collections.ArrayList','string')` |

78 + 70 79

An example configuration might look like:

71 80 72 81

```PowerShell

73 82

@{

74 83

Rules = @{

75 -

UseCompatibleTypes = @{

84 +

PSUseCompatibleTypes = @{

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