mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-08 14:10:38 +02:00
lint: Adjust file-name length test for out-of-tree file names.
* guix/scripts/lint.scm (check-patch-file-names): Adjust file-name-length calculation.
This commit is contained in:
@@ -618,7 +618,10 @@ patch could not be found."
|
||||
(max 99))
|
||||
(for-each (match-lambda
|
||||
((? string? patch)
|
||||
(when (> (+ margin (- (string-length patch) prefix))
|
||||
(when (> (+ margin (if (string-prefix? %distro-directory
|
||||
patch)
|
||||
(- (string-length patch) prefix)
|
||||
(string-length patch)))
|
||||
max)
|
||||
(emit-warning
|
||||
package
|
||||
|
||||
Reference in New Issue
Block a user