From 40a7d4e58ba05f39bf11edab68de6d3ae9c43306 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 19 Aug 2015 11:22:07 +0200 Subject: lint: Add 'formatting' checker. * guix/scripts/lint.scm (report-tabulations, report-trailing-white-space, report-long-line, report-formatting-issues, check-formatting): New procedures. (%formatting-reporters): New variable. (%checkers): Add 'formatting' checker. * tests/lint.scm ("formatting: tabulation", "formatting: trailing white space", "formatting: long line", "formatting: alright"): New tests. * doc/guix.texi (Invoking guix lint): Mention the 'formatting' checker. --- doc/guix.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index a20bca677d..2b61574c84 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4117,6 +4117,10 @@ Identify inputs that should most likely be native inputs. @itemx home-page Probe @code{home-page} and @code{source} URLs and report those that are invalid. + +@item formatting +Warn about obvious source code formatting issues: trailing white space, +use of tabulations, etc. @end table The general syntax is: -- cgit v1.2.3