headroom: License Header Manager

[ bsd3, library, program, utils ] [ Propose Tags ] [ Report a vulnerability ]

Would you like to have nice, up-to-date license/copyright headers in your source code files but hate to manage them by hand? Then Headroom is the right tool for you! Now you can define your license header as Mustache template, put all the variables (such as author's name, year, etc.) into the YAML config file and Headroom will take care to add such license headers to all your source code files.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.2.0, 0.2.2.1, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.0
Change log CHANGELOG.md
Dependencies aeson, base (>=4.7 && <5), data-default-class, either, file-embed, headroom, microlens, microlens-th, mustache, optparse-applicative, pcre-heavy, pcre-light, rio, template-haskell, time, yaml [details]
License BSD-3-Clause
Copyright Copyright (c) 2019-2020 Vaclav Svejcar
Author Vaclav Svejcar
Maintainer vaclav.svejcar@gmail.com
Category Utils
Home page https://github.com/vaclavsvejcar/headroom
Bug tracker https://github.com/vaclavsvejcar/headroom/issues
Source repo head: git clone https://github.com/vaclavsvejcar/headroom
Uploaded by xwinus at 2020-08-17T22:31:42Z
Distributions NixOS:0.4.3.0
Executables headroom
Downloads 3743 total (23 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-08-17 [all 1 reports]

Readme for headroom-0.3.1.0

[back to package description]

Would you like to have nice, up-to-date license/copyright headers in your source code files but hate to manage them manually? Then Headroom is the right tool for you. Define your license header as Mustache template, put any template variables into YAML configuarion file, and you're ready to go!

Headroom also offers much more than just adding, replacing or dropping license headers. It can also update years in copyrights for you, provides extended functionality for some source code file types, and much more!

asciicast

Main Features

  • License Header Management - Add, replace or drop license headers in your source code files with a single command. What's more, contrary to many similar tools, Headroom allows you to also replace/drop headers that weren't previously generated by Headroom, using smart header auto-detection.
  • Powerful Customization - Default configuration should cover most use-cases, but if you need to put empty lines before/after generated header, use different comment style of headers, you can customize the configuration to match exactly your needs.
  • Built-in OSS License Headers - If you want to use license header for one of the popular OSS licenses, then Headroom can generate them for you - no need to search for them on web.
  • Automatic Initialization for OSS Projects - Setting up external tools like Headroom for your project can be boring. Fortunately, Headroom can initialize itself for your project, by generating configuration file and template files.
  • Extended Functionality - Headroom supports extended functionality for selected types of source code files, such as extracting extra data from processed source code files.
  • Copyright Year Updater - Headroom is good not only for basic license header management, but also for further processing of generated headers. Do you need to update years in your copyrights? No problem!

Adopters

Here is the list of projects using Headroom. If you're using Headroom and aren't on the list, feel free to submit new issue or pull request.

Documentation