Skip to content

Commit

Permalink
Always use --all-targets for clippy (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll authored Aug 22, 2024
1 parent ae05eb4 commit d79c3d6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
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"

0 comments on commit d79c3d6

Please sign in to comment.