From 07547606913deee2abc0e484888a328b53982422 Mon Sep 17 00:00:00 2001 From: win5923 Date: Fri, 6 Dec 2024 00:32:24 +0800 Subject: [PATCH] [Chore] Use Gci to control Go package import order Signed-off-by: win5923 --- .golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 6e2ebda1bc..faf297288a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,14 @@ linters-settings: + gci: + sections: + - standard + - default + - prefix(github.com/ray-project) + - blank + - dot + - localmodule + skip-generated: false + custom-order: true gofmt: simplify: true gosec: @@ -83,6 +93,7 @@ linters: - unparam - unused - wastedassign + - gci disable-all: true issues: max-issues-per-linter: 0