Skip to content

Commit

Permalink
Replace golint with staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
samherrmann committed Aug 15, 2023
1 parent c59089b commit d1042e5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: |
go install golang.org/x/lint/golint@latest
golint ./...
go install honnef.co/go/tools/cmd/[email protected]
staticcheck -checks=all ./...
- name: Test
run: go test ./...
1 change: 1 addition & 0 deletions example/example.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package example demonstrates how to use moq with the go:generate directive.
package example

import "context"
Expand Down
1 change: 1 addition & 0 deletions generate/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package generate demonstrates how to use moq with the go:generate directive.
package generate

// In a terminal, run `go generate` in this directory to have
Expand Down
2 changes: 2 additions & 0 deletions internal/registry/registry.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Package registry provides the ability to encapsulate type information for the
// source and mock destination package.
package registry

import (
Expand Down
1 change: 1 addition & 0 deletions internal/template/template.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package template defines the template for the Moq generated code.
package template

import (
Expand Down
1 change: 1 addition & 0 deletions pkg/moq/moq.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package moq provides the ability to generate mocks for interfaces.
package moq

import (
Expand Down

0 comments on commit d1042e5

Please sign in to comment.