<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/tests/lint.scm, branch kernel-updates</title>
<subtitle>Transactional package manager, declarative GNU/Linux distribution, reproducible deployment tool, and more! https://guix.gnu.org</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/'/>
<entry>
<title>lint: Fix regressions in tests.</title>
<updated>2025-11-14T07:42:16+00:00</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim@guixotic.coop</email>
</author>
<published>2025-11-14T07:39:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=4932444387a3ea656e3d64829b3da174c98006ea'/>
<id>4932444387a3ea656e3d64829b3da174c98006ea</id>
<content type='text'>
This fixes a regression introduced with commit 7752580a33 ("guix: lint: Check
end of sentences for a period.").

* guix/lint.scm (check-description-style): Do not emit warning when the
description is empty or ends with trailing whitespace.
* tests/lint.scm ("description: invalid Texinfo markup")
("description: may start with texinfo markup")
("description: may not contain trademark signs: ™")
("description: may not contain trademark signs: ®"): Add period.

Fixes: #4222
Change-Id: Ib10bcf324cb55b39a88c0c67875a40a59c1d4c18
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a regression introduced with commit 7752580a33 ("guix: lint: Check
end of sentences for a period.").

* guix/lint.scm (check-description-style): Do not emit warning when the
description is empty or ends with trailing whitespace.
* tests/lint.scm ("description: invalid Texinfo markup")
("description: may start with texinfo markup")
("description: may not contain trademark signs: ™")
("description: may not contain trademark signs: ®"): Add period.

Fixes: #4222
Change-Id: Ib10bcf324cb55b39a88c0c67875a40a59c1d4c18
</pre>
</div>
</content>
</entry>
<entry>
<title>guix: lint: Check end of sentences for a period.</title>
<updated>2025-11-05T16:25:01+00:00</updated>
<author>
<name>jgart</name>
<email>jgart@dismail.de</email>
</author>
<published>2025-11-01T18:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=7752580a33f416119d5ee2e9c553c8578a8ca23f'/>
<id>7752580a33f416119d5ee2e9c553c8578a8ca23f</id>
<content type='text'>
* guix/lint.scm (check-description-style): Check that sentences end with a period.

Change-Id: Ic10161f8093351dce440e19802a71f03bc849638
Signed-off-by: jgart &lt;jgart@dismail.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm (check-description-style): Check that sentences end with a period.

Change-Id: Ic10161f8093351dce440e19802a71f03bc849638
Signed-off-by: jgart &lt;jgart@dismail.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>guix: lint: Check for misplaced argument flags.</title>
<updated>2025-07-28T07:34:36+00:00</updated>
<author>
<name>Efraim Flashner</name>
<email>efraim@flashner.co.il</email>
</author>
<published>2025-07-09T06:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=54717bb5b3c06c9667efafb9410cc5122f36a25f'/>
<id>54717bb5b3c06c9667efafb9410cc5122f36a25f</id>
<content type='text'>
* guix/lint.scm (check-misplaced-flags): New procedure.
(%local-checkers): Register new lint-checker.
* doc/guix.texi (Invoking guix lint): Add entry for misplaced-flags.
* tests/lint.scm (misplaced-flags: make-flag is incorrect,
misplaced-flags: configure-flag is incorrect, misplaced-flags: cargo
feature flags, misplaced-flags: flags without g-exp is incorrect,
misplaced-flags: build-type set correctly): New tests.

Change-Id: Ia8abbe787e26bffc65ee5c763326c7e271c189a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm (check-misplaced-flags): New procedure.
(%local-checkers): Register new lint-checker.
* doc/guix.texi (Invoking guix lint): Add entry for misplaced-flags.
* tests/lint.scm (misplaced-flags: make-flag is incorrect,
misplaced-flags: configure-flag is incorrect, misplaced-flags: cargo
feature flags, misplaced-flags: flags without g-exp is incorrect,
misplaced-flags: build-type set correctly): New tests.

Change-Id: Ia8abbe787e26bffc65ee5c763326c7e271c189a4
</pre>
</div>
</content>
</entry>
<entry>
<title>guix: lint: Find more hardcoded compiler targets.</title>
<updated>2025-07-17T17:29:48+00:00</updated>
<author>
<name>Efraim Flashner</name>
<email>efraim@flashner.co.il</email>
</author>
<published>2025-07-09T06:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=945c6ff9f222efed460ce8ab31fb6911f89436c9'/>
<id>945c6ff9f222efed460ce8ab31fb6911f89436c9</id>
<content type='text'>
* guix/lint.scm (check-compiler-for-target): Adjust the logic when
checking the make-flags to actually determine if it is a gexp or not.
* tests/lint.scm (compiler-for-target: looks through G-expressions): Fix
test.

Change-Id: I0040cf29c8197d394e63ac90b2fba7ca5bcb5861
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm (check-compiler-for-target): Adjust the logic when
checking the make-flags to actually determine if it is a gexp or not.
* tests/lint.scm (compiler-for-target: looks through G-expressions): Fix
test.

Change-Id: I0040cf29c8197d394e63ac90b2fba7ca5bcb5861
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests for Python.</title>
<updated>2025-01-24T22:36:04+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2025-01-24T14:45:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=3e626bb39d2a073d715ea89e91aa5981712d33bb'/>
<id>3e626bb39d2a073d715ea89e91aa5981712d33bb</id>
<content type='text'>
This is a followup to bea2914b3d1b06cc8cc1d9cff88c0dd7d8ebb1be, which
removed ‘python-setuptools’ from the list of “unauthorized” inputs.

* tests/lint.scm ("inputs: python-pip should not be an input at all (input)")
("inputs: python-pip should not be an input at all (native-input)")
("inputs: python-pip should not be an input at all (propagated-input)"):
New tests, with s/python-setuptools/python-pip/.

Change-Id: Ic575825da5c64052d3d573b37b458bd61547bae1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a followup to bea2914b3d1b06cc8cc1d9cff88c0dd7d8ebb1be, which
removed ‘python-setuptools’ from the list of “unauthorized” inputs.

* tests/lint.scm ("inputs: python-pip should not be an input at all (input)")
("inputs: python-pip should not be an input at all (native-input)")
("inputs: python-pip should not be an input at all (propagated-input)"):
New tests, with s/python-setuptools/python-pip/.

Change-Id: Ic575825da5c64052d3d573b37b458bd61547bae1
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: More abbreviations.</title>
<updated>2024-12-12T11:52:07+00:00</updated>
<author>
<name>Gabriel Wicki</name>
<email>gabriel@erlikon.ch</email>
</author>
<published>2024-12-02T22:40:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=287be006306d7febad654c23199bcd3ebf8aae85'/>
<id>287be006306d7febad654c23199bcd3ebf8aae85</id>
<content type='text'>
* guix/lint.scm: Allow more common abbreviations in double-space-after
sentence check.
* tests/lint.scm: Add tests.

Change-Id: I0eedf73e5fcd0a8c67b3ae3dfa979a57fe0f6253
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm: Allow more common abbreviations in double-space-after
sentence check.
* tests/lint.scm: Add tests.

Change-Id: I0eedf73e5fcd0a8c67b3ae3dfa979a57fe0f6253
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Ignore initials from double space check.</title>
<updated>2024-12-12T11:52:07+00:00</updated>
<author>
<name>Gabriel Wicki</name>
<email>gabriel@erlikon.ch</email>
</author>
<published>2024-12-02T22:39:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=94476296726b3d74d44b5c76120f62fd3f75ab67'/>
<id>94476296726b3d74d44b5c76120f62fd3f75ab67</id>
<content type='text'>
Prevent false positives in initials as the are commonly used in names, e.g.
Margaret E. Hamilton - which obviously do not end sentences.  Check whether a
period character `.' is preceded by at least two characters.  This should save
us from false positives when linting.

* guix/lint.scm(check-description-style)[check-end-of-sentence-space] Add
condition.
* tests/lint.scm: Add test case.

Change-Id: I42a1365aaaed2afc7308b88ebd4b0720ad362761
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prevent false positives in initials as the are commonly used in names, e.g.
Margaret E. Hamilton - which obviously do not end sentences.  Check whether a
period character `.' is preceded by at least two characters.  This should save
us from false positives when linting.

* guix/lint.scm(check-description-style)[check-end-of-sentence-space] Add
condition.
* tests/lint.scm: Add test case.

Change-Id: I42a1365aaaed2afc7308b88ebd4b0720ad362761
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Prevent false positives in description typo check.</title>
<updated>2024-12-12T11:52:07+00:00</updated>
<author>
<name>Gabriel Wicki</name>
<email>gabriel@erlikon.ch</email>
</author>
<published>2024-12-02T22:38:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=27b4c319c06d1bc1dd8a79d225c1e0d90c9b667d'/>
<id>27b4c319c06d1bc1dd8a79d225c1e0d90c9b667d</id>
<content type='text'>
* guix/lint.scm(check-description-style)[check-description-typo]: Add spaces
to match strings to prevent matching false positives, like "allows tokens" or
"prevents torpedoes".
* tests/lint.scm: Add test.

Change-Id: Ifc2ec6167a590b9d2e742dd86fecd798c4bfaa24
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm(check-description-style)[check-description-typo]: Add spaces
to match strings to prevent matching false positives, like "allows tokens" or
"prevents torpedoes".
* tests/lint.scm: Add test.

Change-Id: Ifc2ec6167a590b9d2e742dd86fecd798c4bfaa24
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Allow texinfo markup at beginning of synopsis.</title>
<updated>2024-12-12T11:52:07+00:00</updated>
<author>
<name>Gabriel Wicki</name>
<email>gabriel@erlikon.ch</email>
</author>
<published>2024-12-02T22:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=687f4e22e666aa06dfac7344ff652fb51e47a4b0'/>
<id>687f4e22e666aa06dfac7344ff652fb51e47a4b0</id>
<content type='text'>
* guix/lint.scm(check-synopsis-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I2509b3a4e7e51c6a274697ceb5f776c22e27c5f9
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm(check-synopsis-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I2509b3a4e7e51c6a274697ceb5f776c22e27c5f9
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lint: Allow texinfo markup at beginning of description.</title>
<updated>2024-12-12T11:52:07+00:00</updated>
<author>
<name>Gabriel Wicki</name>
<email>gabriel@erlikon.ch</email>
</author>
<published>2024-12-02T22:36:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=f28c32089d14303e2dd261009600478bc4ae0463'/>
<id>f28c32089d14303e2dd261009600478bc4ae0463</id>
<content type='text'>
* guix/lint.scm(starts-with-texinfo-markup?): New function.
(check-description-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I674988882265d9e2041d48dba0f9627cd68bf292
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/lint.scm(starts-with-texinfo-markup?): New function.
(check-description-style)[check-proper-start]: Add condition.
* tests/lint.scm: Add test case.

Change-Id: I674988882265d9e2041d48dba0f9627cd68bf292
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
