Repository navigation
expltools 2026-11-23
explcheck v0.25.0
New features
This version of explcheck has implemented the following new features:
-
Add more support for flow analysis. (#215, #236, #239)
This adds support for the following issues from the document titled Warnings and errors for the expl3 analysis tool:
- E508 (Unexpandable or restricted-expandable boolean expression)
- W512 (Defined an unexpandable function as unprotected)
Fixes
This version of explcheck has fixed the following problems:
-
Report issues E420 (Locally setting a global variable) and E421 (Globally setting a local variable) in top-level code. (reported by @jasperhabicht and @cfr42 in #232, fixed in #235)
Previously, these issues were not reported in top-level code, since the semantics of local and global assignments are equivalent there. However, since l3debug explicitly rejects inconsistent local/global assignments in top-level code, explcheck should do the same.
-
Consider standalone boolean variables and constants such as
\c_true_boolexpandable within boolean expressions. (#236)Previously, these caused enclosing segments and functions to be considered unexpandable for issues E428 (Unexpandable or restricted-expandable boolean expression) and W429 (Defined an unexpandable function as unprotected). While correct for top-level material, this was incorrect for boolean expressions. Expandability is now estimated separately for different expansion contexts, and the issues use the appropriate estimates.
Architecture
This version of explcheck has made the following architectural changes:
-
Add the module
explcheck-expandability.luafor tracking expandability estimates. (#236) -
Add
outputsto processing steps, removecleanup()substeps. (#237..#239)Previously, transient results for passing data around processing substeps within a step were removed within
cleanup()substeps. After this change, steps declare persistent results withinoutputsand all other transient results are automatically removed in the methodprocess_files()fromexplcheck-utils.lua. This prevents unintended memory leaks between steps.
Documentation
This version of explcheck has made the following improvements to the documentation:
-
Make documentation PDF/UA-2-compliant. (#233, #234)
This makes the documentation use
\DocumentMetadatato produce PDF/UA-2-compilant output. For gray issues from the document titled Warnings and errors for the expl3 analysis tool, we add an explicit textual description "Not yet implemented" next to the section headings.
Continuous integration
This version of explcheck has made the following changes to our continuous integration (CI):