Repository navigation
Releases
Releases · setdef/CrossLint
CrossLint 0.4.5
Changed
- A configuration or a
plugin.kdlthat 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, asisn't valid KDL: Unexpected newline in single-line quoted string. A block left open, as inplugin "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.kdlwith a/*comment that is never closed stops CrossLint with exit status 2 and says the file isn't valid KDL, in--helpand 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.kdlthat 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
Fixed
- The Angular plugin finds a component's inputs and outputs in these forms as Angular's compiler does:
@Input(),@Output(),input(),model(), andoutput()imported under another name or through a namespace, asng.input(); a signal input in parentheses or withas; 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.tsfile. It doesn't count a property with a computed name, or one that calls a function or decorator of the project namedinputorInput. 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
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 thePATH.
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 setXDG_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
Added
- On Ctrl-C or SIGTERM, CrossLint says at once on standard error that it is stopping, as
crosslint: stopping on SIGINTorcrosslint: stopping on SIGTERM, with--quietand--silenttoo, 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 --versionprints three lines, for a bug report: the version, with the commit the archive was built from as Semantic Versioning build metadata, as incrosslint 0.5.0+e83c516; the platform the archive was built for, as inbuilt for linux-x86_64; and the Ruby the archive carries, asruby --versionprints it. A script that reads the version reads the first line. Before, it printed onlycrosslintand 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
Fixed
- A configuration or a
plugin.kdlthat 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--helpand 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.kdlwith tworulelines of the same rule and the same arguments, such asrule "piece-exists" piece="test"twice, stops CrossLint with exit status 2 and says on which line the first is. Before,crosslint checkreported each violation of the rule twice, and one debt entry accepted both. crosslint check --jsongives the samedebtin itssummaryas the number in the summary line's "accepted as debt", also when a rule reports one violation twice. Before,debtcounted 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 1on Windows orsignal 9on 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
v0.3.0
v0.2.0
v0.1.0
Full Changelog: https://github.com/setdef/CrossLint/commits/v0.1.0