mirror of
				https://github.com/go-task/task.git
				synced 2025-10-30 23:58:01 +02:00 
			
		
		
		
	feat: add local-prefixes flag to goimports linter (#958)
This commit is contained in:
		| @@ -6,3 +6,7 @@ | ||||
| linters: | ||||
|   enable: | ||||
|     - goimports | ||||
|  | ||||
| linters-settings: | ||||
|   goimports: | ||||
|     local-prefixes: github.com/go-task/task | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
							
								
								
									
										3
									
								
								watch.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								watch.go
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user