SkillPedia Skills Encyclopedia
中文 EN
今日更新 2026-11-18 UTC

今天还没有新提交

查看更新动态

技能 2026-10-08 17:45 UTC

dash_skills

由提交人 kevmoo 提交,主要更新类型为:常规更新与维护。提交说明:Reduce cognitive complexity across dash_discover, tool, and scripts (#59)。对项目做了常规维护与小幅调整。

kevmoo 397a703 kevmoo/dash_skills

Commit提交信息原文

Reduce cognitive complexity across dash_discover, tool, and scripts (#59)

* Reduce cognitive complexity across dash_discover, tool, and scripts

- Flatten neighbor and declaration checks in `path_package_rule.dart`, `outline_generator.dart`, and `package_facts.dart` into the `<= 15` target zone without introducing shallow helpers.
- Extract pure file-private helpers in `cli.dart`, `skills_catalog.dart`, `check_aux_effect.dart`, `tool/bin/readme.dart`, and `profile.dart`, reducing max cognitive complexity from 64 to 15 (net delta -59) with zero public API changes.

* Revert micro-style edits flagged in review

- profile.dart: bind the decoded line stream to a local so
  `_listenForServiceUri` uses `.listen((line) {` without the formatter's
  awkward parameter wrap (a single-return block body was reflowed back
  and tripped prefer_expression_function_bodies).
- outline_generator.dart: split `++lineCount` from the max-lines check.
- package_facts.dart: restore the plain `for` loop over duplicates; walk
  lib then aux declarations lazily via `followedBy` instead of a
  materialized list (restoring the `addEdges` closure scores CC 17).