Skip to content

Releases

CrossLint 0.4.5

Choose a tag to compare

@github-actions github-actions released this 05 Dec 00:48

Changed

  • A configuration or a plugin.kdl that isn't valid KDL stops CrossLint with a message in new words, the first fault that the KDL reader finds, at the line where that reader places it, as isn't valid KDL: Unexpected newline in single-line quoted string. A block left open, as in plugin "angular" { with no }, is reported at the line of its {. Before, the message had the words of the kdl gem, and named the line where the file ended.

Fixed

  • A configuration or a plugin.kdl with a /* comment that is never closed stops CrossLint with exit status 2 and says the file isn't valid KDL, in --help and in every command. Before, CrossLint never finished, and Ctrl-C was the only way to stop it. The message names line 1, wherever the comment starts.
  • A configuration or a plugin.kdl that ends inside a string, right after a backslash, is reported at the line of the string. Before, the message named the file and no line.
  • A space or a comment after a closing }, as in } // note, which KDL 2 allows, reads as KDL 2 says. Before, CrossLint said the file isn't valid KDL, at the line of the brace.

CrossLint 0.4.4

Choose a tag to compare

@github-actions github-actions released this 04 Dec 13:38

Fixed

  • The Angular plugin finds a component's inputs and outputs in these forms as Angular's compiler does: @Input(), @Output(), input(), model(), and output() imported under another name or through a namespace, as ng.input(); a signal input in parentheses or with as; a property with a quoted name, by that name; an alias that @Input() or @Output() takes from a constant; and the inputs and outputs of a base class from a package, from its .d.ts file. It doesn't count a property with a computed name, or one that calls a function or decorator of the project named input or Input. Before, it went by the names in the source text alone, so it missed the first forms, reported the alias from a constant by the property's name, and counted the last two.

CrossLint 0.4.3

Choose a tag to compare

@github-actions github-actions released this 04 Dec 13:02

Changed

  • The Angular plugin supports each Node.js release line that Node.js maintains, the oldest of them Node 22, and its package declares node >=22. Before, the documentation said only that the plugin needs Node on the PATH.

Fixed

  • On Windows, when CrossLint finds no home folder to keep its cache in, the message tells you to set LOCALAPPDATA, the variable CrossLint reads there. Before, it told you to set XDG_CACHE_HOME, which CrossLint doesn't read on Windows.
  • Ctrl-C or SIGTERM during crosslint init --from-ng-nudge, or a debt file that can't be moved, such as one another program has open on Windows, leaves the project as it was, or moved whole when the debt file had already moved. Before, CrossLint could stop with its configuration written and ng-nudge's debt file where it was, or, on Windows, with the debt file in both places.

CrossLint 0.4.2

Choose a tag to compare

@github-actions github-actions released this 04 Dec 10:43

Added

  • On Ctrl-C or SIGTERM, CrossLint says at once on standard error that it is stopping, as crosslint: stopping on SIGINT or crosslint: stopping on SIGTERM, with --quiet and --silent too, before it ends its helpers.

Changed

  • On macOS and Linux, Ctrl-C ends CrossLint by SIGINT once it has ended its helpers, so a shell script that runs it stops too. Before, CrossLint exited with status 130, which a shell shows the same, but which told the script that CrossLint had handled the interrupt itself, so the script went on to its next command. On Windows, CrossLint exits with 130 on Ctrl-C, as before.
  • crosslint --version prints three lines, for a bug report: the version, with the commit the archive was built from as Semantic Versioning build metadata, as in crosslint 0.5.0+e83c516; the platform the archive was built for, as in built for linux-x86_64; and the Ruby the archive carries, as ruby --version prints it. A script that reads the version reads the first line. Before, it printed only crosslint and the version. Run from a clone of the repository, the first line has no commit, and the second says that no build stamped the copy.

Fixed

  • On SIGTERM, CrossLint ends every helper and everything it started at once, as it does on Ctrl-C. Before, it gave each helper up to 2 seconds to exit. Ctrl-C or SIGTERM while a plugin's helper declares the plugin's artifacts ends that helper at once too; before, CrossLint gave it up to 2 seconds to exit.

CrossLint 0.4.1

Choose a tag to compare

@github-actions github-actions released this 04 Dec 07:40

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.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 18:36

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 05:10

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 02:59

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 00:08