summary refs log tree commit diff
path: root/Makefile.am
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-06-16 13:52:13 +0100
committerChristopher Baines <mail@cbaines.net>2019-07-15 22:32:19 +0100
commit57238532f44f99d4770508ba11e105299c96590b (patch)
tree6d0ed24f3e1d080ef0db968283019d3e523a183a /Makefile.am
parent50fc2384feb3bb2677d074f8f0deb5ae3c56b4d8 (diff)
downloadguix-57238532f44f99d4770508ba11e105299c96590b.tar.gz
scripts: lint: Separate the message warning text and data.
So that translations can be handled more flexibly, rather than having to
translate the message text within the checker.

* guix/scripts/lint.scm (lint-warning-message-text,
lint-warning-message-data): New procedures.
(lint-warning-message): Remove record field accessor, replace with procedure
that handles the lint warning data and translating the message.
(make-warning): Rename to %make-warning.
(make-warning): New macro.
(emit-warnings): Handle the message-text and message-data fields.
(check-description-style): Adjust for changes to make-warning.
[check-trademarks, check-end-of-sentence-space): Adjust for changes to
make-warning.
(check-inputs-should-be-native, check-inputs-should-not-be-an-input-at-all,
check-synopsis-style, validate-uri, check-home-page, check-patch-file-names,
check-gnu-synopsis+description, check-mirror-url, check-github-url,
check-derivation, check-vulnerabilities, check-for-updates,
report-tabulations, report-trailing-white-space, report-long-line,
report-lone-parentheses): Adjust for changes to make-warning.
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions