Quickstart

complexity - Code Complexity Analyzer

javimosch Updated

File contents

complexity - Code Complexity Analyzer

Overview

complexity is a command line tool to identify complex code. Analyze code complexity and identify areas that need refactoring.

Quick Start

Analyze code complexity

sc complexity analyze code <path>

Passthrough to complexity CLI

sc complexity _ <complexity-args>

Key Features

  • Code Analysis: Identify complex code patterns
  • Refactoring Guide: Highlight areas needing refactoring
  • CLI Tool: Command-line interface for analysis
  • Configurable: Customizable analysis rules
  • Multiple Languages: Support for various programming languages

Installation

cargo install complexity

Also available via:

  • Homebrew

Usage Examples

Analyze a file

complexity src/main.rs

Analyze a directory

complexity src/

With specific threshold

complexity --threshold 10 src/

Output JSON

complexity --format json src/

Notes

  • Run complexity --help to see all available options
  • Helps maintain code quality by identifying complexity

javimosch/supercli/tree/main/plugins/complexity/skills/quickstart commit 1174713b21

Frequently asked questions

npx skillmds@latest add javimosch/quickstart-2064