Skip to content

Commit c912c8f

Browse files
bergmeisterJamesWTruher
authored andcommitted
Add changelog for 1.18.2 (#1323)
* Add changelog for 1.18.2 * tweak (parenthesis) * add another detail * Update CHANGELOG.MD with recent merges * Update CHANGELOG.MD
1 parent 626e9c4 commit c912c8f

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

CHANGELOG.MD

+42
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# CHANGELOG
22

3+
## [1.18.2](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.18.2) - 2019-08-28
4+
5+
This release mainly brings fixes and enhancements that are especially useful when being consumed by PowerShellEditorServices.
6+
The benefit to the user will be some enhancements and fixes in the formatter, especially around multiline commands. In addition to that, error messages emitted when using invalid syntax in the setting file are now much more meaningful and actionable.
7+
8+
### Fixes
9+
10+
- Compatibility Analysis
11+
- Fix profile collection on non-Windows, add PS 7 profiles (#1260) (by @rjmholt)
12+
13+
- Formatter
14+
- Fix PSCloseBrace rule to not wrongly flag closing brace of one-line hashtable, which lead to incorrect formatting (#1309) (by @bergmeister)
15+
- PipelineIndentationStyle (when not being set to NoIndentation)
16+
- PipelineIndentationStyle: Fix edge case where pipeline was incorrectly detected to span multiple lines due to backticks in the command leading up to the pipeline (#1312) (by @bergmeister)
17+
- Fix edge case when PipelineIndentationStyle is not set to NoIndentation (pipeline operator spanning only one line but PipelineAst spanning multiple lines) (#1261) (by @bergmeister)
18+
- Allow formatter to optionally correct aliases (#1277) (by @bergmeister)
19+
20+
- Engine
21+
- Work around runspacepool deadlock (#1316) (by @rjmholt)
22+
23+
### Enhancements
24+
25+
- Formatter
26+
- Fix Indentation of multiline command with backticks after comment line (#1318) (by @bergmeister)
27+
- Code Analysis:
28+
- Enhance UseDeclaredVarsMoreThanAssignments to detect also take into account the usage of Get-Variable with an array of variables and usage of named - parameter -Name (#1310) (by @bergmeister)
29+
- Settings files
30+
- Actionable errors from incorrect settings files (#1263) (thanks @travis-c-lagrone!)
31+
- Update engine resource string 'WrongKeyHashTable' to include all valid settings hashtable keys (#1273) (thanks @travis-c-lagrone!)
32+
- Add icon and add reference in readme and manifest (#1291) (by @bergmeister, thanks @adilio for creating the logo!)
33+
34+
### Documentation
35+
36+
- Update readme with changes to default branch being master now (#1265) (by @bergmeister)
37+
- UseApprovedVerbs.md: Improving Documentation (#1294) (Thanks @Banner-Keith!)
38+
- Update documentation for parameter "Settings" of command "Invoke-ScriptAnalyzer" to include the key "RecurseCustomRulesPath" - (#1272) (thanks @travis-c-lagrone!)
39+
40+
### Build
41+
42+
- Don't sign the compatability collector catalog so that PSScriptAnalyzer can ship with a catalog file again (#1328) (by @JamesWTruher)
43+
- Fix Ubuntu Appveyor build (#1320) (by @bergmeister, thanks @JamesWTruher for the initial investigation)
44+
345
## [1.18.1](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.18.1) - 2019-06-12
446

547
### Fixes

Tests/Rules/UseConsistentIndentation.tests.ps1

+30
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,36 @@ foo |
158158
Invoke-FormatterAssertion $scriptDefinition $expected 3 $settings
159159
}
160160

161+
It "When a comment is in the middle of a multi-line statement with preceding pipeline and succeeding line continuation 2" {
162+
$scriptDefinition = @'
163+
foo `
164+
-bar |
165+
baz
166+
'@
167+
$expected = @'
168+
foo `
169+
-bar |
170+
baz
171+
'@
172+
Invoke-FormatterAssertion $scriptDefinition $expected 2 $settings
173+
}
174+
175+
It "When a comment is in the middle of a multi-line statement with preceding pipeline and succeeding line continuation 3" {
176+
$scriptDefinition = @'
177+
foo `
178+
# comment
179+
-bar |
180+
baz
181+
'@
182+
$expected = @'
183+
foo `
184+
# comment
185+
-bar |
186+
baz
187+
'@
188+
Invoke-FormatterAssertion $scriptDefinition $expected 3 $settings
189+
}
190+
161191
It "Should find a violation if a pipleline element is not indented correctly" {
162192
$def = @'
163193
get-process |

0 commit comments

Comments
 (0)