diff --git a/.cirrus.yml b/.cirrus.yml index 052334e..047c25f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -60,7 +60,7 @@ task: - name: "Go Lint $GOOS Mandatory$MODULES_NAME" env: # TODO: Re-enable varnamelen after golangci-lint v1.44 is released. - GOLANGCI_ARGS: "--disable=cyclop,deadcode,errcheck,errorlint,exhaustivestruct,forbidigo,forcetypeassert,funlen,gci,gocognit,gocritic,godot,godox,goerr113,gofumpt,goimports,golint,gosec,gosimple,govet,ineffassign,lll,maligned,nakedret,nestif,nilerr,nlreturn,paralleltest,revive,scopelint,staticcheck,stylecheck,thelper,unconvert,unparam,unused,varnamelen,wastedassign,whitespace,wrapcheck,wsl" + GOLANGCI_ARGS: "--disable=cyclop,deadcode,errorlint,exhaustivestruct,forbidigo,forcetypeassert,funlen,gci,gocognit,gocritic,godot,godox,goerr113,gofumpt,goimports,golint,gosec,gosimple,govet,ineffassign,lll,maligned,nakedret,nestif,nilerr,nlreturn,paralleltest,revive,scopelint,staticcheck,stylecheck,thelper,unconvert,unparam,unused,varnamelen,wastedassign,whitespace,wrapcheck,wsl" - name: "Go Lint $GOOS$MODULES_NAME" env: GOLANGCI_ARGS: "" diff --git a/backend/backend.go b/backend/backend.go index c7ad267..38c5f5e 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -455,7 +455,7 @@ func (tx *btx) addAnswersUnderNCValueActual(ncv *ncdomain.Value, sn string) (rrs // TODO: add callback variable "OnValueReferencedFunc" to backend options so that we don't pollute this function with every hook that we want // might need to add the other attributes of tx, and sn, to the callback variable for flexibility's sake // This doesn't normally return errors, but any errors during execution will be logged. - tlshook.DomainValueHookTLS(tx.qname, ncv) + _ = tlshook.DomainValueHookTLS(tx.qname, ncv) return } diff --git a/ncdomain/convert.go b/ncdomain/convert.go index fc17ad8..aaaf703 100644 --- a/ncdomain/convert.go +++ b/ncdomain/convert.go @@ -399,7 +399,7 @@ func parse(rv interface{}, v *Value, resolve ResolveFunc, errFunc ErrorFunc, dep return } - parseImport(rvm, v, resolve, errFunc, depth, mergeDepth, relname, mergedNames) + _ = parseImport(rvm, v, resolve, errFunc, depth, mergeDepth, relname, mergedNames) if ip, ok := rvm["ip"]; ok { parseIP(rvm, v, errFunc, ip, false) } diff --git a/server/web.go b/server/web.go index 614e8aa..8d3f16a 100644 --- a/server/web.go +++ b/server/web.go @@ -214,7 +214,9 @@ func webStart(listenAddr string, server *Server) error { Handler: ws, } - go s.ListenAndServe() - // TODO: error handling + go func() { + err := s.ListenAndServe() + log.Errore(err, "HTTP server") + }() return nil }