lint: Improve check for synopses starting with package name.
commit17854ef91dd6b8e8956ef38bd7a7db59fb43f114
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Nov 2014 13:09:19 +0000 (7 14:09 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Nov 2014 16:52:11 +0000 (7 17:52 +0100)
tree9651a321f9d66153e8a55746e951765e8ba68f62
parent72b030c0495837191ea360e71fd6c786ec063edc
lint: Improve check for synopses starting with package name.

* guix/scripts/lint.scm (package-name-regexp): New procedure.
  (check-synopsis-style)[check-start-with-package-name]: Use it instead
  of 'string-prefix-ci?'.
* tests/lint.scm ("synopsis: start with package name prefix"): New test.
guix/scripts/lint.scm
tests/lint.scm