Skip to content

Commit 95532d0

Browse files
committed
Replace golint with staticcheck
1 parent c59089b commit 95532d0

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
run: go vet ./...
4141

4242
- name: Lint
43-
if: matrix.os == 'ubuntu-latest'
43+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
4444
run: |
45-
go install golang.org/x/lint/golint@latest
46-
golint ./...
45+
go install honnef.co/go/tools/cmd/[email protected]
46+
staticcheck -checks=all ./...
4747
4848
- name: Test
4949
run: go test ./...

example/example.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package example demonstrates how to use moq with the go:generate directive.
12
package example
23

34
import "context"

generate/generate.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package generate demonstrates how to use moq with the go:generate directive.
12
package generate
23

34
// In a terminal, run `go generate` in this directory to have

internal/registry/registry.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Package registry provides the ability to encapsulate type information for the
2+
// source and mock destination package.
13
package registry
24

35
import (

internal/template/template.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package template defines the template for the Moq generated code.
12
package template
23

34
import (

pkg/moq/moq.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package moq provides the ability to generate mocks for interfaces.
12
package moq
23

34
import (

0 commit comments

Comments
 (0)