From b5c4d4d6bab4d10ae109ccf7cb587218c4e2920f Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 17 Sep 2024 18:08:02 +0800 Subject: [PATCH] chore: tweak golangci --- .golangci.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 0551fc0..0bbb31f 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -17,21 +17,10 @@ linters: - mirror - bodyclose -issues: - include: - # https://golangci-lint.run/usage/configuration/#command-line-options - exclude: - - Rollback - - logger.Sync - - pgInstance.Stop - - fmt.Printf - - Enter(.*)_(.*) - - Exit(.*)_(.*) - linters-settings: goimports: # Put imports beginning with prefix after 3rd-party packages. - local-prefixes: github.com/usememos/gomark + local-prefixes: github.com/usememos/memos revive: # Default to run all linters so that new rules in the future could automatically be added to the static check. enable-all-rules: true @@ -75,6 +64,8 @@ linters-settings: disabled: true - name: if-return disabled: true + - name: max-control-nesting + disabled: true gocritic: disabled-checks: - ifElseChain