Find TODO comments in code files
Project description
WhatToDo
command-line tool that scans directories for TODO comments in code files and generates a report.
Features
- Searches for TODO comments in specified file types
- Collects context, scope, and metadata for each TODO
- Outputs results to console, TSV, or Markdown format
** Note: this script is not intended to be a full-featured code analysis tool, it's just some regexs - the scope identification is very basic and could be improved.
Usage
python whattodo.py [path] [--extensions EXT [EXT ...]] [--output OUTPUT]
Arguments
-por--path: Directory to search (default: current directory)-eor--extensions: File extensions to search (default: .py .R .sh .c .cpp .pl)-oor--output: Output file path (optional, .tsv or .md)
Examples
-
Search current directory with default settings:
python whattodo.py -
Search a specific directory:
python whattodo.py /path/to/project -
Specify custom file extensions:
python whattodo.py --extensions .py .js .html -
Output to a TSV file:
python whattodo.py --output todos.tsv -
Output to a Markdown file:
python whattodo.py --output todos.md -
Combine options:
python whattodo.py /path/to/project --extensions .py .js --output todos.md
Requirements
- Python
Installation
- Clone this repository or download the
whattodo.pyfile. - write
python whattodo.pyto the command line. - success!
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file what2do-0.1.1.tar.gz.
File metadata
- Download URL: what2do-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14fdd46cded06a0be4e2ff45f96bed7d12ad06d4dd614b157875492db364c0d3
|
|
| MD5 |
2e1eba9197b17728da8ad9ded7d16714
|
|
| BLAKE2b-256 |
d178df03a73f7ccac68fbc76d9346a1580d482b7064eb8aedd537d1ac3f8be9c
|
File details
Details for the file what2do-0.1.1-py3-none-any.whl.
File metadata
- Download URL: what2do-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80069320089449888446b51ad71dd95be2f93bd6a7e2cc1d4fd0ea606ec2c135
|
|
| MD5 |
1767143f28de930cfd7ae5b99b97f2fc
|
|
| BLAKE2b-256 |
ec04081d57661fd80a9551f1bc6ab92b5def49d077e62fd7d92c687850fb62a2
|