FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert accidentally added test from PR #1323 by bergmeister · Pull Request #1330 · PowerShell/PSScriptAnalyzer · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ps1  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
30 changes: 0 additions & 30 deletions Tests/Rules/UseConsistentIndentation.tests.ps1
This file contains hidden or 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
Expand Up @@ -158,36 +158,6 @@ foo |
Invoke-FormatterAssertion $scriptDefinition $expected 3 $settings
}

It "When a comment is in the middle of a multi-line statement with preceding pipeline and succeeding line continuation 2" {
$scriptDefinition = @'
foo `
-bar |
baz
'@
$expected = @'
foo `
-bar |
baz
'@
Invoke-FormatterAssertion $scriptDefinition $expected 2 $settings
}

It "When a comment is in the middle of a multi-line statement with preceding pipeline and succeeding line continuation 3" {
$scriptDefinition = @'
foo `
# comment
-bar |
baz
'@
$expected = @'
foo `
# comment
-bar |
baz
'@
Invoke-FormatterAssertion $scriptDefinition $expected 3 $settings
}

It "Should find a violation if a pipleline element is not indented correctly" {
$def = @'
get-process |
Expand Down

Back | FazBrowse Home | New Git URL