diff --git a/.golangci.yml b/.golangci.yml index d60bd37..217f1b0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,9 @@ linters: enable-all: true disable: + - deadcode - exhaustivestruct + - exhaustruct - gochecknoglobals - gochecknoinits - goerr113 @@ -9,14 +11,19 @@ linters: - gomnd - gosec - funlen + - ifshort - interfacer - lll - maligned - nlreturn + - nonamedreturns + - nosnakecase - paralleltest - prealloc - scopelint + - structcheck - testpackage + - varcheck - varnamelen - wrapcheck - wsl diff --git a/Makefile b/Makefile index 7eedb82..765c70f 100644 --- a/Makefile +++ b/Makefile @@ -26,4 +26,4 @@ clean: .PHONY: bootstrap bootstrap: go install github.com/campoy/embedmd@v1.0.0 - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh | sh -s -- -b ${GOPATH}/bin v1.45.2 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.54.2/install.sh | sh -s -- -b ${GOPATH}/bin v1.54.2 diff --git a/main.go b/main.go index 55e9e70..dad84ac 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +// Command mathfmt formats mathematical documentation. package main import ( diff --git a/make_symbols.go b/make_symbols.go index 0177b7d..461cad2 100644 --- a/make_symbols.go +++ b/make_symbols.go @@ -1,6 +1,7 @@ //go:build ignore // +build ignore +// Command make_symbols generates output from a symbol database. package main import (