staticcheck
No long description provided.
Installation
dagger install github.com/jpadams/daggerverse/staticcheck@e5470174bfd86b9858dd5fd3db381835b579a5b4
Entrypoint
Return Type
Staticcheck
Example
func (m *myModule) example() *Staticcheck {
return dag.
Staticcheck()
}
@function
def example() -> dag.Staticcheck:
return (
dag.staticcheck()
)
@func()
example(): Staticcheck {
return dag
.staticcheck()
}
Types
Staticcheck
baseImage()
Return Type
Container !
Example
Function Staticcheck.BaseImage is not accessible from the staticcheck module
func (m *myModule) example() {
return dag.
Staticcheck().
BaseImage()
}
@function
def example() -> :
return (
dag.staticcheck()
.base_image()
)
@func()
example(): {
return dag
.staticcheck()
.baseImage()
}
withBaseImage()
optional for user to call, otherwise default is used, as set in Check
Return Type
Staticcheck !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
Example
Function Staticcheck.withBaseImage is not accessible from the staticcheck module
func (m *myModule) example(ctr ) {
return dag.
Staticcheck().
WithBaseImage(ctr)
}
@function
def example(ctr: ) -> :
return (
dag.staticcheck()
.with_base_image(ctr)
)
@func()
example(ctr: ): {
return dag
.staticcheck()
.withBaseImage(ctr)
}
check()
Run staticcheck on the given directory, error if it fails (error will show up in progress output for user)
Return Type
VoidKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
srcDir | Directory ! | - | No description provided |
Example
Function Staticcheck.check is not accessible from the staticcheck module
func (m *myModule) example(srcDir ) {
return dag.
Staticcheck().
Check(srcDir)
}
@function
def example(src_dir: ) -> :
return (
dag.staticcheck()
.check(src_dir)
)
@func()
example(srcDir: ): {
return dag
.staticcheck()
.check(srcDir)
}
test()
Return Type
VoidKind !
Example
Function Staticcheck.test is not accessible from the staticcheck module
func (m *myModule) example() {
return dag.
Staticcheck().
Test()
}
@function
def example() -> :
return (
dag.staticcheck()
.test()
)
@func()
example(): {
return dag
.staticcheck()
.test()
}
test2()
Return Type
VoidKind !
Example
Function Staticcheck.test2 is not accessible from the staticcheck module
func (m *myModule) example() {
return dag.
Staticcheck().
Test2()
}
@function
def example() -> :
return (
dag.staticcheck()
.test2()
)
@func()
example(): {
return dag
.staticcheck()
.test2()
}
test3()
Return Type
VoidKind !
Example
Function Staticcheck.test3 is not accessible from the staticcheck module
func (m *myModule) example() {
return dag.
Staticcheck().
Test3()
}
@function
def example() -> :
return (
dag.staticcheck()
.test3()
)
@func()
example(): {
return dag
.staticcheck()
.test3()
}