Skip to content
Open
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
5 changes: 4 additions & 1 deletion crate/src/paths.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
pub const ANCHOR_LANG_CONTEXT: [&str; 3] = ["anchor_lang", "context", "Context"];
pub const ANCHOR_LANG_SIGNER: [&str; 4] = ["anchor_lang", "accounts", "signer", "Signer"];

pub const ANCHOR_ACCOUNT: [&str; 4] = ["anchor_lang", "accounts", "account", "Account"];
pub const SOLANA_PROGRAM_ACCOUNT_INFO: [&str; 3] =
["solana_program", "account_info", "AccountInfo"];
pub const BORSH_TRY_FROM_SLICE: [&str; 4] = ["borsh", "de", "BorshDeserialize", "try_from_slice"];
pub const BINCODE_DESERIALIZE: [&str; 2] = ["bincode", "deserialize"];
pub const ANCHOR_SYSVAR_TRAIT: [&str; 3] = ["anchor_lang", "prelude", "SolanaSysvar"];
pub const SOLANA_SYSVAR_TRAIT: [&str; 3] = ["solana_program", "sysvar", "Sysvar"];
11 changes: 11 additions & 0 deletions lints/sysvar_address_check/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.aarch64-apple-darwin]
linker = "dylint-link"

[target.x86_64-apple-darwin]
linker = "dylint-link"

[target.x86_64-unknown-linux-gnu]
linker = "dylint-link"

[target.x86_64-pc-windows-msvc]
linker = "dylint-link"
1 change: 1 addition & 0 deletions lints/sysvar_address_check/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading