Repository navigation
1.2.0
A release that makes --fix safer, makes litany refuse rather than crash, holds the newer rules to what their docs say, and prints its real version.
Upgrading
- A fix that writes
&&,Option,ResultorFilenameis applied by plain--fixonly where that name is the standard library's; elsewhere it needs--unsafe. wildcard-over-owned-variant,open-of-ordinary-module,untyped-ignoreanduntyped-wildcard-bindingarenursery: naming one still runs it, and--select restrictionno longer does.litany check --root DIRenters DIR, so paths print relative to it.
New
--unsafewithout--fix, and--list-unitswith--fix, warn that they do nothing.- The documentation is a site, https://hyphatech.github.io/litany/.
Fixed
--fix
- It keeps a file's permission bits, whatever the umask.
- It parses an
.mlias an interface, where amoduleorclassdeclaration was refused, and prints none of the compiler's warnings. - A shadowed name no longer changes what a program computes, and a constructor chosen by its expected type, or a bracket in a character literal or comment, no longer breaks the build.
trailing-whitespaceno longer fires inside a string, where its fix changed the string.
Rules
wildcard-over-owned-variantno longer fires on another library's variant through a module alias, or on an extensible variant.open-of-ordinary-modulereads constructors in patterns, fields and submodule members, and tells a name written out in full from one taken through the open.untyped-ignoreanduntyped-wildcard-bindingfire on(e : _)and(e : 'a);untyped-ignoreaccepts a coercion.restricted-export-namereads every variable a root pattern binds.suspicious-str-formatterpromises no fix, as it never emitted one.
Running
litany --versionprints the release's version, where every release printeddev.--rootworks from any directory, and an(only ...)or(except ...)scope no longer fails the rule under an absolute root.- A refused pipe or fork continues without workers, and a dune that can't start is a refusal, where both were internal errors.
litany units --savekeeps one entry for a source with two artifact copies, and--dumpprintsintf-source.- An executable or library named only by
public_nameno longer withholds the project rules. - With
GITHUB_ACTIONSset,--explain-withheldkeeps the text page.