Coder Social home page Coder Social logo

frost / todo.txt-source-code-autoscan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nycander/todo.txt-source-code-autoscan

1.0 1.0 0.0 539 KB

A powerful ruby script which scans your code for todo-comments and creates a todo.txt from it.

License: GNU General Public License v3.0

Ruby 100.00%

todo.txt-source-code-autoscan's Introduction

Todo.txt Autoscan Utility

Example session

Let's say you have some sort of code / text project you are working on, which supports some kind of comments:

Deathstar/doc/usermanual.tex
Deathstar/doc/usermanual.pdf
Deathstar/laser_controller.c
Deathstar/gravitionaltravel_handler.c
Deathstar/...

Now, in all these files you maybe are writing stuff like

// TODO: Make sure laser cannon does not overheat.

After working for a couple of decades on this project, you probably have a few dozen of these comments laying around (at least I do).

This little utility will find all these comments and compile them into a neat todo.txt-compliant todo.txt file.

For example:

(A) +Deathstar @code-c @laser_controller Make sure laser canon does not overheat. (laser_controller.c)

It also has the capability of just modifying any existing todo.txt file. (Note: Since this program is under development and very untested, it might just ruin your entire todo.txt-file. Use with care!)

(A) Research X-wing fighters
+Groceries Buy milk
(A) +Deathstar @code-c @laser_controller Make sure laser canon does not overheat. (laser_controller.c)

Installation

If you have any experience with ruby scripts, you should have no problem figuring out how to run and install this.

Quick n' dirt

  1. Make sure you have a ruby runtime environment installed.
  2. Put todoscan.rb in your project directory
  3. Execute todoscan.rb with your ruby installation.

A file called todo.cfg.yml and one called todo.txtshould have been created. Open up todo.cfg.yml to configure the behaviour.

As a git hook

TO-DO: Find out how git-hooks works and write down how to set it up with todoscan

As a subversion hook

TO-DO: Find out how svn-hooks works and write down how to set it up with todoscan

As a sublime-text plugin

TO-DO: Find out how sublime text plugins works and write down how to set it up with todoscan

todo.txt-source-code-autoscan's People

Contributors

frost avatar nycander avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.