megalinter
This module provides a function to lint files using megalinter.
Installation
dagger install github.com/tsirysndr/daggerverse/megalinter@9b00a064a21a11b92df8a4cd70ce46296ab753b2
Entrypoint
Return Type
Megalinter
Example
dagger -m github.com/tsirysndr/daggerverse/megalinter@9b00a064a21a11b92df8a4cd70ce46296ab753b2 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@9b00a064a21a11b92df8a4cd70ce46296ab753b2 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)
}