diff --git a/CHANGELOG.MD b/CHANGELOG.MD index ae21bc2f6..72e099814 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,9 +1,16 @@ -## [unreleased] +## [1.13.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.13.0) - 2017-05-18 -## Fixed +### Added +- [`PSUseSupportsShouldProcess`](https://github.com/PowerShell/PSScriptAnalyzer/blob/f92dabdef61b87d5f9f9f2140739c9f3f210b2d8/RuleDocumentation/UseSupportsShouldProcess.md) rule to discourage manual `whatif` and `confirm` parameter declarations. +- Suggested corrections to [`PSProvideCommentHelp`](https://github.com/PowerShell/PSScriptAnalyzer/blob/f92dabdef61b87d5f9f9f2140739c9f3f210b2d8/RuleDocumentation/ProvideCommentHelp.md) rule. The rule can now be configured to: + - trigger on non-exported functions. But by default, the rule triggers only on exported functions that do have comment help. + - place the suggested corrections either before a function definition, or at the beginning or end of a function's body. + - choose between block comment or line comment style of suggested comment help correction. + +### Fixed - `PSAlignAssignmentStatement` to align assignment statements in DSC configurations that have *Undefined DSC Resource* parse errors. -## [1.12.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.11.1) - 2017-05-09 +## [1.12.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.12.0) - 2017-05-09 ### Added - [PSAlignAssignmentRuleStatement](https://github.com/PowerShell/PSScriptAnalyzer/blob/cca9a2d7ee35be7322f8c5a09b6c500a0a8bd101/RuleDocumentation/AlignAssignmentStatement.md) rule to align assignment statements in property value pairs (#753). diff --git a/Engine/PSScriptAnalyzer.psd1 b/Engine/PSScriptAnalyzer.psd1 index d09551a93..fceb75f35 100644 --- a/Engine/PSScriptAnalyzer.psd1 +++ b/Engine/PSScriptAnalyzer.psd1 @@ -11,7 +11,7 @@ Author = 'Microsoft Corporation' RootModule = 'PSScriptAnalyzer.psm1' # Version number of this module. -ModuleVersion = '1.12.0' +ModuleVersion = '1.13.0' # ID used to uniquely identify this module GUID = 'd6245802-193d-4068-a631-8863a4342a18' @@ -88,12 +88,14 @@ PrivateData = @{ IconUri = '' ReleaseNotes = @' ### Added -- PSAlignAssignmentRuleStatement rule to align assignment statements in property value pairs (#753). +- `PSUseSupportsShouldProcess` rule to discourage manual `whatif` and `confirm` parameter declarations. +- Suggested corrections to `PSProvideCommentHelp` rule. The rule can now be configured to: + - trigger on non-exported functions. But by default, the rule triggers only on exported functions that do have comment help. + - place the suggested corrections either before a function definition, or at the beginning or end of a function's body. + - choose between block comment or line comment style of suggested comment help correction. ### Fixed -- `PSAvoidGlobalVars` rule to ignore `$global:lastexitcode` (#752). -- `PSUseConsistentIndentation` to account for backtick on preceding line (#749). -- `PSPlaceCloseBrace` to ignore one-line blocks when `NewLineAfter` switch is on (#748). +- `PSAlignAssignmentStatement` to align assignment statements in DSC configurations that have *Undefined DSC Resource* parse errors. '@ } } @@ -112,3 +114,4 @@ PrivateData = @{ + diff --git a/Engine/project.json b/Engine/project.json index 73d91158d..a53e3160e 100644 --- a/Engine/project.json +++ b/Engine/project.json @@ -1,6 +1,6 @@ { "name": "Microsoft.Windows.PowerShell.ScriptAnalyzer", - "version": "1.12.0", + "version": "1.13.0", "dependencies": { "System.Management.Automation": "1.0.0-alpha12" }, diff --git a/Rules/project.json b/Rules/project.json index c60459e70..6d036aa1d 100644 --- a/Rules/project.json +++ b/Rules/project.json @@ -1,9 +1,9 @@ { "name": "Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules", - "version": "1.12.0", + "version": "1.13.0", "dependencies": { "System.Management.Automation": "1.0.0-alpha12", - "Engine": "1.12.0", + "Engine": "1.13.0", "Newtonsoft.Json": "9.0.1" },