Skip to content

[P2] hub-server 存量 17 条 complexity 债务清偿(14 gocognit + 3 gocyclo) #1812

Description

@DeliciousBuding

背景

#1657 转硬门禁时发现 hub-lint-baseline.json 有 17 条存量 complexity 债务(14 gocognit + 3 gocyclo,见 PR #1810)。当前由 only-new-issues: true 豁免存量、新增 finding 硬 fail。

目标

  • 清偿 17 条存量(重构复杂函数或记录有理豁免)
  • baseline 清空后移除 checks.yml 中 go-hub Lint step 的 only-new-issues knob,回到全量硬 fail

验收

  • hub-lint-baseline.json 条目为 0(或全部转为有理豁免记录)
  • golangci-lint run 在 hub-server 下 0 issue
  • checks.yml 注释更新(knob 移除)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority后端Hub Server、Edge-Hub 通信和后端服务

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions