megalinter
This module provides a function to lint files using megalinter.
Installation
dagger install github.com/tsirysndr/daggerverse/megalinter@9df18d59bf9ec287516fba6e2f3639ed91337360
Entrypoint
Return Type
Megalinter
Example
dagger -m github.com/tsirysndr/daggerverse/megalinter@9df18d59bf9ec287516fba6e2f3639ed91337360 call \
func (m *myModule) example() *Megalinter {
return dag.
Megalinter()
}
@function
def example() -> dag.Megalinter:
return (
dag.megalinter()
)
@func()
example(): Megalinter {
return dag
.megalinter()
}
Types
Megalinter 🔗
lint() 🔗
Lint files.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
version | String | "v7" | No description provided |
only | String | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/megalinter@9df18d59bf9ec287516fba6e2f3639ed91337360 call \
lint --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Megalinter().
Lint(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.megalinter()
.lint(src)
)
@func()
example(src: Directory): Directory {
return dag
.megalinter()
.lint(src)
}