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 95532d0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
run: go vet ./...

- name: Lint
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'
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 95532d0

Please sign in to comment.