Skip to content

Commit

Permalink
Fix formatting to use automatic Struostrup style in VSCode (pester#1203)
Browse files Browse the repository at this point in the history
* Fix formatting to use automatic Struostrup style

* Add settings to do formatting automatically in VSCode
  • Loading branch information
nohwnd authored Jan 9, 2019
1 parent 4e726b5 commit b7904b0
Show file tree
Hide file tree
Showing 133 changed files with 4,449 additions and 6,810 deletions.
36 changes: 18 additions & 18 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Core
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Desktop
- APPVEYOR_BUILD_WORKER_IMAGE: WMF 4
PSEdition: Desktop
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Core
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Desktop
- APPVEYOR_BUILD_WORKER_IMAGE: WMF 4
PSEdition: Desktop

skip_branch_with_pr: true
build: off

test_script:
- ps: |
if ( $env:PSEdition -eq 'Desktop' ) {
Set-StrictMode -Version Latest
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }
- pwsh: |
if ( $env:PSEdition -eq 'Core' ) {
Set-StrictMode -Version Latest
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }
- ps: |
if ( $env:PSEdition -eq 'Desktop' ) {
Set-StrictMode -Version Latest
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }
- pwsh: |
if ( $env:PSEdition -eq 'Core' ) {
Set-StrictMode -Version Latest
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
build/
Test.xml
vendor/packages/
.vscode/
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

language: generic

matrix:
Expand Down
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"powershell.codeFormatting.preset": "Stroustrup",

"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,

"editor.tabSize": 4,
"editor.formatOnSave": true
}
Loading

0 comments on commit b7904b0

Please sign in to comment.