121,278

Downloads

2,649

Downloads of 1.4.0

2016-02-17

Last published

PSScriptAnalyzer

1.4.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> -RequiredVersion 1.4.0

Install

PS> Install-Module -Name PSScriptAnalyzer -RequiredVersion 1.4.0

Deploy

See Documentation for more details.

Release Notes

Features:
- IncludeRule and ExcludeRule now consume RuleInfo objects

Rules:
- Rule to validate HelpMessage parameter attribute value
- Rule to suggest module manifest *ToExport field values for optimizing module loading


Fixes:

Engine:
- Fixed bug in engine handling of severity for custom rules - this property was being ignored
- Exclude help files from being Ast parsed

Rules:
- Emit accurate ast extents for rules - helps VSCode-PowerShell to mark violations better
- Improved heuristics for Singular noun rule - reduce false positives
- Updated credential rules to be less noisy based on community feedback
- Support for [switch] type along with [boolean] for ShouldContinueWithoutForce rule
- Improved handling of deprecated module manifest fields when PSv2.0 is specified in the manifest

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
  • PSScriptAnalyzer.psd1
  • PSScriptAnalyzer.psm1
  • ScriptAnalyzer.format.ps1xml
  • ScriptAnalyzer.types.ps1xml
  • 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
  • Settings\CmdletDesign.psd1
  • Settings\DSC.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.16.0 4789 Wednesday, August 16 2017
    PSScriptAnalyzer 1.15.0 11978 Wednesday, June 21 2017
    PSScriptAnalyzer 1.14.1 2346 Monday, June 12 2017
    PSScriptAnalyzer 1.14.0 595 Friday, June 09 2017
    PSScriptAnalyzer 1.13.0 5339 Thursday, May 18 2017
    PSScriptAnalyzer 1.12.0 1956 Tuesday, May 09 2017
    PSScriptAnalyzer 1.11.1 6559 Tuesday, April 04 2017
    PSScriptAnalyzer 1.11.0 6306 Wednesday, March 01 2017
    PSScriptAnalyzer 1.10.0 5896 Thursday, January 19 2017
    PSScriptAnalyzer 1.9.0 4523 Tuesday, December 06 2016
    PSScriptAnalyzer 1.8.1 6269 Friday, October 14 2016
    PSScriptAnalyzer 1.8.0 958 Saturday, October 08 2016
    PSScriptAnalyzer 1.7.0 4889 Thursday, August 18 2016
    PSScriptAnalyzer 1.6.0 28207 Tuesday, June 07 2016
    PSScriptAnalyzer 1.5.0 4563 Wednesday, March 30 2016
    PSScriptAnalyzer 1.4.0 (this version) 2649 Wednesday, February 17 2016
    PSScriptAnalyzer 1.3.0 906 Tuesday, January 19 2016
    PSScriptAnalyzer 1.2.0 1394 Wednesday, December 16 2015
    PSScriptAnalyzer 1.1.1 552 Wednesday, November 04 2015
    PSScriptAnalyzer 1.1.0 508 Tuesday, September 01 2015
    PSScriptAnalyzer 1.0.2 279 Wednesday, June 24 2015
    PowerShell ScriptAnalyzer 1.0.1 144 Friday, May 08 2015
    PowerShell ScriptAnalyzer 1.0 81 Friday, April 24 2015