Code Monkey home page Code Monkey logo

chk-chglog's Introduction

chk-chglog

Build Status

Do you build RPMs ?

Do you have the good sense to include a Changelog ?

Are you human ?

Well, you've probably screwed up the Changelog at some point then. Shame it makes it all the way to the build system before something is nice enough to let you know there's a problem...

This is a teeeeeny tiny little Rust experiment to perform a lickity-split check of the dates and versions listed in your Changelog file to ensure everything is in the correct order and format.

  $ chk-chglog <filename>

I recommend placing it into your pre-commit hook to stop silly mistakes from ever making it in. It's simple and swift, you won't know it's there.

Currently it only works on Changelogs that are formatted as per the Fedora RPM specs, there's an example in the Repo:

* Tue Oct 12 2016 - Jo Diggidy <[email protected]> 0.1.3
- Twerped some wups
- Targled the Doogle-Spinz

If anyone is interested enough to raise an issue, I should be able to make it work with other structures.

Maybe someone else might find it useful, who knows!

Rust-y bits...

I don't really like the panic! and other error handling bits I have in there. But thus far I haven't found a way I'm comfortable with. The experiments continue.. and...

Yes dibblego, I'm sitting with my Strings to the door. I heard you, Dr Yueh, and Gurney coming down the hall.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.