Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2b6e64b

Browse files
author
Kapil Borle
committedJun 7, 2016
Merge pull request #558 from PowerShell/development
Take development to master for version 1.6.0 release
2 parents 0c53ffd + f6b918d commit 2b6e64b

File tree

64 files changed

+2884
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2884
-885
lines changed
 

‎CHANGELOG.MD

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,44 @@
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 `SaveDscDependency` switch to allow `Invoke-ScriptAnalyzer` to download a DSC Resource module from PSGallery in the event of a `ModuleNotFoundDuringParse` parse error. This feature is available only for PSv5 and above.
9+
- Add `remove` verb to `UseShouldProcessForStateChangingFunctions` rule
10+
- Add a `ScriptPath` property to Diagnostic Record that returns the full path of the script
11+
- Add PSv4 (Windows Server 2012 R2) and PSv3 (Windows Server 2012) to build and test matrix on AppVeyor
12+
- Fix the parsing of `Settings` parameter value when a hashtable is given
13+
- Fix writing error record while running rule suppression
14+
- Fix rule suppression in DSC Configuration definitions
15+
- Fix build and tests on PSv4 and v3
16+
17+
### Rules
18+
- Add suggested corrections feature to the following rules.
19+
- `PSAvoidUsingCmdletAliases`
20+
- `PSAvoidUsingPlainTextForPassword`
21+
- `PSMisleadingBacktick`
22+
- `PSUseToExportFieldsInManifest`
23+
- `PSMissingModuleManifestField`
24+
- Fix extent of
25+
- `PSUseSingularNoun`
26+
- `PSUseApprovedVerb`
27+
- `PSAvoidUsernameAndPasswordParams`
28+
- Fix a bug in `PSMissingModuleManifestField` rule caused by .psd1 files that do not contain Hashtable
29+
- Fix documentation of `PSAvoidUsingPlainTextForPassword`
30+
131
## Release v1.5.0 (Mar. 30, 2016)
232

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

11-
#### Rules
41+
### Rules
1242
- Fixed `UseToExportFieldsInManifest` rule to improve perf and functionality
1343
- Fixed `AvoidNullOrEmptyHelpMessageAttribute` to use parsed values instead of ast extent
1444
- Fixed inconsistencies in severities of rules
@@ -81,7 +111,7 @@
81111
- Deprecate Internal Url rule based on community feedback, identified additional rules to handle hardcoded paths etc
82112
- Added localhost exceptions for HardCodedComputerName Rule
83113
- Update to Credential based rules to validate the presence of CredentialAttribute and PSCredential type
84-
114+
85115
###Documentation:
86116
- Rule & Cmdlet documentation updates – Cmdlet help file addition
87117

@@ -174,9 +204,9 @@
174204

175205
##Released v1.0.0 on Apr.24, 2015
176206
###Features:
177-
- Finalized three levels of Severity - Error/Warning/Information.
207+
- Finalized three levels of Severity - Error/Warning/Information.
178208
- Improved PSScriptAnalyzer engine behavior: emits non-terminating errors (Ex: for failed ast parse) and continues rule application when running on multiple scripts.
179-
- Added wild card supports for rules in Invoke-ScriptAnalyzer and Get-ScriptAnalyzer. Eg. Invoke-ScriptAnalyzer -IncludeRule PSAvoid* will apply all rules starting with PSAvoid* in built in rule assemblies.
209+
- Added wild card supports for rules in Invoke-ScriptAnalyzer and Get-ScriptAnalyzer. Eg. Invoke-ScriptAnalyzer -IncludeRule PSAvoid* will apply all rules starting with PSAvoid* in built in rule assemblies.
180210
- Added -Severity to Get-ScriptAnalyzerRules. Get-ScriptAnalyzer -Severity will filter rules based on the severity given.
181211
- Added Suppression functionality. Users are now able to specify suppression on certain parts of the scripts by specifying "SupressMessageAttribute" in the scripts. More details and documentations will be coming soon in blog posts. Also comes with this feature is the ability for users to display a list of suppressed messages.
182212

‎Engine/Commands/GetScriptAnalyzerRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public SwitchParameter RecurseCustomRulePath
5656
/// <summary>
5757
/// Name: The name of a specific rule to list.
5858
/// </summary>
59-
[Parameter(Mandatory = false)]
59+
[Parameter(Mandatory = false, Position = 1)]
6060
[ValidateNotNullOrEmpty]
6161
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
6262
public string[] Name

0 commit comments

Comments
 (0)
Please sign in to comment.