Releases: sbdchd/squawk
Fix for calling github API: add a user agent
Linter additions & fixes, Dependency updates, and more!
Added
- linter:
--no-error-on-unmatched-pattern
argument to not exit with an error if no files are matched (default: false) (#639). Thanks @PascalFrenz! - linter: gitlab reporter (#624). Thanks @benedikt-bartscher!
Fixed
-
linter: adding-field-with-default now checks that the postgres version is
<= 11
before reporting an error for non-volatile defaults (#637). Thanks @ermakov-oleg! -
linter: github commenting truncates when too large (#605). Thanks @ienugr!
-
parser: parsing path's named
operator
now works (#640).Previously the following would error:
create table operator();
-
squawk_syntax:
ast::BinExpr
lhs
&rhs
properties now work correctly (#634). -
internal: bumped a bunch of outdated JS & Rust dependencies (#630), (#631), (#632), (#633).
More Quick Fixes + Lint Rule & Doc Fixes
Quick Fixes to Ignore Rules
Added
-
github: support overriding api url for github enterprise usage (#611). Thanks @jvatic!
-
lsp server: quick fix to open documentation for rule violation (#610)
-
lsp server: quick fixes to ignore rules for a line or entire file (#613)
Fixed
- linter: violations no longer include leading whitespace & comments in their range. (#612)
Initial Fix Support
Added
-
linter: add fixes for prefer-robust-stmts (currently LSP server only) (#602)
-
playground: add quick fix support (#606)
Fixed
- linter: fix comparison edge cases with identifiers (#600), (#601). Thanks @gilbsgilbs!
Fix Invalid Validation for Casts
Fixed
- parser: bugged warning for invalid casts that was warning about all casts inside function calls. (#598)
Fix VSCode on Windows
GitHub Annotations
File level ignores
v2.19.0 - 2025-07-09
Added
-
linter: file level rule violation ignore comments. (#585)
Now you can ignore all violations in a file via:
-- squawk-ignore-file
or ignore a specific rule for the file:
-- squawk-ignore-file prefer-robust-stmts
This works with the existing line level ignores:
create table t (id int); -- squawk-ignore prefer-robust-stmts create table u (id int);
-
vscode: incremental sync. (#583)
No more debouncing of file updates making squawk in vscode snappier!
-
vscode: tracing setting
squawk.trace.server
& output channel. (#584), (#585)