chore: format with goimports

This commit is contained in:
Oleksandr Redko 2024-11-20 15:14:07 +02:00
parent 4ad817c8f3
commit 166e49d25a
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,9 @@
issues: issues:
exclude-dirs: exclude-dirs:
- contrib - contrib
linters:
enable:
- goimports
linters-settings:
goimports:
local-prefixes: "github.com/Crocmagnon/fatcontext"

View file

@ -1,8 +1,9 @@
package main package main
import ( import (
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
"golang.org/x/tools/go/analysis/singlechecker" "golang.org/x/tools/go/analysis/singlechecker"
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
) )
func main() { func main() {

View file

@ -1,11 +1,13 @@
package analyzer_test package analyzer_test
import ( import (
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
"golang.org/x/tools/go/analysis/analysistest"
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"
"golang.org/x/tools/go/analysis/analysistest"
"github.com/Crocmagnon/fatcontext/pkg/analyzer"
) )
func TestAll(t *testing.T) { func TestAll(t *testing.T) {