Skip to content

Commit

Permalink
style(config): add config/migration to dot-import allow-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Nov 23, 2023
1 parent 02cf490 commit 23359d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ linters-settings:
dot-import-whitelist:
- "github.com/onsi/ginkgo"
- "github.com/onsi/gomega"
- "github.com/0xERR0R/blocky/config/migration"
- "github.com/0xERR0R/blocky/helpertest"
revive:
rules:
- name: dot-imports
disabled: true # prefer stylecheck since it's more configurable

issues:
exclude-rules:
Expand Down
2 changes: 1 addition & 1 deletion config/blocking.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

import (
. "github.com/0xERR0R/blocky/config/migration" //nolint:revive,stylecheck
. "github.com/0xERR0R/blocky/config/migration"
"github.com/0xERR0R/blocky/log"
"github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/miekg/dns"
"github.com/sirupsen/logrus"

. "github.com/0xERR0R/blocky/config/migration" //nolint:revive,stylecheck
. "github.com/0xERR0R/blocky/config/migration"
"github.com/0xERR0R/blocky/log"
"github.com/0xERR0R/blocky/util"
"github.com/creasty/defaults"
Expand Down
2 changes: 1 addition & 1 deletion config/hosts_file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

import (
. "github.com/0xERR0R/blocky/config/migration" //nolint:revive,stylecheck
. "github.com/0xERR0R/blocky/config/migration"
"github.com/0xERR0R/blocky/log"
"github.com/sirupsen/logrus"
)
Expand Down

0 comments on commit 23359d1

Please sign in to comment.