Skip to content

About

A deterministic, zero-token Cognitive Complexity calculation library, CLI tool, and GitHub Action for Dart and Flutter repositories.

Topics

Resources

Stars

79 stars

Watchers

1 watching

Forks

Repository files navigation

Analytica

CI License: MIT

A unified suite of high-performance static analysis engines, CLI tools, GitHub Actions, and AI Agent Skills for Dart and Flutter repositories.


📦 Published Packages

Package Pub Description
cognitive_complexity pub package Cognitive Complexity scoring, statement data-flow (data_flow), file decomposition (file_split), and shallow-helper (shallow) CLI & library.
dedupe pub package High-performance token, structural, and parameterized code clone detection engine and CLI.
undead pub package Whole-program reachability and dead declaration analysis for packages and closed apps.
analytica pub package Shared SDK discovery, AST analyzer extensions, Git diff utilities, and CI reporting.

🚀 GitHub Actions

Modular composite GitHub Actions are maintained and documented in their respective package directories:

  • Cognitive Complexity Audit (packages/cognitive_complexity): Calculates Cognitive Complexity scores on pull requests and flags regressions.

🧠 AI Agent Skills

Specialized agent skills are maintained in the skills/ directory and documented alongside their companion packages:

Install using either the dart skills CLI:

dart run skills@ add kevmoo/analytica.dart --skill <skill-name>

Or npx skills:

npx skills add kevmoo/analytica.dart --skill <skill-name>

⚡ CLI Quick Run

Execute any tool on-demand without global installation via dart run <package>@:

# Evaluate cognitive complexity
dart run cognitive_complexity@ --threshold 15 lib/

# Audit structural code duplication
dart run dedupe@ --git-diff=origin/main

# Scan for unreachable / dead declarations
dart run undead@

About

A deterministic, zero-token Cognitive Complexity calculation library, CLI tool, and GitHub Action for Dart and Flutter repositories.

Topics

Resources

Stars

79 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages