Chore: Fix goimports grouping in pkg/services (#62420)

* fix goimports

* fix goimports order
This commit is contained in:
Serge Zaitsev
2023-01-30 08:21:27 +00:00
committed by GitHub
parent 324310abbc
commit bc2813ef06
74 changed files with 147 additions and 109 deletions
@@ -8,8 +8,9 @@ import (
"path/filepath"
"strings"
"github.com/grafana/grafana/pkg/infra/log"
"gopkg.in/yaml.v3"
"github.com/grafana/grafana/pkg/infra/log"
)
type rulesConfigReader struct {
@@ -4,8 +4,9 @@ import (
"context"
"testing"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/infra/log"
)
const (
@@ -3,9 +3,10 @@ package alerting
import (
"testing"
"github.com/grafana/grafana/pkg/services/provisioning/values"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"github.com/grafana/grafana/pkg/services/provisioning/values"
)
func TestReceivers(t *testing.T) {
@@ -7,10 +7,10 @@ import (
"strings"
"time"
"github.com/prometheus/common/model"
"github.com/grafana/grafana/pkg/services/ngalert/models"
"github.com/grafana/grafana/pkg/services/provisioning/values"
"github.com/prometheus/common/model"
)
type RuleDelete struct {
@@ -4,9 +4,8 @@ import (
"os"
"testing"
"gopkg.in/yaml.v3"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
)
func TestNotificationPolicy(t *testing.T) {
@@ -8,10 +8,11 @@ import (
"path/filepath"
"strings"
"gopkg.in/yaml.v3"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/org"
"github.com/grafana/grafana/pkg/services/provisioning/utils"
"gopkg.in/yaml.v3"
)
type configReader struct {
@@ -7,9 +7,10 @@ import (
"path/filepath"
"testing"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/infra/log"
)
var (
@@ -5,9 +5,10 @@ import (
"os"
"testing"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/plugins"
"github.com/stretchr/testify/require"
)
const (
@@ -6,12 +6,13 @@ import (
"testing"
"time"
"github.com/stretchr/testify/assert"
dashboardstore "github.com/grafana/grafana/pkg/services/dashboards"
"github.com/grafana/grafana/pkg/services/org"
"github.com/grafana/grafana/pkg/services/provisioning/dashboards"
"github.com/grafana/grafana/pkg/services/provisioning/utils"
"github.com/grafana/grafana/pkg/setting"
"github.com/stretchr/testify/assert"
)
func TestProvisioningServiceImpl(t *testing.T) {
@@ -6,11 +6,12 @@ import (
"os"
"testing"
"github.com/grafana/grafana/pkg/setting"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/ini.v1"
"gopkg.in/yaml.v3"
"github.com/grafana/grafana/pkg/setting"
)
func TestValues(t *testing.T) {