diff --git a/CHANGELOG.MD b/CHANGELOG.MD index d81a1b44c..282c75985 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,10 @@ -## [unreleased] +## [1.10.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.10.0) - 2017-01-19 +### Added +- Three rules to enable code formatting feature in vscode (#690) + - [PSPlaceOpenBrace](https://github.com/PowerShell/PSScriptAnalyzer/blob/03a6e2b4ee24894bf574a8a8ce911d03680da607/RuleDocumentation/PlaceOpenBrace.md) + - [PSPlaceCloseBrace](https://github.com/PowerShell/PSScriptAnalyzer/blob/03a6e2b4ee24894bf574a8a8ce911d03680da607/RuleDocumentation/PlaceCloseBrace.md) + - [PSUseConsistentIdentation](https://github.com/PowerShell/PSScriptAnalyzer/blob/03a6e2b4ee24894bf574a8a8ce911d03680da607/RuleDocumentation/UseConsistentIndentation.md) + ### Fixed - `PSProvideCommentHelp` violation extent (#679) - `PSAvoidUsingCmdletAliases` rule @@ -8,6 +14,8 @@ - `PSUsePSCredentialType` rule (#683) + trigger only if invoked from PS version 4 and below + violation extent +- `PSAvoidUsingComputerNameHardcoded` rule to ignore `localhost` (#687) +- Performance issues caused by invoking `get-command` method (#692) ## [1.9.0](https://github.com/PowerShell/PSScriptAnalyzer/tree/1.9.0) - 2016-12-06 ### Added diff --git a/Engine/PSScriptAnalyzer.psd1 b/Engine/PSScriptAnalyzer.psd1 index afdd2d257..7b67286b2 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.9.0' +ModuleVersion = '1.10.0' # ID used to uniquely identify this module GUID = 'd6245802-193d-4068-a631-8863a4342a18' @@ -88,24 +88,22 @@ PrivateData = @{ IconUri = '' ReleaseNotes = @' ### Added -- SuggestedCorrections for ScriptDefinition input (#665) -- PSAvoidGlobalAliases and PSAvoidGlobalFunction rules (#658) +- Three rules to enable code formatting feature in vscode (#690) + - PSPlaceOpenBrace + - PSPlaceCloseBrace + - PSUseConsistentIdentation ### Fixed -- Regular expression in `target` parameter in SuppressMessageAttribute (#638) -- Filtering on severity level for DSC rules (#642) -- PSUseCompatibleCmdlets rule - + to check for commands in Microsoft.PowerShell.Core snapin - + to ignore aliases - + to ignore custom defind commands -- PSUseDeclaredVarsMoreThanAssignments rule to ignore the following special variables (#653) - + `$PSModuleAutoLoadingPreference` - + `$InformationPreference` -- PSShouldProcess rule to not enforce `SupportsShouldProcess` if a function calls built-in cmdlet or function that calls `ShouldProcess` (#652). -- PSShouldProcess rule violation extent (#668) -- PSAvoidUsingCmdletAliases rule violation extent (667) -- Column header of `Invoke-ScriptAnalyzer` to be consistent with corresponding property names (#664) -- `ScriptPath` property of external rule violation (#649) +- `PSProvideCommentHelp` violation extent (#679) +- `PSAvoidUsingCmdletAliases` rule + + false positives in DSC configurations (#678) + + violation extent (#685) +- `PSDSCDSCTestsPresent` rule to check for tests in subdirectories +- `PSUsePSCredentialType` rule (#683) + + trigger only if invoked from PS version 4 and below + + violation extent +- `PSAvoidUsingComputerNameHardcoded` rule to ignore `localhost` (#687) +- Performance issues caused by invoking `get-command` method (#692) '@ } } @@ -120,3 +118,4 @@ PrivateData = @{ + diff --git a/Engine/project.json b/Engine/project.json index f0c2e11dd..05df01248 100644 --- a/Engine/project.json +++ b/Engine/project.json @@ -1,6 +1,6 @@ { "name": "Microsoft.Windows.PowerShell.ScriptAnalyzer", - "version": "1.9.0", + "version": "1.10.0", "dependencies": { "System.Management.Automation": "1.0.0-alpha12" }, diff --git a/RuleDocumentation/PlaceCloseBrace.md b/RuleDocumentation/PlaceCloseBrace.md index fdedb0870..b053bd3bb 100644 --- a/RuleDocumentation/PlaceCloseBrace.md +++ b/RuleDocumentation/PlaceCloseBrace.md @@ -1,4 +1,4 @@ -# PlaceOpenBrace +# PlaceCloseBrace **Severity Level: Warning** ## Description diff --git a/RuleDocumentation/README.md b/RuleDocumentation/README.md index 3e33dc54c..afbdab52e 100644 --- a/RuleDocumentation/README.md +++ b/RuleDocumentation/README.md @@ -46,4 +46,7 @@ |[UseSingularNouns](./UseSingularNouns.md) | Warning| |[UseStandardDSCFunctionsInResource](./UseStandardDSCFunctionsInResource.md) | Error | |[UseToExportFieldsInManifest](./UseToExportFieldsInManifest.md) | Warning| -|[UseCompatibleCmdlets](./UseCompatibleCmdlets.md) | Warning| \ No newline at end of file +|[UseCompatibleCmdlets](./UseCompatibleCmdlets.md) | Warning| +|[PlaceOpenBrace](./PlaceOpenBrace.md) | Warning| +|[PlaceCloseBrace](./PlaceCloseBrace.md) | Warning| +|[UseConsistentIndentation](./UseConsistentIndentation.md) | Warning| \ No newline at end of file diff --git a/RuleDocumentation/UseConsistentIndentation.md b/RuleDocumentation/UseConsistentIndentation.md index 732c1ca07..d11c30e5e 100644 --- a/RuleDocumentation/UseConsistentIndentation.md +++ b/RuleDocumentation/UseConsistentIndentation.md @@ -1,4 +1,4 @@ -# PlaceOpenBrace +# UseConsistentIndentation **Severity Level: Warning** ## Description diff --git a/Rules/project.json b/Rules/project.json index 823c220a3..d9aed42a4 100644 --- a/Rules/project.json +++ b/Rules/project.json @@ -1,9 +1,9 @@ { "name": "Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules", - "version": "1.9.0", + "version": "1.10.0", "dependencies": { "System.Management.Automation": "1.0.0-alpha12", - "Engine": "1.9.0", + "Engine": "1.10.0", "Newtonsoft.Json": "9.0.1" },