ci: replace golangci-lint with staticcheck

This commit is contained in:
Dan Kortschak
2022-05-10 22:36:00 +09:30
parent 84fd2bc2bb
commit a2c6f817bf
31 changed files with 68 additions and 62 deletions

View File

@@ -11,9 +11,11 @@ import (
// This file implements types for helping to convert to Fortran testing capabilities.
//lint:file-ignore U1000 A number of functions are here that may be used in future.
// fortran64 is a float64 type that prints as a double precision constant in
// Fortran format.
type fortran64 float64 //nolint:unused
type fortran64 float64
func (f fortran64) String() string {
// Replace exponent with D
@@ -24,7 +26,6 @@ func (f fortran64) String() string {
// printFortranArray prints a Go slice as an array that can be copied into a
// fortran script.
//nolint:deadcode,unused
func printFortranArray(z []float64, name string) {
fmt.Printf("%s(1:%d) = (/%v, &\n", name, len(z), fortran64(z[0]))
for i := 1; i < len(z)-1; i++ {