Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmclean

A comment-structure linter for source trees. It scans source files and flags commented debris before it accumulates: TODOs/FIXMEs/HACKs, author plaques, suspicious one-liners, excessively long comments, and blocker-style remarks.

About

cmclean is a language-agnostic static-analysis helper for codebases. It flags problematic comment patterns across supported file types, including Python, JavaScript/TypeScript, Markdown, and JSON/YAML/TOML. It is not a full linter; its job is comment hygiene.

Features

  • Detect TODO-like debris: TODO, FIXME, HACK, XXX
  • Detect author plaques: @author, @created by, @written by
  • Detect suspicious debris: weird symbols, oddisms
  • Detect blame/blocker-style remarks: @blame, @debugger, @temp, @workaround
  • Detect excessively long comments above configurable length
  • Multi-language file awareness across .py, .js, .ts, .tsx, .md, .yaml, .yml, .json, .toml
  • JSON or human-friendly text output
  • Module-style invocation via python -m cmclean

Installation

python -m pip install cmclean

Usage

cmclean /path/to/project
cmclean /path/to/project --json
python -m cmclean /path/to/project
python -m cmclean /path/to/project --json

Exit codes

  • 0 No questionable comments found
  • 1 Issues found or bad invocation

Project structure

cmclean/
├── .github/workflows/tests.yml
├── src/cmclean/
│   ├── __init__.py
│   ├── __main__.py
│   ├── cli.py
│   ├── engine.py
│   └── models.py
├── tests/
│   └── test_cmclean.py
├── docs/
│   └── docs.md
├── examples/demo_clean.py
├── pyproject.toml
└── README.md

Development

python -m pip install -e '.[dev]'
python -m pytest

Contributing

Issues and pull requests are welcome. Please keep changes focused on comment-hygiene behavior, supported file patterns, and documentation accuracy.

Repository

https://github.com/Axelgustavlindstrom/cmclean

License

This project is licensed under the MIT License. See LICENSE for details.

About

A comment-structure linter for source trees. It scans source files and flags commented debris: TODOs/FIXMEs/HACKs, author plaques, suspicious one-liners, excessively long comments, and blocker-style remarks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages