From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 0/2] Add "guix lint". Date: Tue, 22 Jul 2014 01:51:56 +0200 Message-ID: <1405986718-26208-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9NVs-0007RM-TZ for guix-devel@gnu.org; Mon, 21 Jul 2014 20:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9NVl-0005Bx-R1 for guix-devel@gnu.org; Mon, 21 Jul 2014 20:01:00 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:34672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9NVl-0005Bn-LM for guix-devel@gnu.org; Mon, 21 Jul 2014 20:00:53 -0400 Received: by mail-wg0-f46.google.com with SMTP id m15so7240967wgh.5 for ; Mon, 21 Jul 2014 17:00:52 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hello, The first patch adds the "guix lint" command, that can be used to run a few "checkers" on a given package, or on all defined packages. It can currently be used to: - warn users about input packages that should be native inputs (such as pkg-config); - find stylistic issues in patch names; - find stylistic issues in the synopses (trailing period, for instance). Those checkers are not always right, but I think they might be useful to people getting started with Guix packaging, as some of these issues have been raised multiple times during patch reviews. Other checkers may be added in the future, depending on our needs. There are currently no tests; I'm willing to write them ASAP but wanted to get some feedback first, especially because I'm not an experienced Guile programmer. Cyril. --- Cyril Roelandt (2): scripts: add guix lint gnu/packages: Remove trailing periods in some synopses. Makefile.am | 1 + gnu/packages/fontutils.scm | 4 +- gnu/packages/gnome.scm | 2 +- gnu/packages/lua.scm | 2 +- gnu/packages/pdf.scm | 2 +- gnu/packages/python.scm | 4 +- gnu/packages/sdl.scm | 2 +- guix/scripts/lint.scm | 188 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 197 insertions(+), 8 deletions(-) create mode 100644 guix/scripts/lint.scm -- 1.8.4.rc3