Skip to content

Commit 6a2a9d6

Browse files
author
Kapil Borle
authored
Merge pull request #773 from PowerShell/kapilmb/v1.14.0
Prepare release v1.14.0
2 parents 4f47ef9 + 07db688 commit 6a2a9d6

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

CHANGELOG.MD

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
## [1.13.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.13.0) - 2017-05-18
1+
## [1.14.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.14.0) - 2017-06-09
2+
3+
### Added
4+
- (#772) [`Invoke-Formatter`](https://github.com/PowerShell/PSScriptAnalyzer/blob/4f47ef95edd045029628ba9a4079b1dda19f080f/docs/markdown/Invoke-Formatter.md) cmdlet to format PowerShell scripts. The cmdlet takes a script string and a settings file and outputs formatted script string based on the provided settings. If no settings are provided, the formatter uses the default `CodeFormatting` settings, which can be found at `Settings/CodeFormatting.psd1`.
5+
6+
### Fixed
7+
- (#770) `PSUseIdenticalMandatoryParametersForDSC` rule violation extent. The violation extent covers only the relevant function name, which prior the fix would mark the entire script. This prevented rule suppression from working when the suppression is declared inside `Get/Set/Test` functions.
8+
- (#770) `PSUseIdenticalMandatoryParametersForDSC` behavior to look for mandatory parameters in `Get/Set/Test` functions in a script based resource only if they are declared with attributes, `Key` or `Required`, in the corresponding `mof` file.
9+
10+
## [1.13.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.13.0) - 2017-05-18
211

312
### Added
413
- [`PSUseSupportsShouldProcess`](https://github.com/PowerShell/PSScriptAnalyzer/blob/f92dabdef61b87d5f9f9f2140739c9f3f210b2d8/RuleDocumentation/UseSupportsShouldProcess.md) rule to discourage manual `whatif` and `confirm` parameter declarations.

Engine/PSScriptAnalyzer.psd1

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Author = 'Microsoft Corporation'
1111
RootModule = 'PSScriptAnalyzer.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.13.0'
14+
ModuleVersion = '1.14.0'
1515

1616
# ID used to uniquely identify this module
1717
GUID = 'd6245802-193d-4068-a631-8863a4342a18'
@@ -88,14 +88,11 @@ PrivateData = @{
8888
IconUri = ''
8989
ReleaseNotes = @'
9090
### Added
91-
- `PSUseSupportsShouldProcess` rule to discourage manual `whatif` and `confirm` parameter declarations.
92-
- Suggested corrections to `PSProvideCommentHelp` rule. The rule can now be configured to:
93-
- trigger on non-exported functions. But by default, the rule triggers only on exported functions that do have comment help.
94-
- place the suggested corrections either before a function definition, or at the beginning or end of a function's body.
95-
- choose between block comment or line comment style of suggested comment help correction.
91+
- (#772) `Invoke-Formatter` cmdlet to format PowerShell scripts. The cmdlet takes a script string and a settings file and outputs formatted script string based on the provided settings. If no settings are provided, the formatter uses the default `CodeFormatting` settings, which can be found at `Settings/CodeFormatting.psd1`.
9692
9793
### Fixed
98-
- `PSAlignAssignmentStatement` to align assignment statements in DSC configurations that have *Undefined DSC Resource* parse errors.
94+
- (#770) `PSUseIdenticalMandatoryParametersForDSC` rule violation extent. The violation extent covers only the relevant function name, which prior the fix would mark the entire script. This prevented rule suppression from working when the suppression is declared inside `Get/Set/Test` functions.
95+
- (#770) `PSUseIdenticalMandatoryParametersForDSC` behavior to look for mandatory parameters in `Get/Set/Test` functions in a script based resource only if they are declared with attributes, `Key` or `Required`, in the corresponding `mof` file.
9996
'@
10097
}
10198
}
@@ -115,3 +112,5 @@ PrivateData = @{
115112

116113

117114

115+
116+

Engine/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Microsoft.Windows.PowerShell.ScriptAnalyzer",
3-
"version": "1.13.0",
3+
"version": "1.14.0",
44
"dependencies": {
55
"System.Management.Automation": "6.0.0-alpha13"
66
},

Rules/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules",
3-
"version": "1.13.0",
3+
"version": "1.14.0",
44
"dependencies": {
55
"System.Management.Automation": "6.0.0-alpha13",
6-
"Engine": "1.13.0",
6+
"Engine": "1.14.0",
77
"Newtonsoft.Json": "9.0.1"
88
},
99

0 commit comments

Comments
 (0)