Skip to content

Commit

Permalink
Commit build changes [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuBuisson committed Jul 10, 2017
1 parent de64a0c commit 00c3b7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PSCodeHealth/PSCodeHealth.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = '.\PSCodeHealth.psm1'

# Version number of this module.
ModuleVersion = '0.1.153'
ModuleVersion = '0.1.154'

# ID used to uniquely identify this module
GUID = 'ca22dabd-bbb6-4805-9c90-a8aad6dbbfd3'
Expand Down
32 changes: 31 additions & 1 deletion docs/PublicFunctions/Invoke-PSCodeHealth.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Invoke-PSCodeHealth [[-Path] <String>] [[-TestsPath] <String>] [[-TestsResult] <
### HtmlReport
```
Invoke-PSCodeHealth [[-Path] <String>] [[-TestsPath] <String>] [[-TestsResult] <PSObject>] [-Recurse]
[-Exclude <String[]>] -HtmlReportPath <String> [-PassThru]
[-Exclude <String[]>] -HtmlReportPath <String> [-CustomSettingsPath <String>] [-PassThru]
```

## DESCRIPTION
Expand Down Expand Up @@ -54,6 +54,19 @@ Invoke-PSCodeHealth -Path 'C:\GitRepos\MyModule' -TestsPath 'C:\GitRepos\MyModul
Gets quality and maintainability metrics for code from PowerShell files in the directory C:\GitRepos\MyModule\.

This command will create an HTML report (Report.html) in the current directory and a PSCodeHealth.Overall.HealthReport object to the pipeline.

The styling of HTML elements will reflect their compliance, based on the default compliance rules.

### -------------------------- EXAMPLE 4 --------------------------
```
Invoke-PSCodeHealth -Path 'C:\GitRepos\MyModule' -TestsPath 'C:\GitRepos\MyModule\Tests' -HtmlReportPath .\Report.html -CustomSettingsPath .\MySettings.json
```

Gets quality and maintainability metrics for code from PowerShell files in the directory C:\GitRepos\MyModule\.

This command will create an HTML report (Report.html) in the current directory and a PSCodeHealth.Overall.HealthReport object to the pipeline.

The styling of HTML elements will reflect their compliance, based on the default compliance rules and any custom rules in the file .\MySettings.json.

## PARAMETERS

Expand Down Expand Up @@ -164,6 +177,23 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -CustomSettingsPath
To specify the path of a file containing user-defined compliance rules (metrics thresholds, etc...) in JSON format.

Any compliance rule specified in this file override the default, and rules not specified in this file will use the default from PSCodeHealthSettings.json.

```yaml
Type: String
Parameter Sets: HtmlReport
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PassThru
When the parameter HtmlReportPath is used, by default, Invoke-PSCodeHealth doesn't output a \[PSCodeHealth.Overall.HealthReport\] object to the pipeline.

Expand Down

0 comments on commit 00c3b7f

Please sign in to comment.