ottomatt - OptimizationRules 0.4.0

This module contains script analyzer rules to search statements can be improved.

PM> Install-Package OptimizationRules -Version 0.4.0 -Source https://www.myget.org/F/ottomatt/api/v3/index.json

Copy to clipboard

> nuget.exe install OptimizationRules -Version 0.4.0 -Source https://www.myget.org/F/ottomatt/api/v3/index.json

Copy to clipboard

> dotnet add package OptimizationRules --version 0.4.0 --source https://www.myget.org/F/ottomatt/api/v3/index.json

Copy to clipboard
<PackageReference Include="OptimizationRules" Version="0.4.0" />
Copy to clipboard
source https://www.myget.org/F/ottomatt/api/v3/index.json

nuget OptimizationRules  ~> 0.4.0
Copy to clipboard

> choco install OptimizationRules --version 0.4.0 --source https://www.myget.org/F/ottomatt/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "ottomatt" -SourceLocation "https://www.myget.org/F/ottomatt/api/v2"
Install-Module -Name "OptimizationRules" -RequiredVersion "0.4.0" -Repository "ottomatt" 
Copy to clipboard

Build status

PSScriptAnalyzer rules suggesting optimizations for loop statements 'For'.

Documentation

Optimization rules

PowerShell 5 Installation, (development version)

From PowerShell run:

$PSGalleryPublishUri = 'https://www.myget.org/F/ottomatt/api/v2/package'
$PSGallerySourceUri = 'https://www.myget.org/F/ottomatt/api/v2'

Register-PSRepository -Name OttoMatt -SourceLocation $PSGallerySourceUri -PublishLocation $PSGalleryPublishUri #-InstallationPolicy Trusted

Install-Module OptimizationRules -Repository OttoMatt -Verbose -Force

2019-010-12 Version 0.4.0 Fix PSScriptAnalyzer API breaking change

Change Rename the rule 'ForStatementCanBeImproved' to 'Measure-OptimizeForStatement'

2016-10-11 Version 0.3.1 fix PSSA 'onRemove' issue

2016-10-11 Version 0.3.0 Original version

Owners

Laurent Dardenne

Authors

Laurent Dardenne

Project URL

https://github.com/LaurentDardenne/OptimizationRules

License

Unknown

Tags

PSScriptAnalyzer Rule Optimization For Loop PSModule PSIncludes_Function PSFunction_Measure-OptimizeForStatement PSCommand_Measure-OptimizeForStatement

Info

244 total downloads
124 downloads for version 0.4.0
Download (5.73 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.4.0 5.73 KB Sat, 12 Jan 2019 15:37:33 GMT 124
0.3.0 5.29 KB Sat, 13 May 2017 10:07:36 GMT 120