phpcs
This module provides a function to run phpcs on PHP files.
Installation
dagger install github.com/tsirysndr/daggerverse/phpcs@e8bed26dfefaaf4ef3d00958965575131f34c69cEntrypoint
Return Type
Phpcs Example
dagger -m github.com/tsirysndr/daggerverse/phpcs@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *MyModule) Example() *dagger.Phpcs {
return dag.
Phpcs()
}@function
def example() -> dagger.Phpcs:
return (
dag.phpcs()
)@func()
example(): Phpcs {
return dag
.phpcs()
}Types
Phpcs 🔗
check() 🔗
Run phpcs on PHP files.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| path | String | "." | No description provided |
| tag | String | "latest" | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/phpcs@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
check --src DIR_PATHfunc (m *MyModule) Example(src *dagger.Directory) *dagger.Directory {
return dag.
Phpcs().
Check(src)
}@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.phpcs()
.check(src)
)@func()
example(src: Directory): Directory {
return dag
.phpcs()
.check(src)
}