mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
lint: Export 'run-checkers'.
* guix/scripts/lint.scm (run-checkers): Export. Make 'checkers' argument optional.
This commit is contained in:
parent
5952111cc0
commit
e04741f160
1 changed files with 3 additions and 2 deletions
|
@ -62,6 +62,7 @@ (define-module (guix scripts lint)
|
|||
check-source-file-name
|
||||
check-license
|
||||
check-formatting
|
||||
run-checkers
|
||||
|
||||
%checkers
|
||||
lint-checker
|
||||
|
@ -709,8 +710,8 @@ (define %checkers
|
|||
(description "Look for formatting issues in the source")
|
||||
(check check-formatting))))
|
||||
|
||||
(define (run-checkers package checkers)
|
||||
;; Run the given CHECKERS on PACKAGE.
|
||||
(define* (run-checkers package #:optional (checkers %checkers))
|
||||
"Run the given CHECKERS on PACKAGE."
|
||||
(let ((tty? (isatty? (current-error-port)))
|
||||
(name (package-full-name package)))
|
||||
(for-each (lambda (checker)
|
||||
|
|
Loading…
Reference in a new issue