[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/28: lint: Speed up the formatting linter.
From: |
guix-commits |
Subject: |
01/28: lint: Speed up the formatting linter. |
Date: |
Sun, 5 Nov 2023 13:16:28 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit aa98a976079101318d53b412fef6c722bb4332c9
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Oct 28 15:16:08 2023 +0100
lint: Speed up the formatting linter.
By using go-to-location which caches the number of bytes to seek by to get
to
specific lines in a file.
* guix/lint.scm (report-formatting-issues): Use go-to-location.
Change-Id: I34e4d3acfbb1e14e026d2e7f712ba8d22b56c147
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
guix/lint.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix/lint.scm b/guix/lint.scm
index 7ccf52dec1..861e352b93 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1857,7 +1857,8 @@ them for PACKAGE."
(call-with-input-file file
(lambda (port)
- (let loop ((line-number 1)
+ (go-to-location port starting-line 0)
+ (let loop ((line-number starting-line)
(last-line #f)
(warnings '()))
(let ((line (read-line port)))
- branch master updated (1eb3133355 -> 286639c9af), guix-commits, 2023/11/05
- 03/28: gnu: Remove dunst.scm., guix-commits, 2023/11/05
- 07/28: gnu: glnemo2: Fix home-page., guix-commits, 2023/11/05
- 09/28: gnu: python-spherical-geometry: Simplify package., guix-commits, 2023/11/05
- 10/28: gnu: python-spherical-geometry: Enable tests., guix-commits, 2023/11/05
- 11/28: gnu: python-pynbody: Update to 1.4.1., guix-commits, 2023/11/05
- 12/28: gnu: python-cdflib: Update to 1.2.2., guix-commits, 2023/11/05
- 16/28: gnu: libxisf: Update to 0.2.10., guix-commits, 2023/11/05
- 01/28: lint: Speed up the formatting linter.,
guix-commits <=
- 02/28: gnu: dunst: Update to 1.9.2., guix-commits, 2023/11/05
- 04/28: doc: contributing: Replace reference to dunst.scm., guix-commits, 2023/11/05
- 05/28: gnu: sbcl-cl-webkit: Update to 3.5.10., guix-commits, 2023/11/05
- 06/28: gnu: font-google-noto: Update to 23.11.1., guix-commits, 2023/11/05
- 08/28: gnu: imppg: Use standard configure phase., guix-commits, 2023/11/05
- 13/28: gnu: python-astroalign: Update to 2.5.0., guix-commits, 2023/11/05
- 14/28: gnu: erfa: Update to 2.0.1., guix-commits, 2023/11/05
- 17/28: gnu: python-astropy: Update to 5.3.4., guix-commits, 2023/11/05
- 20/28: gnu: python-ephem: Update to 4.1.5., guix-commits, 2023/11/05
- 23/28: gnu: python-pytest-doctestplus: Update to 1.0.0., guix-commits, 2023/11/05