From 4ed3ccd7dc018399ed6fe10b1ff5e8f1c0137efa Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Fri, 13 Dec 2024 01:17:15 +0100 Subject: [PATCH] CI: improve importas rule Co-authored-by: Atomys Signed-off-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> --- .golangci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 18c0d98..8b4dfd5 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -23,10 +23,8 @@ linters-settings: importas: alias: # prevent conflicts with std packages - - pkg: github.com/go-sprout/sprout/registry/time - alias: rtime - - pkg: github.com/go-sprout/sprout/registry/strings - alias: rstrings + - pkg: github.com/go-sprout/sprout/registry/(\w+) + alias: r$1 gofumpt: module-path: github.com/go-sprout/sprout misspell: