Refactoring (#327)

* chore: enable more linters and fix linter issues

* ci: enable linter checks on all branches and disable recurring checks

recurring linter checks don't make that much sense. The code & linter checks should not change on their own over night ;)

* chore: update packages

* Revert "chore: update packages"

This reverts commit 30250bf28c4b39e9e5b3af012a4e28ab036bf9af.

* chore: manually upgrade some packages
This commit is contained in:
Florian Ritterhoff
2023-03-07 01:49:06 +02:00
committed by GitHub
parent 1c4e1e55e4
commit 34344b1b35
22 changed files with 164 additions and 90 deletions
+6 -4
View File
@@ -5,14 +5,16 @@ import (
"database/sql/driver"
"errors"
"fmt"
"github.com/acme-dns/acme-dns/pkg/acmedns"
"github.com/acme-dns/acme-dns/pkg/database"
"sync"
"testing"
"github.com/erikstmartin/go-testdb"
"github.com/miekg/dns"
"go.uber.org/zap"
"go.uber.org/zap/zaptest/observer"
"sync"
"testing"
"github.com/acme-dns/acme-dns/pkg/acmedns"
"github.com/acme-dns/acme-dns/pkg/database"
)
type resolver struct {
+2 -1
View File
@@ -2,8 +2,9 @@ package nameserver
import (
"fmt"
"github.com/miekg/dns"
"strings"
"github.com/miekg/dns"
)
func (n *Nameserver) handleRequest(w dns.ResponseWriter, r *dns.Msg) {
+5 -3
View File
@@ -1,11 +1,13 @@
package nameserver
import (
"github.com/acme-dns/acme-dns/pkg/acmedns"
"github.com/miekg/dns"
"go.uber.org/zap"
"strings"
"sync"
"github.com/miekg/dns"
"go.uber.org/zap"
"github.com/acme-dns/acme-dns/pkg/acmedns"
)
// Records is a slice of ResourceRecords
+2 -1
View File
@@ -2,9 +2,10 @@ package nameserver
import (
"fmt"
"github.com/miekg/dns"
"strings"
"time"
"github.com/miekg/dns"
)
// ParseRecords parses a slice of DNS record string