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
