Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check-in cargo dylint with format_error lint #13750

Merged
merged 5 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
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
Loading