aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-09-10 15:34:58 -0500
committerEric Bavier <bavier@member.fsf.org>2015-09-14 18:03:33 -0500
commit50f5c46d0674eb68201c56bef17b2a41c7744404 (patch)
tree091d433edb7c567dbed389928d19d0ad3f955eb8 /doc/guix.texi
parent3b4d01035f214ac57ac1517b719e2b0f0f092411 (diff)
downloadpatches-50f5c46d0674eb68201c56bef17b2a41c7744404.tar
patches-50f5c46d0674eb68201c56bef17b2a41c7744404.tar.gz
guix: lint: Check for meaningful origin file names.
* guix/scripts/lint.scm (check-source-file-name): New procedure. (%checkers): Add 'source-file-name' checker. * tests/lint.scm ("source-file-name", "source-file-name: v prefix") ("source-file-name: valid", "source-file-name: bad checkout") ("source-file-name: good checkout"): New tests. * doc/guix.texi (Invoking guix lint): Mention file name check.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 51f7cb24b9..b70be01faa 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4219,8 +4219,11 @@ Identify inputs that should most likely be native inputs.
@item source
@itemx home-page
+@itemx source-file-name
Probe @code{home-page} and @code{source} URLs and report those that are
-invalid.
+invalid. Check that the source file name is meaningful, e.g. is not
+just a version number or ``git-checkout'', and should not have a
+@code{file-name} declared (@pxref{origin Reference}).
@item formatting
Warn about obvious source code formatting issues: trailing white space,