You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WS2012R2 / Windows 8.1 / Windows OS running a **minimum of PowerShell v3.0**
52
+
### Windows
53
+
- Windows PowerShell 3.0 or greater
54
+
- PowerShell Core
53
55
54
-
A Windows OS with PowerShell v5.0 [Windows Management Framework 5.0 Preview](http://go.microsoft.com/fwlink/?LinkId=398175) is also supported
56
+
### Linux (*Tested only on Ubuntu 14.04*)
57
+
- PowerShell Core
55
58
56
-
57
-
Installation
59
+
Get PSScriptAnalyzer
58
60
============
59
61
60
-
1. Build the Code using Visual Studio [solution part of the repo] and navigate to the binplace location [``~/ProjectRoot/PSScriptAnalyzer``]
62
+
### PowerShell Gallery
61
63
62
-
2. In PowerShell Console:
63
64
```powershell
64
-
Import-Module PSScriptAnalyzer
65
+
Install-Module -Name PSScriptAnalyzer
65
66
```
66
-
If you have previous version of PSScriptAnalyzer installed on your machine, you may need to override old binaries by copying content of [``~/ProjectRoot/PSScriptAnalyzer``] to PSModulePath.
67
67
68
-
To confirm installation: run ```Get-ScriptAnalyzerRule``` in the PowerShell console to obtain the built-in rules
68
+
### Source
69
+
70
+
#### Dependencies
71
+
* Visual Studio 2015
72
+
*[PlatyPS 0.5.0 or greater](https://github.com/PowerShell/platyPS)
69
73
74
+
#### Steps
75
+
* Obtain the source
76
+
- Download the latest source code from the release page (https://github.com/PowerShell/PSScriptAnalyzer/releases) OR
The `*LineNumber` and `*ColumnNumber` properties give the region of the script that can be replaced by the contents of `Text` property, i.e., replace gci with Get-ChildItem.
256
286
257
-
The main motivation behind having `SuggestedCorrections` is to enable quick-fix like scenarios in editors like VSCode, Sublime, etc. At present, we provide valid `SuggestedCorrection` only for the following rules, while gradually adding this feature to more rules.
287
+
The main motivation behind having `SuggestedCorrections` is to enable quick-fix like scenarios in editors like VSCode, Sublime, etc. At present, we provide valid `SuggestedCorrection` only for the following rules, while gradually adding this feature to more rules.
0 commit comments