Skip to content

This tool checks for TODOs and matches them to JIRA cards

Notifications You must be signed in to change notification settings

Joe-Edwards/todo-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-checker

Build Status

This tool checks for TODOs and matches them to JIRA cards.

Based entirely on @RichardBradley's various todo-checkers from various different Softwire projects.

Workflow

This tool is designed to support a workflow where any TODO in the codebase is attached to an open Jira ticket. Tickets with open TODOs can't be closed, and TODOs without cards can't be added.

This is one way to ensure that all TODOs get done or are removed in a timely fashion, avoiding the problem of a codebase littered with many old and forgotten TODO comments.

Setting up a Jenkins or other regular CI build that runs this tool will give your team the freedom to safely use TODOs to mark pending work directly in the codebase, safe in the knowledge those TODOs will never get forgotten.

Funtionality

Running his tool will:

  1. Update the JIRA cards with a comment listing any code TODOs which are pending against that card.
  2. Exit with a failure status if there are any code TODOs against cards which are closed or in review, or TODOs with no card at all.

How to use

To run execute:

  sbt run \
    --src ../ppc-manager \
    --jira-url https://jira.softwire.com/jira/
    --jira-project AAA \
    --github-url https://github.com/softwire/todo-checker \
    --jira-username Jenkins \
    --jira-password *****

This will find pieces of code that look like

// TODO: AAA-47 update this code to handle bars as well as foos

And link them to the jira ticket AAA-47.

CAUTION: you should not run this project unless you really know what you are doing; it will make lots of changes to your live JIRA.

About

This tool checks for TODOs and matches them to JIRA cards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.2%
  • Scala 0.8%