Skip to content

Commit

Permalink
Merge branch 'owner-constraints' into signer-anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vara Prasad Bandaru committed Mar 5, 2024
2 parents 80e6067 + b827ae8 commit c392cf3
Showing 2 changed files with 11 additions and 10 deletions.
13 changes: 11 additions & 2 deletions crate/tests/lints.rs
Original file line number Diff line number Diff line change
@@ -11,18 +11,27 @@ fn lints() {
.join("..")
.join("lints");

for entry in read_dir(dir).unwrap() {
for (index, entry) in read_dir(dir).unwrap().enumerate() {
let entry = entry.unwrap();
let path = entry.path();

#[allow(clippy::explicit_write)]
writeln!(stderr(), "{:?}", path.canonicalize().unwrap()).unwrap();

std::process::Command::new("cargo")
.current_dir(path)
.current_dir(path.clone())
.env_remove("RUSTUP_TOOLCHAIN")
.env("CARGO_TARGET_DIR", format!("target_{index}"))
.args(["test"])
.assert()
.success();

std::process::Command::new("cargo")
.current_dir(path)
.env_remove("RUSTUP_TOOLCHAIN")
.env("CARGO_TARGET_DIR", format!("target_{index}"))
.args(["clean"])
.assert()
.success();
}
}
8 changes: 0 additions & 8 deletions lints/missing_owner_check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -51,15 +51,7 @@ anchor-spl = "0.29"
dylint_testing = "2.6"

[workspace]
# members = [
# "ui/*",
# ]

[package.metadata.rust-analyzer]
rustc_private = true

# [workspace.metadata.dylint]
# libraries = [
# { path = "../solana-lints-dev", pattern = "lints/*" },
# # { git = "https://github.com/crytic/solana-lints", pattern = "lints/*" },
# ]

0 comments on commit c392cf3

Please sign in to comment.