{"id":17755,"date":"2015-12-17T07:37:26","date_gmt":"2015-12-17T15:37:26","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/powershell\/?p=17755"},"modified":"2022-05-23T09:45:15","modified_gmt":"2022-05-23T17:45:15","slug":"scriptanalyzer-v1-2-0-released","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/scriptanalyzer-v1-2-0-released\/","title":{"rendered":"ScriptAnalyzer v1.2.0 Released"},"content":{"rendered":"<pre><span style=\"font-family: arial, helvetica, sans-serif;\">We are pleased to announce the release of v1.2.0 of ScriptAnalyzer - a significant release with many <br \/>updates <\/span><span style=\"font-family: arial, helvetica, sans-serif;\">to help and documentation content, fixes to the built-in default rule set based on community feedback, <br \/>support for consuming PowerShell content as streams, improvements in Custom Rule support, Engine error <br \/>handling and numerous community contributions.<br \/><\/span><br \/><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>You can grab this version from PowerShell Gallery @:<\/strong><\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"http:\/\/www.powershellgallery.com\/packages\/PSScriptAnalyzer\/1.2.0\">http:\/\/www.powershellgallery.com\/packages\/PSScriptAnalyzer\/1.2.0<\/a><\/span><br \/><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><strong><br \/>Detailed change log is here:<\/strong><\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"https:\/\/github.com\/PowerShell\/PSScriptAnalyzer\/blob\/master\/CHANGELOG.MD\">https:\/\/github.com\/PowerShell\/PSScriptAnalyzer\/blob\/master\/CHANGELOG.MD<\/a><\/span><br \/><br \/><\/pre>\n<pre><span style=\"text-decoration: underline; font-family: arial, helvetica, sans-serif;\"><strong><br \/>Features:<\/strong><\/span><\/pre>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Support for consuming PowerShell content as streams (-ScriptDefinition)<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">ScriptAnalyzer accepts configuration (settings) in the form of a hashtable (-Settings), added sample Settings<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Ability to run default ruleset along with custom ones in the same invocation (-IncludeDefaultRules)<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Recurse Custom Rule Paths (-RecurseCustomRulePath)<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Consistent Engine error handling when working with Settings, Default and Custom Rules<\/span><\/li>\n<\/ul>\n<pre>&nbsp;<\/pre>\n<pre><br \/><span style=\"text-decoration: underline;\"><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Rules:<\/strong><\/span><\/span><\/pre>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Rule to detect the presence of default value for Mandatory parameters (AvoidDefaultValueForMandatoryParameter)<\/span><\/li>\n<\/ul>\n<pre>&nbsp;<\/pre>\n<pre>&nbsp;<\/pre>\n<pre><span style=\"text-decoration: underline; font-family: arial, helvetica, sans-serif;\"><strong>Fixes:<\/strong><\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Engine:<\/strong><\/span><\/pre>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Engine update to prevent script based injection attacks<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">CustomizedRulePath is now called CustomRulePath &ndash; Fixes to handle folder paths<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Fixes for RecurseCustomRulePath functionality<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Fix to binplace cmdlet help file as part of build process<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">ScriptAnalyzer Profile is now called Settings<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Fix to emit filename in the diagnosticrecord when using Script based custom rules<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Fix to prevent Engine from calling Update-Help for script based custom rules<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Added additional pester tests to take care of test holes in Custom Rule feature<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Post-build error handling improvements, fixed typos in the project<\/span><\/li>\n<\/ul>\n<pre>&nbsp;<strong style=\"font-family: arial, helvetica, sans-serif;\">Rules:<\/strong><\/pre>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Fixed bug in Positional parameter rule to trigger only when used with &gt;= 3 positional parameters<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Updated keywords that trigger PSAvoidUsingPlainTextForPassword rule<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Updated ProvideDefaultParameterValue rule to AvoidDefaultValueForMandatoryParameter rule<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Deprecate Internal Url rule based on community feedback, identified additional rules to handle hardcoded paths etc<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Added localhost exceptions for HardCodedComputerName Rule<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Update to Credential based rules to validate the presence of CredentialAttribute and PSCredential type<\/span><\/li>\n<\/ul>\n<pre>&nbsp;<\/pre>\n<pre>&nbsp;<\/pre>\n<pre><span style=\"text-decoration: underline; font-family: arial, helvetica, sans-serif;\"><strong>Documentation:<\/strong><\/span><\/pre>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\">Rule &amp; Cmdlet documentation updates &ndash; Cmdlet help file addition<\/span><\/li>\n<\/ul>\n<pre><br \/><span style=\"font-size: small; font-family: arial, helvetica, sans-serif;\">Please use our <a href=\"https:\/\/github.com\/PowerShell\/PSScriptAnalyzer\">GitHub page<\/a> to submit feedback and browse ongoing discussions.<\/span><br \/><br \/><br \/><br \/><span style=\"font-family: arial, helvetica, sans-serif;\">Raghu Shantha<\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\">Senior Software Engineer<\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\">PowerShell ScriptAnalyzer Team<\/span><br \/><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"https:\/\/github.com\/PowerShell\/PSScriptAnalyzer\">https:\/\/github.com\/PowerShell\/PSScriptAnalyzer<\/a>&nbsp;<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We are pleased to announce the release of v1.2.0 of ScriptAnalyzer &#8211; a significant release with many updates to help and documentation content, fixes to the built-in default rule set based on community feedback, support for consuming PowerShell content as streams, improvements in Custom Rule support, Engine error handling and numerous community contributions.You can grab [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[3182],"class_list":["post-17755","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-psscriptanalyzer"],"acf":[],"blog_post_summary":"<p>We are pleased to announce the release of v1.2.0 of ScriptAnalyzer &#8211; a significant release with many updates to help and documentation content, fixes to the built-in default rule set based on community feedback, support for consuming PowerShell content as streams, improvements in Custom Rule support, Engine error handling and numerous community contributions.You can grab [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/17755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=17755"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/17755\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=17755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=17755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=17755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}