72,240

Downloads

430

Downloads of 1.15.0

2017-06-21

Last published

PSScriptAnalyzer

1.15.0

PSScriptAnalyzer provides script analysis and checks for potential code defects in the scripts by applying a group of built-in or customized rules on the scripts being analyzed.

Inspect

PS> Save-Module -Name PSScriptAnalyzer -Path <path>

Install

PS> Install-Module -Name PSScriptAnalyzer

Deploy

See Documentation for more details.

Release Notes

### Added
- (#780) `Range` parameter to the `Invoke-Formatter` cmdlet. The user can specify the range in which formatting should be applied. The primary usage for this parameter is to be used with editors that request selection formatting.
- (#782, #788) Allman style, Stroustrup style and one true brace style (OTBS) code formatting presets.
- (#790) `Kind` switch to `PSUseConsistentIndentation` rule to provide tabbed indentation.

### Fixed
- (#781, #784) `NewLineAfer` switch behavior in `PSPlaceCloseBrace` rule. When the switch is set to `$false`, the emitted suggested corrections enforce branching control statements to be on the same line as their preceding closing braces. On the other hand when the switch is set to `$true`, the emitted suggested corrections enforce branching controls statements to be on the next line.

Many thanks to @rkeithhill for contributing the _Stroustrup_ style code formatting preset.

Owners

Authors

Microsoft Corporation

Copyright

(c) Microsoft Corporation 2016. All rights reserved.

FileList

Show
  • PSScriptAnalyzer.nuspec
  • Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll
  • Microsoft.Windows.PowerShell.ScriptAnalyzer.dll
  • Newtonsoft.Json.dll
  • PSScriptAnalyzer.cat
  • PSScriptAnalyzer.psd1
  • PSScriptAnalyzer.psm1
  • ScriptAnalyzer.format.ps1xml
  • ScriptAnalyzer.types.ps1xml
  • coreclr\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll
  • coreclr\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll
  • en-US\about_PSScriptAnalyzer.help.txt
  • en-US\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml
  • PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll
  • PSv3\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll
  • PSv3\Newtonsoft.Json.dll
  • Settings\CmdletDesign.psd1
  • Settings\CodeFormatting.psd1
  • Settings\CodeFormattingAllman.psd1
  • Settings\CodeFormattingOTBS.psd1
  • Settings\CodeFormattingStroustrup.psd1
  • Settings\core-6.0.0-alpha-linux.json
  • Settings\core-6.0.0-alpha-osx.json
  • Settings\core-6.0.0-alpha-windows.json
  • Settings\desktop-5.1.14393.206-windows.json
  • Settings\DSC.psd1
  • Settings\PSGallery.psd1
  • Settings\ScriptFunctions.psd1
  • Settings\ScriptingStyle.psd1
  • Settings\ScriptSecurity.psd1
  • Tags

    Cmdlets

    Functions

    This module has no functions.

    DSC Resources

    This module has no DSC resources.

    Workflows

    This module has no workflows.

    Role Capabilities

    This module has no role capabilities.

    Dependencies

    This module has no dependencies.

    Minimum PowerShell version

    3.0

    Version History

    Version Downloads Last updated
    PSScriptAnalyzer 1.14.1 2340 Monday, June 12 2017
    PSScriptAnalyzer 1.14.0 594 Friday, June 09 2017
    PSScriptAnalyzer 1.13.0 5301 Thursday, May 18 2017
    PSScriptAnalyzer 1.12.0 1955 Tuesday, May 09 2017
    PSScriptAnalyzer 1.11.1 6269 Tuesday, April 04 2017
    PSScriptAnalyzer 1.11.0 6193 Wednesday, March 01 2017
    PSScriptAnalyzer 1.10.0 5894 Thursday, January 19 2017
    PSScriptAnalyzer 1.9.0 4449 Tuesday, December 06 2016
    PSScriptAnalyzer 1.8.1 6151 Friday, October 14 2016
    PSScriptAnalyzer 1.8.0 958 Saturday, October 08 2016
    PSScriptAnalyzer 1.7.0 4881 Thursday, August 18 2016
    PSScriptAnalyzer 1.6.0 15833 Tuesday, June 07 2016
    PSScriptAnalyzer 1.5.0 4559 Wednesday, March 30 2016
    PSScriptAnalyzer 1.4.0 2614 Wednesday, February 17 2016
    PSScriptAnalyzer 1.3.0 906 Tuesday, January 19 2016
    PSScriptAnalyzer 1.2.0 1363 Wednesday, December 16 2015
    PSScriptAnalyzer 1.1.1 549 Wednesday, November 04 2015
    PSScriptAnalyzer 1.1.0 498 Tuesday, September 01 2015
    PSScriptAnalyzer 1.0.2 279 Wednesday, June 24 2015
    PowerShell ScriptAnalyzer 1.0.1 143 Friday, May 08 2015
    PowerShell ScriptAnalyzer 1.0 81 Friday, April 24 2015