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

chore(risedev): risedev check support dylint #14865

Closed
wants to merge 1 commit into from
Closed
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
16 changes: 16 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,21 @@ cargo fmt --all
test $? -eq 0 || exit 1
"""

[tasks.check-dylint]
# private = true
category = "RiseDev - Check"
description = "Run dylint check (dev, all features) and attempt to fix"
install_crate = { min_version = "2.6.1", crate_name = "dylint-link", binary = "cargo", test_arg = [
"--help",
], install_command = "binstall" }
script = """
#!/usr/bin/env bash

echo "Running $(tput setaf 4)cargo dylint$(tput sgr0) checks and attempting to fix"
DYLINT_RUSTFLAGS="-A warnings -D rw_warnings" cargo dylint --all -- --all-targets --all-features --locked
test $? -eq 0 || exit 1
"""

[tasks.check-clippy]
private = true
category = "RiseDev - Check"
Expand Down Expand Up @@ -1230,6 +1245,7 @@ dependencies = [
"check-fmt",
"check-trailing-spaces",
"check-typos",
"check-dylint",
]
description = "Perform part of the pre-CI checks that are fast to run"

Expand Down
Loading