Dagger
Search

golangci

No long description provided.

Installation

dagger install github.com/shykes/dagger/modules/golangci@583e4b66353e75e6bc3e91151da618cb9ce70d83

Entrypoint

Return Type
Golangci
Example
func (m *myModule) example() *Golangci  {
	return dag.
			Golangci()
}

Types

Golangci 🔗

lint() 🔗

Lint a go codebase

Return Type
LintRun !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-The Go source directory to lint
pathString -Lint a specific path within the source directory
goModCacheCacheVolume -A cache volume to use for go module downloads
goBuildCacheCacheVolume -A cache volume to use for go build
Example
func (m *myModule) example(source *Directory) *GolangciLintRun  {
	return dag.
			Golangci().
			Lint(source)
}

LintRun 🔗

The result of running the GolangCI lint tool

issues() 🔗

Return Type
[Issue ! ] !
Example
func (m *myModule) example(source *Directory) []*GolangciIssue  {
	return dag.
			Golangci().
			Lint(source).
			Issues()
}

assert() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context, source *Directory)   {
	return dag.
			Golangci().
			Lint(source).
			Assert(ctx)
}

errorCount() 🔗

Return Type
Integer !
Example
func (m *myModule) example(ctx context.Context, source *Directory) int  {
	return dag.
			Golangci().
			Lint(source).
			ErrorCount(ctx)
}

warningCount() 🔗

Return Type
Integer !
Example
func (m *myModule) example(ctx context.Context, source *Directory) int  {
	return dag.
			Golangci().
			Lint(source).
			WarningCount(ctx)
}

report() 🔗

Return a JSON report file for this run

Return Type
File !
Example
func (m *myModule) example(source *Directory) *File  {
	return dag.
			Golangci().
			Lint(source).
			Report()
}

Issue 🔗

text() 🔗

Return Type
String !
Example
Function GolangciIssue.text is not accessible from the golangci module

fromLinter() 🔗

Return Type
String !
Example
Function GolangciIssue.fromLinter is not accessible from the golangci module

sourceLines() 🔗

Return Type
[String ! ] !
Example
Function GolangciIssue.sourceLines is not accessible from the golangci module

replacement() 🔗

Return Type
Replacement !
Example
Function GolangciIssue.replacement is not accessible from the golangci module

pos() 🔗

Return Type
Position !
Example
Function GolangciIssue.pos is not accessible from the golangci module

expectedNoLint() 🔗

Return Type
Boolean !
Example
Function GolangciIssue.expectedNoLint is not accessible from the golangci module

severity() 🔗

Return Type
String !
Example
Function GolangciIssue.severity is not accessible from the golangci module

isError() 🔗

Return Type
Boolean !
Example
Function GolangciIssue.isError is not accessible from the golangci module

summary() 🔗

Return Type
String !
Example
Function GolangciIssue.summary is not accessible from the golangci module

Replacement 🔗

text() 🔗

Return Type
String !
Example
Function GolangciReplacement.text is not accessible from the golangci module

Position 🔗

filename() 🔗

Return Type
String !
Example
Function GolangciPosition.filename is not accessible from the golangci module

offset() 🔗

Return Type
Integer !
Example
Function GolangciPosition.offset is not accessible from the golangci module

line() 🔗

Return Type
Integer !
Example
Function GolangciPosition.line is not accessible from the golangci module

column() 🔗

Return Type
Integer !
Example
Function GolangciPosition.column is not accessible from the golangci module