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

Always use --all-targets for clippy #798

Merged
merged 1 commit into from
Aug 22, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/rust_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ inputs.workspace }}-$GITHUB_SHA
restore-keys: ${{ runner.os }}-cargo-${{ inputs.workspace }}
- name: Rust lint
run: cargo clippy --workspace -- -D warnings --A deprecated
run: cargo lint
working-directory: smart-contracts/${{ inputs.workspace }}/${{ inputs.target }}
- name: Rust format check
run: cargo fmt --all -- --check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_tube_osmosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
key: ${{ runner.os }}-cargo-osmosis-$GITHUB_SHA
restore-keys: ${{ runner.os }}-cargo-osmosis
- name: Rust lint
run: cargo clippy --features test-tube --all-targets -- -D warnings --A deprecated
run: cargo clippy --features test-tube --all-targets -- -D warnings
working-directory: smart-contracts/osmosis
- name: Build merkle-incentives
run: cargo test-tube-build
Expand Down
2 changes: 1 addition & 1 deletion scripts/git/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ check_lint() {
then
echo "Changes in ${target}"
cd ${REPO_ROOT}/smart-contracts/${target}
cargo clippy -- -D warnings
cargo clippy --all-targets -- -D warnings
cd -
fi
}
Expand Down
8 changes: 3 additions & 5 deletions smart-contracts/osmosis/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
schema = "run --example schema"
lint = "clippy -- -D warnings"
lint-fix = "clippy --fix -- -D warnings"
unit-test = "test --lib"
test-vault = "test --lib -p basic-vault"
clip = "clippy -- --D warnings --A deprecated"
lint = "clippy --all-targets -- -D warnings"
lint-fix = "clippy --all-targets --fix -- -D warnings"
unit-test = "test --lib"
6 changes: 6 additions & 0 deletions smart-contracts/quasar/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
schema = "run --example schema"
lint = "clippy --all-targets -- -D warnings"
lint-fix = "clippy --all-targets --fix -- -D warnings"
unit-test = "test --lib"
Loading