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:
exclude-dirs:
- contrib
linters:
enable:
- goimports
linters-settings:
goimports:
local-prefixes: "github.com/Crocmagnon/fatcontext"

View file

@ -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() {

View file

@ -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) {