-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.skip/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# The PowerShell Script Analyzer will generate a warning | ||
# diagnostic record for this file due to a bug - | ||
# https://github.com/PowerShell/PSScriptAnalyzer/issues/472 | ||
@{ | ||
# Only diagnostic records of the specified severity will be generated. | ||
# Uncomment the following line if you only want Errors and Warnings but | ||
# not Information diagnostic records. | ||
#Severity = @('Error','Warning') | ||
|
||
# Analyze **only** the following rules. Use IncludeRules when you want | ||
# to invoke only a small subset of the defualt rules. | ||
# IncludeRules = @('PSAvoidDefaultValueSwitchParameter', | ||
# 'PSMisleadingBacktick', | ||
# 'PSMissingModuleManifestField', | ||
# 'PSReservedCmdletChar', | ||
# 'PSReservedParams', | ||
# 'PSShouldProcess', | ||
# 'PSUseApprovedVerbs', | ||
# 'PSAvoidUsingCmdletAliases', | ||
# 'PSUseDeclaredVarsMoreThanAssigments') | ||
|
||
# Do not analyze the following rules. Use ExcludeRules when you have | ||
# commented out the IncludeRules settings above and want to include all | ||
# the default rules except for those you exclude below. | ||
# Note: if a rule is in both IncludeRules and ExcludeRules, the rule | ||
# will be excluded. | ||
ExcludeRules = @('PSAvoidUsingCmdletAliases', 'PSAvoidGlobalVars') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Pester Tests", | ||
"script": "Invoke-Pester", | ||
"args": [], | ||
"cwd": "${workspaceRoot}" | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Launch Current File", | ||
"script": "${file}", | ||
"args": [], | ||
"cwd": "${file}" | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Launch Current File in Temporary Console", | ||
"script": "${file}", | ||
"args": [], | ||
"cwd": "${file}", | ||
"createTemporaryIntegratedConsole": true | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Launch Current File w/Args Prompt", | ||
"script": "${file}", | ||
"args": [ | ||
"${command:SpecifyScriptArgs}" | ||
], | ||
"cwd": "${file}" | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "attach", | ||
"name": "PowerShell Attach to Host Process", | ||
"processId": "${command:PickPSHostProcess}", | ||
"runspaceId": 1 | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Interactive Session", | ||
"cwd": "${workspaceRoot}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"powershell.codeFormatting.openBraceOnSameLine": false, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": true, | ||
"powershell.codeFormatting.preset": "Allman", | ||
"editor.formatOnSave": true, | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4, | ||
"[json]": { | ||
"editor.tabSize": 2 | ||
}, | ||
"powershell.scriptAnalysis.settingsPath": ".vscode/PSScriptAnalyzerSettings.psd1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Marco Micozzi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |