SkillPedia Skills Encyclopedia
中文 EN
Today's updates 2026-11-18 UTC

No new commits yet today

Open the update feed

Skills 2026-10-08 17:45 UTC

dash_skills

Committed by kevmoo. Update Category: Routine Updates & Maintenance. Commit details: Reduce cognitive complexity across dash_discover, tool, and scripts (#59). This update performs routine maintenance and minor adjustments.

kevmoo 397a703 kevmoo/dash_skills

CommitRaw commit message

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).