lint: Define some procedures for analysing code in phases.
authorMaxime Devos <maximedevos@telenet.be>
Thu, 1 Jul 2021 10:51:14 +0000 (12:51 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Wed, 7 Jul 2021 08:00:52 +0000 (10:00 +0200)
commita8e4c158f9b7cc0adf010313b0f974e1a1aa63a7
treecdb12da5af67dd64bc51a01e967263f6c14d0e90
parent8333673c4c33d269139ded0d9f67d99f6369f736
lint: Define some procedures for analysing code in phases.

* guix/lint.scm
  (check-optional-tests): Extract logic for extracting the phases from a
  package to ...
  (find-phase-deltas): ... here, and ...
  (report-bogus-phase-deltas): ... here.
  (check-optional-tests)[check-check-procedure]: Extract code for extracting
  the procedure body to ...
  (find-procedure-body) ... here.
  (find-phase-procedure): New procedure.
  (report-bogus-phase-procedure): New procedure.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
guix/lint.scm