Dagger
Search

editorconfig

This module wraps the editorconfig-checker tool to ensure codebases adhere
to formatting rules defined in their .editorconfig files. It can be easily
integrated into local developer workflows or CI/CD pipelines (such as GitHub Actions).

Installation

dagger install github.com/softwaredevelop/daggerverse/editorconfig@fdcdd2f195bb63b7c5379bea8d3832d683677b40

Entrypoint

Return Type
Editorconfig !
Arguments
NameTypeDefault ValueDescription
imageString -Custom image reference in "repository:tag" format to use as a base container.
Example
dagger -m github.com/softwaredevelop/daggerverse/editorconfig@fdcdd2f195bb63b7c5379bea8d3832d683677b40 call \
func (m *MyModule) Example() *dagger.Editorconfig  {
	return dag.
			Editorconfig()
}
@function
def example() -> dagger.Editorconfig:
	return (
		dag.editorconfig()
	)
@func()
example(): Editorconfig {
	return dag
		.editorconfig()
}

Types

Editorconfig 🔗

Editorconfig provides functions to run editorconfig checks.

check() 🔗

Check runs the editorconfig-checker command on the target directory. It returns the container allowing callers to chain methods such as stderr, stdout, or sync.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-

Source directory to validate.

excludeDirectoryPatternString ".git"

A relative directory path to exclude from the check (defaults to “.git”).

Example
dagger -m github.com/softwaredevelop/daggerverse/editorconfig@fdcdd2f195bb63b7c5379bea8d3832d683677b40 call \
 check --source DIR_PATH
func (m *MyModule) Example(source *dagger.Directory) *dagger.Container  {
	return dag.
			Editorconfig().
			Check(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.editorconfig()
		.check(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.editorconfig()
		.check(source)
}