浏览代码

chore: sync cyclo settings

jamesread 15 小时之前
父节点
当前提交
087f61e5b9
共有 2 个文件被更改,包括 2 次插入 和 2 次删除
  1. 1 1
      AGENTS.md
  2. 1 1
      service/.golangci.yml

+ 1 - 1
AGENTS.md

@@ -46,7 +46,7 @@ If you are looking for OliveTin's AI policy, you can find it in `AI.md`.
 - Do not swallow errors; propagate or log meaningfully.
 - Do not swallow errors; propagate or log meaningfully.
 - Match existing formatting; avoid unrelated reformatting.
 - Match existing formatting; avoid unrelated reformatting.
 - Be safe around nils in executor steps (e.g., guard `req.Binding` and `req.Binding.Action`).
 - Be safe around nils in executor steps (e.g., guard `req.Binding` and `req.Binding.Action`).
-- Cyclomatic complexity over 4 is not permitted (`gocyclo` `min-complexity: 5` in `service/.golangci.yml`).
+- Cyclomatic complexity over 5 is not permitted (`gocyclo` `min-complexity: 5` in `service/.golangci.yml`).
 
 
 ### API and Execution Flow (High-level)
 ### API and Execution Flow (High-level)
 1. Client calls Connect RPC (e.g., `Init`, `GetDashboard`, `StartAction`).
 1. Client calls Connect RPC (e.g., `Init`, `GetDashboard`, `StartAction`).

+ 1 - 1
service/.golangci.yml

@@ -2,7 +2,7 @@
 #
 #
 # This config replaces the former standalone tools:
 # This config replaces the former standalone tools:
 #   go vet ./...              -> govet (enable-all)
 #   go vet ./...              -> govet (enable-all)
-#   gocyclo -over 4           -> gocyclo min-complexity: 5
+#   gocyclo -over 5           -> gocyclo min-complexity: 5
 #   gocritic check ./...      -> gocritic
 #   gocritic check ./...      -> gocritic
 #   errcheck, staticcheck, ...-> same-named golangci-lint linters
 #   errcheck, staticcheck, ...-> same-named golangci-lint linters
 #
 #