File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Table of Contents
13
13
- [ Usage] ( #usage )
14
14
- [ Installation] ( #installation )
15
15
+ [ From PowerShell Gallery] ( #from-powershell-gallery )
16
- - [ Requirements ] ( #requirements )
16
+ - [ Supported PowerShell Versions and Platforms ] ( #supported-powerShell-versions-and-platforms )
17
17
* [ Windows] ( #windows )
18
18
* [ Linux (* Tested only on Ubuntu 14.04* )] ( #linux-tested-only-on-ubuntu-1404 )
19
19
+ [ From Source] ( #from-source )
@@ -70,14 +70,19 @@ Install-Module -Name PSScriptAnalyzer
70
70
71
71
** Note** : For PowerShell version ` 5.1.14393.206 ` or newer, before installing PSScriptAnalyzer, please install the latest Nuget provider by running the following in an elevated PowerShell session.
72
72
``` powershell
73
- Install-PackageProvider Nuget –force –verbose
73
+ Install-PackageProvider Nuget -MinimumVersion 2.8.5.201 –Force
74
74
Exit
75
75
```
76
76
77
- #### Requirements
77
+ #### Supported PowerShell Versions and Platforms
78
78
79
79
- Windows PowerShell 3.0 or greater
80
80
- PowerShell Core on Windows/Linux/macOS
81
+ - Docker (tested only using Docker CE on Windows 10 1803):
82
+ - [ microsoft/windowsservercore] ( https://hub.docker.com/r/microsoft/windowsservercore/ ) for Windows. Example:
83
+ ``` docker run -it microsoft/windowsservercore powershell -command "Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; Install-Module PSScriptAnalyzer -Force; Invoke-ScriptAnalyzer -ScriptDefinition 'gci'" ```
84
+ - [ microsoft/powershell] ( https://hub.docker.com/r/microsoft/powershell/ ) for Linux. Example:
85
+ ``` docker run -it microsoft/powershell pwsh -c "Install-Module PSScriptAnalyzer -Force; Invoke-ScriptAnalyzer -ScriptDefinition 'gci'" ```
81
86
82
87
### From Source
83
88
You can’t perform that action at this time.
0 commit comments