mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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>
This commit is contained in:
parent
1eb3133355
commit
aa98a97607
1 changed files with 2 additions and 1 deletions
|
@ -1857,7 +1857,8 @@ (define &failure (list 'failure))
|
|||
|
||||
(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)))
|
||||
|
|
Loading…
Reference in a new issue