lint: Warn about underscores in package names.
authorXinglu Chen <public@yoctocell.xyz>
Thu, 15 Apr 2021 18:31:44 +0000 (20:31 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 16 Apr 2021 21:25:23 +0000 (23:25 +0200)
commitc68070e4eefd25118b368bd7af872f65ab739fc7
tree9b1d630da21e4c6623f862c2ab115d523d0a6bec
parent5b35c9adc899749a0bd96a0e6d2c3bbf88e38963
lint: Warn about underscores in package names.

As per section '16.4.2 Package Naming' in the manual, use hyphens
instead of underscores in package names.

* guix/lint.scm (check-name): Check whether the package name contains
underscores.
* tests/lint.scm ("name: use underscore in package name"): New test.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guix/lint.scm
tests/lint.scm