Skip to content

Commit fbc894e

Browse files
author
Kapil Borle
committed
Merge pull request #534 from PowerShell/v1.6.0
Update for v1.6.0 release
2 parents 2c832b9 + 9eab73f commit fbc894e

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

CHANGELOG.MD

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,40 @@
1+
## Release v1.6.0
2+
3+
### Engine
4+
- Add `SuggestedCorrections` property to `DiagnosticRecord`
5+
- This property emits text that can rectify the violation which triggered the rule.
6+
- The primary purpose of this feature is to enable quick-fix scenarios in editors (e.g. vscode)
7+
- Add "Name" as a positional parameter in Get-ScriptAnalyzerRule
8+
- Add a `SaveDSCResourceDependency` switch to allow `Invoke-ScriptAnalyzer` to download a DSC Resource module from PSGallery in the event of a `ModuleNotFoundDuringParse` parse error.
9+
- Add `remove` verb to `UseShouldProcessForStateChangingFunctions` rule
10+
- Add a `ScriptPath` property to Diagnostic Record that returns the full path of the script
11+
- Fix the parsing of `Settings` parameter value when a hashtable is given
12+
- Fix writing error record while running rule suppression
13+
- Fix rule suppression in DSC Configuration definitions
14+
15+
### Rules
16+
- Add suggested corrections feature to the following rules.
17+
- `PSAvoidUsingCmdletAliases`
18+
- `PSAvoidUsingPlainTextForPassword`
19+
- `PSMisleadingBacktick`
20+
- `PSUseToExportFieldsInManifest`
21+
- `PSMissingModuleManifestField`
22+
- Fix extent of
23+
- `UseSingularNoun`
24+
- `UseApprovedVerb`
25+
- `AvoidUsernameAndPasswordParams`
26+
127
## Release v1.5.0 (Mar. 30, 2016)
228

3-
#### Engine
29+
### Engine
430
- Fixed an engine bug that prevented versioned script rule modules from being loaded
531
- Fixed loading issues with custom rules that do not have comment-based help to describe the rule
632
- Fixed a hang issue that appeared when using ScriptAnalyzer engine recursively with a large data set
733
- Housekeeping: Fixed Appveyor config to use VS 2015 and WMF 5.0 RTM image
834
- Community Fix: Updated the Initialize API to process the `-Settings` (formerly `-Profile`) parameter
935
- Perf: Improved rule filtering based on severity before invoking the engine to create tasks (threads)
1036

11-
#### Rules
37+
### Rules
1238
- Fixed `UseToExportFieldsInManifest` rule to improve perf and functionality
1339
- Fixed `AvoidNullOrEmptyHelpMessageAttribute` to use parsed values instead of ast extent
1440
- Fixed inconsistencies in severities of rules

Engine/PSScriptAnalyzer.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Author = 'Microsoft Corporation'
1111
RootModule = 'PSScriptAnalyzer.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.5.0'
14+
ModuleVersion = '1.6.0'
1515

1616
# ID used to uniquely identify this module
17-
GUID = '324fc715-36bf-4aee-8e58-72e9b4a08ad9'
17+
GUID = 'd6245802-193d-4068-a631-8863a4342a18'
1818

1919
# Company or vendor of this module
2020
CompanyName = 'Microsoft Corporation'
@@ -82,7 +82,7 @@ AliasesToExport = '*'
8282
# Private data to pass to the module specified in RootModule/ModuleToProcess
8383
PrivateData = @{
8484
PSData = @{
85-
Tags = 'lint best practice'
85+
Tags = 'lint', 'bestpractice'
8686
LicenseUri = 'https://github.com/PowerShell/PSScriptAnalyzer/blob/master/LICENSE'
8787
ProjectUri = 'https://github.com/PowerShell/PSScriptAnalyzer'
8888
IconUri = ''

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Announcements
22
=============
33

4-
###### [ScriptAnalyzer v1.4.0 published to PowerShellGallery - New Rules available!](https://www.powershellgallery.com/packages/PSScriptAnalyzer/1.4.0)
4+
###### [ScriptAnalyzer v1.5.0 published to PowerShellGallery!](https://www.powershellgallery.com/packages/PSScriptAnalyzer/1.5.0)
55

6-
###### [ScriptAnalyzer now runs on platforms containing PSv3.0 and above - WMF 5.0 is no longer a prerequisite!](https://www.powershellgallery.com/packages/PSScriptAnalyzer/1.4.0)
6+
###### [ScriptAnalyzer now runs on platforms containing PSv3.0 and above - WMF 5.0 is no longer a prerequisite!](https://www.powershellgallery.com/packages/PSScriptAnalyzer/1.5.0)
77

88
###### [VSCode-PowerShell has built-in ScriptAnalyzer support](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell)
99

@@ -16,7 +16,8 @@
1616

1717
##### ScriptAnalyzer community meeting schedule:
1818

19-
- [Next Meeting - Mar 29 2016 - 11am to 12pm PDT](http://1drv.ms/1VvAaxO)
19+
- Next Meeting - May 24 2016 - 11am to 12pm PDT
20+
- [Meeting Agenda](https://github.com/PowerShell/PSScriptAnalyzer/wiki/Community-Meeting-Agenda)
2021
- [Notes and recordings from earlier meetings](https://github.com/PowerShell/PSScriptAnalyzer/wiki)
2122

2223

0 commit comments

Comments
 (0)