ps-analyzer
The PowerShell Script Analyzer (PSScriptAnalyzer) for Dagger.
Installation
dagger install github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28eeEntrypoint
Return Type
PsAnalyzer Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
func (m *MyModule) Example() *dagger.PsAnalyzer {
return dag.
PsAnalyzer()
}@function
def example() -> dagger.PsAnalyzer:
return (
dag.ps_analyzer()
)@func()
example(): PsAnalyzer {
return dag
.psAnalyzer()
}Types
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
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:pathfunc (m *MyModule) Example(file *dagger.File) *dagger.PsAnalyzerReport {
return dag.
PsAnalyzer().
Check(file)
}@function
def example(file: dagger.File) -> dagger.PsAnalyzerReport:
return (
dag.ps_analyzer()
.check(file)
)@func()
example(file: File): PsAnalyzerReport {
return dag
.psAnalyzer()
.check(file)
}base() 🔗
Return Type
Container ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
basefunc (m *MyModule) Example() *dagger.Container {
return dag.
PsAnalyzer().
Base()
}@function
def example() -> dagger.Container:
return (
dag.ps_analyzer()
.base()
)@func()
example(): Container {
return dag
.psAnalyzer()
.base()
}PsAnalyzerReport 🔗
issues() 🔗
Return Type
[PsAnalyzerIssue ! ] ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:path \
issuesfunc (m *MyModule) Example(file *dagger.File) []*dagger.PsAnalyzerIssue {
return dag.
PsAnalyzer().
Check(file).
Issues()
}@function
def example(file: dagger.File) -> List[dagger.PsAnalyzerIssue]:
return (
dag.ps_analyzer()
.check(file)
.issues()
)@func()
example(file: File): PsAnalyzerIssue[] {
return dag
.psAnalyzer()
.check(file)
.issues()
}jSon() 🔗
Return Type
String ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:path \
j-s-o-nfunc (m *MyModule) Example(ctx context.Context, file *dagger.File) string {
return dag.
PsAnalyzer().
Check(file).
JSON(ctx)
}@function
async def example(file: dagger.File) -> str:
return await (
dag.ps_analyzer()
.check(file)
.j_s_o_n()
)@func()
async example(file: File): Promise<string> {
return dag
.psAnalyzer()
.check(file)
.jSON()
}report() 🔗
Return Type
String ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:path \
reportfunc (m *MyModule) Example(ctx context.Context, file *dagger.File) string {
return dag.
PsAnalyzer().
Check(file).
Report(ctx)
}@function
async def example(file: dagger.File) -> str:
return await (
dag.ps_analyzer()
.check(file)
.report()
)@func()
async example(file: File): Promise<string> {
return dag
.psAnalyzer()
.check(file)
.report()
}fixedDiff() 🔗
Return Type
String ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:path \
fixed-difffunc (m *MyModule) Example(ctx context.Context, file *dagger.File) string {
return dag.
PsAnalyzer().
Check(file).
FixedDiff(ctx)
}@function
async def example(file: dagger.File) -> str:
return await (
dag.ps_analyzer()
.check(file)
.fixed_diff()
)@func()
async example(file: File): Promise<string> {
return dag
.psAnalyzer()
.check(file)
.fixedDiff()
}assert() 🔗
Return Type
Void ! Example
dagger -m github.com/reconsumeralization/dagger/modules/ps-analyzer@a86457436a24edf8d2f9de0e30bc3b5a91af28ee call \
check --file file:path \
assertfunc (m *MyModule) Example(ctx context.Context, file *dagger.File) {
return dag.
PsAnalyzer().
Check(file).
Assert(ctx)
}@function
async def example(file: dagger.File) -> None:
return await (
dag.ps_analyzer()
.check(file)
.assert_()
)@func()
async example(file: File): Promise<void> {
return dag
.psAnalyzer()
.check(file)
.assert()
}PsAnalyzerIssue 🔗
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