From 98578576b896843611b6e795a2b13c662248dba4 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 20 Nov 2024 15:14:07 +0200 Subject: [PATCH] chore: format with goimports --- .golangci.yml | 6 ++++++ cmd/fatcontext/main.go | 3 ++- pkg/analyzer/analyzer_test.go | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 297fd59..5ade43e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,9 @@ issues: exclude-dirs: - contrib +linters: + enable: + - goimports +linters-settings: + goimports: + local-prefixes: "github.com/Crocmagnon/fatcontext" diff --git a/cmd/fatcontext/main.go b/cmd/fatcontext/main.go index 3fb44e7..747f6a9 100644 --- a/cmd/fatcontext/main.go +++ b/cmd/fatcontext/main.go @@ -1,8 +1,9 @@ package main import ( - "github.com/Crocmagnon/fatcontext/pkg/analyzer" "golang.org/x/tools/go/analysis/singlechecker" + + "github.com/Crocmagnon/fatcontext/pkg/analyzer" ) func main() { diff --git a/pkg/analyzer/analyzer_test.go b/pkg/analyzer/analyzer_test.go index 3dfbe5f..3477ed0 100644 --- a/pkg/analyzer/analyzer_test.go +++ b/pkg/analyzer/analyzer_test.go @@ -1,11 +1,13 @@ package analyzer_test import ( - "github.com/Crocmagnon/fatcontext/pkg/analyzer" - "golang.org/x/tools/go/analysis/analysistest" "os" "path/filepath" "testing" + + "golang.org/x/tools/go/analysis/analysistest" + + "github.com/Crocmagnon/fatcontext/pkg/analyzer" ) func TestAll(t *testing.T) {