Skip to content

Commit d1042e5

Browse files
committed
Replace golint with staticcheck
1 parent c59089b commit d1042e5

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Lint
4343
if: matrix.os == 'ubuntu-latest'
4444
run: |
45-
go install golang.org/x/lint/golint@latest
46-
golint ./...
45+
go install honnef.co/go/tools/cmd/staticcheck@2022.1.3
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)