From 4036afaaa916e95fece769d1e00a79c504eb2f4e Mon Sep 17 00:00:00 2001 From: ahkui Date: Wed, 12 Jul 2023 14:54:25 +0800 Subject: [PATCH] chore: add gci config Signed-off-by: ahkui --- .golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 2823e51..c68aa26 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -163,6 +163,17 @@ linters-settings: # Force newlines in end of case at this limit (0 = never). force-case-trailing-whitespace: 0 + gci: + sections: + - standard + - blank + - prefix(cypt) # this module name + - blank + - default + # If `true`, make the section order the same as the order of `sections`. + # Default: false + custom-order: true + # See https://golangci-lint.run/usage/linters/ linters: # Disable all linters.