ps-analyzer
The PowerShell Script Analyzer (PSScriptAnalyzer) for Dagger.
Installation
dagger install github.com/sipsma/dagger/modules/ps-analyzer@4f746cce81e4c061b11cdc44fb54df46746763a5Entrypoint
Return Type
PsAnalyzer Example
Function PsAnalyzer.Constructor is not accessible from the ps-analyzer moduleFunction PsAnalyzer.Constructor is not accessible from the ps-analyzer moduleFunction PsAnalyzer.Constructor is not accessible from the ps-analyzer moduleFunction PsAnalyzer.Constructor is not accessible from the ps-analyzer moduleTypes
PsAnalyzer 🔗
check() 🔗
Return Type
PsAnalyzerReport !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | The file that want to check. |
| excludeRules | [String ! ] | - | Exclude rules out of the analyzer. |
Example
Function PsAnalyzer.check is not accessible from the ps-analyzer moduleFunction PsAnalyzer.check is not accessible from the ps-analyzer moduleFunction PsAnalyzer.check is not accessible from the ps-analyzer moduleFunction PsAnalyzer.check is not accessible from the ps-analyzer modulebase() 🔗
Return Type
Container ! Example
Function PsAnalyzer.base is not accessible from the ps-analyzer moduleFunction PsAnalyzer.base is not accessible from the ps-analyzer moduleFunction PsAnalyzer.base is not accessible from the ps-analyzer moduleFunction PsAnalyzer.base is not accessible from the ps-analyzer modulePsAnalyzerReport 🔗
issues() 🔗
Return Type
[PsAnalyzerIssue ! ] ! Example
Function PsAnalyzerReport.issues is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.issues is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.issues is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.issues is not accessible from the ps-analyzer modulejSon() 🔗
Return Type
String ! Example
Function PsAnalyzerReport.jSON is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.jSON is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.jSON is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.jSON is not accessible from the ps-analyzer modulereport() 🔗
Return Type
String ! Example
Function PsAnalyzerReport.report is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.report is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.report is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.report is not accessible from the ps-analyzer modulefixedDiff() 🔗
Return Type
String ! Example
Function PsAnalyzerReport.fixedDiff is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.fixedDiff is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.fixedDiff is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.fixedDiff is not accessible from the ps-analyzer moduleassert() 🔗
Return Type
Void ! Example
Function PsAnalyzerReport.assert is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.assert is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.assert is not accessible from the ps-analyzer moduleFunction PsAnalyzerReport.assert is not accessible from the ps-analyzer modulePsAnalyzerIssue 🔗
filename() 🔗
Return Type
String ! Example
Function PsAnalyzerIssue.filename is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.filename is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.filename is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.filename is not accessible from the ps-analyzer moduleline() 🔗
Return Type
Integer ! Example
Function PsAnalyzerIssue.line is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.line is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.line is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.line is not accessible from the ps-analyzer modulelineEnd() 🔗
Return Type
Integer ! Example
Function PsAnalyzerIssue.lineEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.lineEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.lineEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.lineEnd is not accessible from the ps-analyzer modulecolumn() 🔗
Return Type
Integer ! Example
Function PsAnalyzerIssue.column is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.column is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.column is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.column is not accessible from the ps-analyzer modulecolumnEnd() 🔗
Return Type
Integer ! Example
Function PsAnalyzerIssue.columnEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.columnEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.columnEnd is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.columnEnd is not accessible from the ps-analyzer modulelevel() 🔗
Return Type
String ! Example
Function PsAnalyzerIssue.level is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.level is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.level is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.level is not accessible from the ps-analyzer modulecode() 🔗
Return Type
Integer ! Example
Function PsAnalyzerIssue.code is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.code is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.code is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.code is not accessible from the ps-analyzer modulemessage() 🔗
Return Type
String ! Example
Function PsAnalyzerIssue.message is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.message is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.message is not accessible from the ps-analyzer moduleFunction PsAnalyzerIssue.message is not accessible from the ps-analyzer module