Skip to content

Use this image if you have ever deployed code to production without doing all of your to-dos

Notifications You must be signed in to change notification settings

johnsyweb/glyptodont-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Glyptodont

Use this image if you have ever deployed code to production without doing all of your to-dos.

Introduction

All of the glyptodonts have fossilised. This is a tool to ensure that your TODOs are eradicated before this can happen to them.

If you've ever been caught out because a TODO in production code has not been done, this image is for you!

Development status

This was written after I was bitten by a TODO not being done at work. I expect to build it into our CI pipeline and see what it catches.

Getting started

docker pull johnsyweb/glyptodont:latest

And then execute:

docker run -v${PWD}:/src -it johnsyweb/glyptodont:latest -d /src

Usage

Mount your source directory at /src, as above. The following command-line options are available to you.

    -d, --directory DIRECTORY        Git repository to search for TODOs (default '.')
    -t, --threshold TODOS            Maximum number of TODOs to allow (default 10)
    -m, --max-age DAYS               Maximum number of days to allow TODOs to stay (default 14)
        --version                    Show version

Buildkite

Here is one way to run glyptodont as a step in your Buildkite pipeline.

  - name: ":scroll: Glyptodont - Getting TODOs Done!"
    agents: *docker-agents
    plugins:
      - docker#v3.8.0:
          image: "johnsyweb/glyptodont:latest"
          command: ["-d", "/src"]
          mount-checkout: false
          volumes:
            - .:/src
          workdir: /tmp

Configuration

glyptodont looks for an optional .glyptodont.yaml configuration file in the root of the directory being scanned, which contains an ignore list of file_name:line_number pairs to ignore when researching TODOs. This may be useful if you have, for example, Spanish language text in your project.

Exempli gratiā

---
ignore:
  - lib/glyptodont/checkers/counter.rb:28
  - lib/glyptodont/todo_researcher.rb:34

Requirements

  • Docker

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/johnsyweb/glyptodont-docker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License license

The image is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Glyptodont project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Use this image if you have ever deployed code to production without doing all of your to-dos

Resources

Stars

Watchers

Forks

Packages

No packages published