SkillAgentSearch skills...

Codstts

A code statistics tool written in Rust that analyzes programming language distribution in projects.

Install / Use

/learn @zheng0116/Codstts
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Codstts

Codstts License Rust Version

English | 中文

🌟 Overview

A code statistics tool written in Rust that analyzes programming language distribution in projects.

🚀 Features

  • Multiple programming language recognition
  • Simple and detailed display modes
  • Customizable configuration
  • Accurate code, comment, and blank line counting
  • Beautiful command-line interface
  • Support for .gitattributes language overrides
  • Ignores common binary files, documentation, and configuration files

Installation

cargo install codstts

Usage

Basic usage:

# Analyze current directory
codstts

# Use simple mode
codstts -s

# Use detailed mode
codstts -d

# Analyze specific directory
codstts path/to/your/project

Configuration

You can create a .codstts.toml file in your project root for custom configuration:

# Paths to ignore
ignore_paths = ["vendor", "node_modules"]

# Language mappings
[language_mappings]
"jsx" = "React"
"tsx" = "React"

# Extensions to exclude
exclude_extensions = ["log", "tmp"]

# Files to exclude
exclude_files = ["LICENSE", "README.md"]

Output Examples

Interface

Detailed mode includes additional information such as code lines, comment lines, etc.

License

This project is open-sourced under the MIT

Contributing

Issues and Pull Requests are welcome!

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2mo ago
Forks1

Languages

Rust

Security Score

85/100

Audited on Jan 13, 2026

No findings