Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EdrisT committed May 26, 2019
1 parent 9b28f56 commit d11b852
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Default.sublime-commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"caption": "Powershell: Fix certain warnings with PSScriptAnalyzer",
"caption": "Powershell: Fix warnings",
"command": "build",
"args": {
"build_system": "Packages/SublimeLinter-contrib-Powershell/PSScriptAnalyzer_AutoFix.sublime-build",
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ An example [settings file](https://github.com/EdrisT/SublimeLinter-contrib-Power

2. If the variable `$GlobalPSScriptAnalyzerSettingsPath` exists in your powershell environment and is populated with the full path to a valid settings file, those settings will be used. This enables you to use global custom settings. For persistency, set this variable in your powershell profile.

3. If no settings file is found in your project folder and the `$GlobalPSScriptAnalyzerSettingsPath` variable is not set, default settings of PSScriptAnalyzer will be used. (all default rules enabled and no compatibility checks)
3. If no settings file is found in your project folder and the `$GlobalPSScriptAnalyzerSettingsPath` variable is not set, default settings of PSScriptAnalyzer will be used. (all default rules enabled and no compatibility checks)

PSScriptAnalyzer have the ability to automatically fix certain warnings. For example expanding aliases. Even though I believe this functionality is fairly tested, always make sure to back your files before using it.
Type `Powershell: Fix warnings` in the command palette to try it out.

### SublimeLinter settings
- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html
Expand Down
5 changes: 5 additions & 0 deletions messages/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ The linter will decide which settings to use in the following order:

3. If no settings file is found in your project folder and the $GlobalPSScriptAnalyzerSettingsPath variable is not set, default settings of PSScriptAnalyzer will be used. (all default rules enabled and no compatibility checks)


PSScriptAnalyzer have the ability to automatically fix certain warnings. For example expanding aliases. Even though I believe this functionality is fairly tested, always make sure to back your files before using it.
Type `Powershell: Fix warnings` in the command palette to try it out.


For more information, please see:
https://github.com/EdrisT/SublimeLinter-contrib-Powershell
https://github.com/PowerShell/PSScriptAnalyzer
Expand Down

0 comments on commit d11b852

Please sign in to comment.