Skip to content

Commit

Permalink
feat: check-in cargo dylint with format_error lint (#13750)
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao authored Dec 1, 2023
1 parent 26bd9ef commit 61d364c
Show file tree
Hide file tree
Showing 15 changed files with 2,007 additions and 0 deletions.
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ header:
- "src/sqlparser/**/*.rs"
- "java/connector-node/risingwave-source-cdc/src/main/java/com/risingwave/connector/cdc/debezium/internal/*.java"
- "src/meta/model_v2/migration/**/*.rs"
- "lints/ui/**"

comment: on-failure
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ members = [
"src/utils/workspace-config",
"src/workspace-hack",
]
exclude = ["lints"]
resolver = "2"

[workspace.package]
Expand Down Expand Up @@ -255,3 +256,6 @@ tokio-postgres = { git = "https://github.com/madsim-rs/rust-postgres.git", rev =
futures-timer = { git = "https://github.com/madsim-rs/futures-timer.git", rev = "05b33b4" }
# patch: unlimit 4MB message size for grpc client
etcd-client = { git = "https://github.com/risingwavelabs/etcd-client.git", rev = "4e84d40" }

[workspace.metadata.dylint]
libraries = [{ path = "./lints" }]
11 changes: 11 additions & 0 deletions lints/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.aarch64-apple-darwin]
linker = "dylint-link"

[target.x86_64-apple-darwin]
linker = "dylint-link"

[target.x86_64-unknown-linux-gnu]
linker = "dylint-link"

[target.x86_64-pc-windows-msvc]
linker = "dylint-link"
2 changes: 2 additions & 0 deletions lints/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
.vscode/settings.json
4 changes: 4 additions & 0 deletions lints/.vscode/settings.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"rust-analyzer.rustc.source": "discover",
"git.openRepositoryInParentFolders": "always",
}
Loading

0 comments on commit 61d364c

Please sign in to comment.