1
0
mirror of https://github.com/go-task/task.git synced 2025-03-05 15:05:42 +02:00

feat: add local-prefixes flag to goimports linter (#958)

This commit is contained in:
Pete Davison 2022-12-19 01:06:09 +00:00 committed by GitHub
parent 0307ca8ac6
commit e4158dc5e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -6,3 +6,7 @@
linters:
enable:
- goimports
linters-settings:
goimports:
local-prefixes: github.com/go-task/task

View File

@ -6,11 +6,11 @@ import (
"io"
"testing"
"github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3/internal/output"
"github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
)
func TestInterleaved(t *testing.T) {

View File

@ -10,10 +10,11 @@ import (
"syscall"
"time"
"github.com/radovskyb/watcher"
"github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/status"
"github.com/go-task/task/v3/taskfile"
"github.com/radovskyb/watcher"
)
const defaultWatchInterval = 5 * time.Second