Skip to content

Commit 94b6cf5

Browse files
committed
Use shared target directory
1 parent 9b211e4 commit 94b6cf5

File tree

8 files changed

+22
-2
lines changed

8 files changed

+22
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
target/
1+
/target

lints/arbitrary_cpi/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

lints/duplicate_mutable_accounts/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

lints/insecure_account_close/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

lints/missing_owner_check/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

lints/missing_signer_check/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

lints/type_cosplay/.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build]
2+
target-dir = "../../target"
3+
14
[target.aarch64-apple-darwin]
25
linker = "dylint-link"
36

scripts/clippy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ WORKSPACE="$(realpath "$SCRIPTS"/..)"
1414
cd "$WORKSPACE"
1515

1616
for X in . lints/*; do
17-
cargo clippy --manifest-path "$X"/Cargo.toml --workspace --tests -- \
17+
pushd "$X"
18+
cargo clippy --workspace --tests -- \
1819
-D warnings \
1920
-W clippy::pedantic
21+
popd
2022
done

0 commit comments

Comments
 (0)