diff --git a/CHANGELOG.md b/CHANGELOG.md index b7ad4085..8895316d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## 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: + + ```sql + -- squawk-ignore-file + ``` + + or ignore a specific rule for the file: + + ```sql + -- squawk-ignore-file prefer-robust-stmts + ``` + + This works with the existing line level ignores: + + ```sql + 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) + ## v2.18.0 - 2025-07-03 ## Added diff --git a/Cargo.lock b/Cargo.lock index aa99afdd..7e6cdd5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2596,7 +2596,7 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "squawk" -version = "2.18.0" +version = "2.19.0" dependencies = [ "annotate-snippets", "anyhow", diff --git a/crates/squawk/Cargo.toml b/crates/squawk/Cargo.toml index 30c67eda..d003143b 100644 --- a/crates/squawk/Cargo.toml +++ b/crates/squawk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "squawk" -version = "2.18.0" +version = "2.19.0" default-run = "squawk" authors.workspace = true diff --git a/crates/squawk_linter/src/ignore.rs b/crates/squawk_linter/src/ignore.rs index 85e23803..549fe3e1 100644 --- a/crates/squawk_linter/src/ignore.rs +++ b/crates/squawk_linter/src/ignore.rs @@ -41,6 +41,7 @@ fn comment_body(token: &SyntaxToken) -> Option<(&str, TextRange)> { None } +// TODO: maybe in a future version we can rename this to squawk-ignore-line const IGNORE_LINE_TEXT: &str = "squawk-ignore"; const IGNORE_FILE_TEXT: &str = "squawk-ignore-file"; diff --git a/flake.nix b/flake.nix index 4459ceef..dc6570ad 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { squawk = final.rustPlatform.buildRustPackage { pname = "squawk"; - version = "2.18.0"; + version = "2.19.0"; cargoLock = { lockFile = ./Cargo.lock; diff --git a/package.json b/package.json index bd92c265..ad7c1486 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squawk-cli", - "version": "2.18.0", + "version": "2.19.0", "description": "linter for PostgreSQL, focused on migrations", "repository": "git@github.com:sbdchd/squawk.git", "author": "Squawk Team & Contributors", diff --git a/squawk-vscode/package.json b/squawk-vscode/package.json index 5f619784..845d609a 100644 --- a/squawk-vscode/package.json +++ b/squawk-vscode/package.json @@ -9,7 +9,7 @@ "icon": "icon.png", "author": "Squawk Team & Contributors", "license": "(Apache-2.0 OR MIT)", - "version": "2.18.0", + "version": "2.19.0", "engines": { "vscode": "^1.101.0" },