Toadie
Toadie greps your (ruby) source code for TODO tags and associate them with your team members.
It's meant to be part of a CI process, so everyone should be able to find her/his open TODOs.
Features
- grep rb, erb, haml, slim and feature files
- uses git blame to find the author
- configurable author tags associate TODO with persons in duty
- provides html report
Installation
Add this line to your application's Gemfile:
gem 'toadie', require: false
And then execute:
$ bundle
Usage
Just run toadie in the root of your application:
$ toadie
It will produce the html output into a folder called 'toadie', having a index.html file in there:
$ open toadie/index.html
Configuration
Configure team members
By default you will not need to configure any team members. Toadie will detect authors by using git and display TODOs accordingly.
However, to have multiple mail addresses or assignment tags for each team member create a .toadie.json
file.
You can specify team members like this:
{
"authors": [
{
"name": "Jean-Luc Picard",
"emails": ["jean-luc@tenforward.com", "picard@uss-enterprise.com"],
"nicknames": ["captain", "picard", "jean-luc"]
},
{
"name": "William T. Riker",
"emails": ["riker@uss-enterprise.com"],
"nicknames": ["riker", "will", "no1"]
}
]
}
The given nicknames will be used to find TODOs assigned to this person. For example Picard writes:
# TODO no1 meet me in my room
The TODO will be assigned to Riker.
Configure file extensions
By default toadie will try to find any TODOs in the given directory. Sometimes it might be helpful to reduce this search to files with a specific file ending. This can be done by setting the file_extensions
configuration option:
{
"file_extensions": ["rb", "js", "py"]
}
This example will only search for ruby, python and javascript files and skips e.g. log files.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Todos (haha)
- Make output directory/format configurable
- Do a little benchmarking and profiling
- Refine descriptions and texts
- Detect multiline TODOs
- Support more languages
- Link source to github