Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ sqlclean = { path = "crates/sqlclean" }
sqlclean-lint = { path = "crates/sqlclean-lint", features = ["bigquery", "databricks", "duckdb", "postgres", "snowflake", "sqlite"] }
sqlclean-rules = { path = "crates/sqlclean-rules" }
# SQLQuack's formatter, and the tokens and trees it and the lint Rules read, which replace Polyglot.
sqlquack-fingerprint = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174", features = ["bigquery", "databricks", "duckdb", "postgres", "snowflake", "sqlite", "sqlserver"] }
sqlquack-format = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174", features = ["bigquery", "databricks", "duckdb", "postgres", "snowflake", "sqlserver"] }
sqlquack-parse = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174" }
sqlquack-semantics = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174" }
sqlquack-syntax = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174" }
sqlquack-tokenize = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174" }
sqlquack-syntax-sqlserver = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "7a8501afa69eb846637e4eb85604d6726fc33174" }
sqlquack-fingerprint = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d", features = ["bigquery", "databricks", "duckdb", "postgres", "snowflake", "sqlite", "sqlserver"] }
sqlquack-format = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d", features = ["bigquery", "databricks", "duckdb", "postgres", "snowflake", "sqlserver"] }
sqlquack-parse = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d" }
sqlquack-semantics = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d" }
sqlquack-syntax = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d" }
sqlquack-tokenize = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d" }
sqlquack-syntax-sqlserver = { git = "https://github.com/sqlstack-io/sqlquack.git", rev = "083ccc7121a43a3c471d646ef45845ce3ea69d6d" }

[workspace.lints.rust]
unsafe_code = "forbid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Run `sqlclean rules <CODE>` for a Rule's remediation.
| `SQLCLEAN013` | DISTINCT is written as though it were a function | No | Safe |
| `SQLCLEAN014` | Predicate compares identical constant values | No | — |
| `SQLCLEAN015` | Empty statement follows another terminator | No | Safe |
| `SQLCLEAN016` | Expression is aliased to its existing name | No | — |
| `SQLCLEAN016` | Expression is aliased to an exact copy of its name | No | — |
| `SQLCLEAN017` | Row count uses a constant expression | No | Safe |
| `SQLCLEAN018` | ROW_NUMBER has no deterministic ordering | Yes | — |
| `SQLCLEAN019` | NOT IN list contains NULL and can reject every row | Yes | — |
Expand Down
2 changes: 1 addition & 1 deletion crates/sqlclean-lint/src/lint/_helpers/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub(super) const CONSECUTIVE_SEMICOLON: LintRuleMetadata = LintRuleMetadata {
};
pub(super) const REDUNDANT_SELF_ALIAS: LintRuleMetadata = LintRuleMetadata {
code: "SQLCLEAN016",
message: "Expression is aliased to its existing name",
message: "Expression is aliased to an exact copy of its name",
remediation: "Remove the self-alias when the inferred output identity remains stable.",
};
pub(super) const COUNT_ONE: LintRuleMetadata = LintRuleMetadata {
Expand Down
Loading
Loading