Skip to content
Draft

wip #6787

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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ jobs:
uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install nightly for fmt
run: rustup toolchain install $NIGHTLY_TOOLCHAIN --component rustfmt
- name: Install nightly for fmt and dylint
run: rustup toolchain install $NIGHTLY_TOOLCHAIN --component rustfmt rustc-dev llvm-tools-preview
- name: Rust Lint - Format
run: cargo +$NIGHTLY_TOOLCHAIN fmt --all --check
- name: Rustc check
Expand All @@ -297,6 +297,12 @@ jobs:
run: cargo clippy --locked --all-features --all-targets -- -D warnings
- name: Rust Lint - Clippy Default Features
run: cargo clippy --locked --all-targets -- -D warnings
- name: Install cargo-dylint
uses: taiki-e/cache-cargo-install-action@2bfc3cedaf2ee5e7fa5d0ae034ccd5fb50cf8e1f
with:
tool: cargo-dylint,dylint-link
- name: Rust Lint - Dylint
run: cargo +$NIGHTLY_TOOLCHAIN dylint --all -- -D warnings

cpp-lint:
name: "C/C++ (lint)"
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ members = [
"benchmarks/random-access-bench",
"vortex-sqllogictest",
]
exclude = ["java/testfiles", "wasm-test"]
exclude = ["java/testfiles", "wasm-test", "lints/prefer_into_array"]
resolver = "2"

[workspace.package]
Expand Down Expand Up @@ -365,3 +365,6 @@ lto = false
[profile.bench_assert]
debug-assertions = true
inherits = "bench"

[workspace.metadata.dylint]
libraries = [{ path = "lints/prefer_into_array" }]
11 changes: 11 additions & 0 deletions lints/prefer_into_array/.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"
Loading
Loading