Skip to content

Kjoedicker/snitch-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


SnitchRs

A tool for tracking issues within source code. Inspired by


· Report Issue · Request Feature

About The Project

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

Usage:

  • snitch - Find and report untracked issues
  • peek - List existing issues
  • audit - Audit and remove completed issues

Snitch:

Snitch finds lines that match the following pattern: // TODO: some thing and does two things:

  1. Reports the line through the issues tracker
  2. 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

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

Audit

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"
}

About

A tool for tracking issues within source code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages