Skip to content

1.2.0

Choose a tag to compare

@zaiev zaiev released this 06 Nov 15:34

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, Result or Filename is applied by plain --fix only where that name is the standard library's; elsewhere it needs --unsafe.
  • wildcard-over-owned-variant, open-of-ordinary-module, untyped-ignore and untyped-wildcard-binding are nursery: naming one still runs it, and --select restriction no longer does.
  • litany check --root DIR enters DIR, so paths print relative to it.

New

Fixed

--fix

  • It keeps a file's permission bits, whatever the umask.
  • It parses an .mli as an interface, where a module or class declaration 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-whitespace no longer fires inside a string, where its fix changed the string.

Rules

  • wildcard-over-owned-variant no longer fires on another library's variant through a module alias, or on an extensible variant.
  • open-of-ordinary-module reads constructors in patterns, fields and submodule members, and tells a name written out in full from one taken through the open.
  • untyped-ignore and untyped-wildcard-binding fire on (e : _) and (e : 'a); untyped-ignore accepts a coercion.
  • restricted-export-name reads every variable a root pattern binds.
  • suspicious-str-formatter promises no fix, as it never emitted one.

Running

  • litany --version prints the release's version, where every release printed dev.
  • --root works 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 --save keeps one entry for a source with two artifact copies, and --dump prints intf-source.
  • An executable or library named only by public_name no longer withholds the project rules.
  • With GITHUB_ACTIONS set, --explain-withheld keeps the text page.