A tool for tracking issues within source code. Inspired by
·
Report Issue
·
Request Feature
It's common practice to leave a quick // TODO: come back and fix this or add that
type line when working through a build.
SnitchRs
provides a way to find and track these lines
snitch
- Find and report untracked issuespeek
- List existing issuesaudit
- Audit and remove completed issues
Snitch finds lines that match the following pattern: // TODO: some thing
and does two things:
- Reports the line through the issues tracker
- Ties a issue number to the line:
// TODO(#1): some thing
Example:
Before:
function returnUndefined() {
return;
}
// TODO: return something
function returnSomething() {
return "something"
}
After:
function returnUndefined() {
return;
}
// TODO(#1): return something
function returnSomething() {
return "something"
}
Peek grabs the first 10 issues in reported in the issue tracker. In this case github.
+-----+-----------------------------------------------------+---------------------+
| Id | Url | Title |
+=================================================================================+
| 100 | https://github.com/Kjoedicker/snitch-lab/issues/100 | Do the thing |
|-----+-----------------------------------------------------+---------------------|
| 101 | https://github.com/Kjoedicker/snitch-lab/issues/101 | Fix the thing |
|-----+-----------------------------------------------------+---------------------|
| 102 | https://github.com/Kjoedicker/snitch-lab/issues/102 | Implement the thing |
|-----+-----------------------------------------------------+---------------------|
| 103 | https://github.com/Kjoedicker/snitch-lab/issues/103 | Refactor the thing |
|-----+-----------------------------------------------------+---------------------|
| 104 | https://github.com/Kjoedicker/snitch-lab/issues/104 | Rinse and repeat |
+-----+-----------------------------------------------------+---------------------+
NOTE: for projects with more than 10 issues this is limiting. There is an active issue to add some form of pagination: #126
Runs through the project and validates if a issue line is still in issue, removing the issue if needed.
For example, there is a todo that is lingering around that has been closed out in github
:
Before:
function returnUndefined() {
return;
}
// TODO(#1): return something
function returnSomething() {
return "something"
}
After:
function returnUndefined() {
return;
}
function returnSomething() {
return "something"
}