CTAN Comprehensive TeX Archive Network

CTAN Update: hook-pre-commit-pkg

Date: June 6, 2016 6:22:10 PM CEST
Maïeul Rouquette submitted an update to the hook-pre-commit-pkg package. Version: 1.1.2 License: gpl3 Summary description: Pre-commit git hook for LaTeX package developpers Announcement text:
This fixes again (and it can be hoped, definitively) a bug in the order of line numbers in the output result.
The package's Catalogue entry can be viewed at http://www.ctan.org/pkg/hook-pre-commit-pkg The package's files themselves can be inspected at http://mirror.ctan.org/support/hook-pre-commit-pkg/ We are supported by the TeX users groups. Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese

hook-pre-commit-pkg – Pre-commit git hook for package developpers

This package provides a pre-commit git hook to check basic syntax for the use of package developers.

It is installed by copying it into the .git/.hooks file.

It then checks the following file types: .sty, .dtx, .bbx, .cbx, and .lbx.

List of performed checks:

  • Each line must be terminated by a %, without a space before it. Empty lines are allowed, but not lines with nothing but spaces in them.
  • \begin{macro} and \end{macro} must be paired.
  • \begin{macrocode} and \end{macrocode} must be paired.
  • \begin{macro} must have a second argument.
  • One space must be printed between % and \begin{macro} or \end{macro}. % must be the first character in the line.
  • Four spaces must be printed between % and \begin{macrocode} or \end{macrocode}.
  • \cs argument must not start with a backslash.

Packagehook-pre-commit-pkg
Version1.1.2
Copyright2014–2016 Maïeul Rouquette
MaintainerMaïeul Rouquette

Announcements

more

Guest Book Sitemap Contact Contact Author