diff --git a/pkg/js/hash.go b/pkg/js/hash.go index 620cc424cd..1bf8ba317b 100644 --- a/pkg/js/hash.go +++ b/pkg/js/hash.go @@ -17,6 +17,7 @@ func hashFunc(call otto.FunctionCall) otto.Value { } algorithm := call.Argument(0).String() // The algorithm to use for hashing value := call.Argument(1).String() // The value to hash + //lint:ignore SA4006 work around bug in staticcheck. This value is needed if the switch statement follows the default path. result := otto.Value{} fmt.Printf("%s\n", value) diff --git a/providers/autodns/autoDnsProvider.go b/providers/autodns/autoDnsProvider.go index afc507c21f..79586f0a53 100644 --- a/providers/autodns/autoDnsProvider.go +++ b/providers/autodns/autoDnsProvider.go @@ -98,7 +98,7 @@ func (api *autoDNSProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, e err := api.updateZone(domain, resourceRecords, nameServers, zoneTTL) if err != nil { - return fmt.Errorf(err.Error()) + return fmt.Errorf("%s", err.Error()) } return nil diff --git a/providers/dnsimple/dnsimpleProvider.go b/providers/dnsimple/dnsimpleProvider.go index d9455f0ee9..93d5b3c872 100644 --- a/providers/dnsimple/dnsimpleProvider.go +++ b/providers/dnsimple/dnsimpleProvider.go @@ -729,7 +729,7 @@ func compileAttributeErrors(err *dnsimpleapi.ErrorResponse) error { e := strings.Join(errors, "& ") message += fmt.Sprintf(": %s %s", field, e) } - return fmt.Errorf(message) + return fmt.Errorf("%s", message) } // Return true if the string ends in one of DNSimple's name server domains diff --git a/providers/hedns/hednsProvider.go b/providers/hedns/hednsProvider.go index 1da1992a6f..495d4874bf 100644 --- a/providers/hedns/hednsProvider.go +++ b/providers/hedns/hednsProvider.go @@ -690,7 +690,7 @@ func (c *hednsProvider) parseResponseForDocumentAndErrors(response *http.Respons return true } } - err = fmt.Errorf(element.Text()) + err = fmt.Errorf("%s", element.Text()) return false }) diff --git a/providers/oracle/oracleProvider.go b/providers/oracle/oracleProvider.go index 7ac0fcb859..4f5b37dbb9 100644 --- a/providers/oracle/oracleProvider.go +++ b/providers/oracle/oracleProvider.go @@ -177,7 +177,7 @@ func (o *oracleProvider) GetNameservers(domain string) ([]*models.Nameserver, er if err != nil { nssStrip, err := models.ToNameserversStripTD(nss) if err != nil { - return nil, fmt.Errorf("Could not determine if trailing dots should be stripped or not...") + return nil, fmt.Errorf("could not determine if trailing dots should be stripped or not") } return nssStrip, nil