revive
Revive is a fast, configurable, extensible, and flexible linter for Go.This module runs revive with exit status enforcement on target Go packages.
Installation
dagger install github.com/softwaredevelop/daggerverse/revive@3edb91e6d550ead4410708fa939514474a5dfad5Entrypoint
Return Type
Revive !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String | - | Custom image reference in "repository:tag" format to use as a base container. |
Example
dagger -m github.com/softwaredevelop/daggerverse/revive@3edb91e6d550ead4410708fa939514474a5dfad5 call \
func (m *MyModule) Example() *dagger.Revive {
return dag.
Revive()
}@function
def example() -> dagger.Revive:
return (
dag.revive()
)@func()
example(): Revive {
return dag
.revive()
}Types
Revive 🔗
Revive provides functions for running the Revive linter.
check() 🔗
Check runs the revive linter on the target Go packages.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Source directory containing the Go module. |
| config | File | - | Optional configuration file (e.g. revive.toml). |
| packages | String | "./..." | Target Go packages or file pattern to check (defaults to “./…”). |
Example
dagger -m github.com/softwaredevelop/daggerverse/revive@3edb91e6d550ead4410708fa939514474a5dfad5 call \
check --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Revive().
Check(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.revive()
.check(source)
)@func()
example(source: Directory): Container {
return dag
.revive()
.check(source)
}