From 99a8e56bdc18be725ded0434140e99647a496e41 Mon Sep 17 00:00:00 2001 From: bruwbird Date: Wed, 19 Feb 2025 12:47:18 +0900 Subject: [PATCH] conf: remove golangci configuration file - Remove config due to numerous issues detected by golang ci lint - Temporarily delete to ease management - Plan to reintroduce once major lint problems are resolved [ci skip] --- .golangci.yml | 108 -------------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml deleted file mode 100644 index 9a702752..00000000 --- a/.golangci.yml +++ /dev/null @@ -1,108 +0,0 @@ -linters-settings: - dupl: - threshold: 100 - funlen: - lines: 100 - statements: 50 - goconst: - min-len: 2 - min-occurrences: 3 - gocritic: - enabled-tags: - - diagnostic - - experimental - - opinionated - - performance - - style - disabled-checks: - - dupImport - - ifElseChain - - octalLiteral - - whyNoLint - - wrapperFunc - gocyclo: - min-complexity: 15 - gomnd: - settings: - mnd: - # don't include the "operation" and "assign" - checks: argument,case,condition,return - ignored-numbers: 0,1,2,3 - ignored-functions: strings.SplitN - govet: - check-shadowing: true - lll: - line-length: 140 - misspell: - locale: US - -linters: - disable-all: true - enable: - - bodyclose - - deadcode - - depguard - - dogsled - - dupl - - errcheck - - exportloopref - - funlen - - gochecknoinits - - goconst - - gocritic - - gocyclo - - gofmt - - gomnd - - goprintffuncname - - gosec - - gosimple - - govet - - ineffassign - - lll - - misspell - - nakedret - - noctx - - nolintlint - - staticcheck - - structcheck - - stylecheck - - typecheck - - unconvert - - unparam - - unused - - varcheck - - whitespace - - # don't enable: - # - goimports - # - asciicheck - # - scopelint - # - gochecknoglobals - # - gocognit - # - godot - # - godox - # - goerr113 - # - interfacer - # - maligned - # - nestif - # - prealloc - # - testpackage - # - revive - # - wsl - -issues: - # Excluding configuration per-path, per-linter, per-text and per-source - exclude-rules: - - path: _test\.go - linters: - - gomnd - - gocyclo - - errcheck - - dupl - - gosec -run: - timeout: 1m - issues-exit-code: 1 - tests: true - skip-dirs-use-default: true - allow-parallel-runners: true \ No newline at end of file