Skip to main content

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

  • -p or --path: Directory to search (default: current directory)
  • -e or --extensions: File extensions to search (default: .py .R .sh .c .cpp .pl)
  • -o or --output: Output file path (optional, .tsv or .md)

Examples

  1. Search current directory with default settings:

    python whattodo.py
    
  2. Search a specific directory:

    python whattodo.py /path/to/project
    
  3. Specify custom file extensions:

    python whattodo.py --extensions .py .js .html
    
  4. Output to a TSV file:

    python whattodo.py --output todos.tsv
    
  5. Output to a Markdown file:

    python whattodo.py --output todos.md
    
  6. Combine options:

    python whattodo.py /path/to/project --extensions .py .js --output todos.md
    

Requirements

  • Python

Installation

  1. Clone this repository or download the whattodo.py file.
  2. write python whattodo.py to the command line.
  3. success!

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

what2do-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

what2do-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for what2do-0.1.1.tar.gz
Algorithm Hash digest
SHA256 14fdd46cded06a0be4e2ff45f96bed7d12ad06d4dd614b157875492db364c0d3
MD5 2e1eba9197b17728da8ad9ded7d16714
BLAKE2b-256 d178df03a73f7ccac68fbc76d9346a1580d482b7064eb8aedd537d1ac3f8be9c

See more details on using hashes here.

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

Hashes for what2do-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80069320089449888446b51ad71dd95be2f93bd6a7e2cc1d4fd0ea606ec2c135
MD5 1767143f28de930cfd7ae5b99b97f2fc
BLAKE2b-256 ec04081d57661fd80a9551f1bc6ab92b5def49d077e62fd7d92c687850fb62a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page