Skip to content

CrossLint 0.4.1

Choose a tag to compare

@github-actions github-actions released this 04 Dec 07:40
· 168 commits to trunk since this release

Fixed

  • A configuration or a plugin.kdl that ends inside a string, right after a backslash, stops CrossLint with exit status 2 and a message that names the file and says it isn't valid KDL, in --help and in every command. Before, CrossLint stopped on "a bug in CrossLint: TypeError". Any other error that the kdl gem raises while it reads a file is reported the same way.
  • A policy in plugin.kdl with two rule lines of the same rule and the same arguments, such as rule "piece-exists" piece="test" twice, stops CrossLint with exit status 2 and says on which line the first is. Before, crosslint check reported each violation of the rule twice, and one debt entry accepted both.
  • crosslint check --json gives the same debt in its summary as the number in the summary line's "accepted as debt", also when a rule reports one violation twice. Before, debt counted the repeated violation once and the summary line counted it twice.
  • When a helper exits without answering, the message gives the status the helper exited with, as in called helper NAME, which exited with status 3 before it answered. When the helper's output closed before the helper had exited, the message could give the status that CrossLint's ending of the helper gives, status 1 on Windows or signal 9 on macOS and Linux, where the helper had exited with 3. CrossLint waits up to 2 seconds for such a helper to exit before it ends it.