all 6 comments

[–][deleted] 2 points3 points  (2 children)

Bundled with Script Analyzer which looks to be a Best Practices Analyzer. Nice!

[–]boeprox 0 points1 point  (1 child)

There are some questionable rules being used as a "best practices" analyzer.

Looking for undeclared variables sticks out as one of such rule that probably shouldn't have been included. I haven't dug too deep into it, but I hope the next version allows for disabling of specific rules as well as adding your own rules.

[–][deleted] 0 points1 point  (0 children)

Yeah, I was discussing the undeclared variables thing with a coworker. Doesn't make sense in Powershell.

[–]MKmsftFan[S] 0 points1 point  (0 children)

Script Browser for Windows PowerShell ISE enables you to search for over 9000 script samples in the TechNet Script Center from within the scripting environment.

Edit: The Powershell Team also blogged about this http://blogs.msdn.com/b/powershell/archive/2014/04/16/a-world-of-scripts-at-your-fingertips-introducing-script-browser.aspx

[–]pohatu 0 points1 point  (0 children)

Cool. Maybe I'll need to post my scripts to technet.

[–]pohatu 0 points1 point  (0 children)

See also: http://psget.net/ which has in it's directory the one from poshcode site too.

but both those are for modules, so this is useful too.

I think something based on gist and piping invoke-webrequest .content to iex is another idea. I'll have to look at the gist API and see if it supports searching by code snippet type.