Skip to content

Commit

Permalink
chore: add doc of skip-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yanCode committed Nov 18, 2024
1 parent 459314e commit 1e38700
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/src/pages/docs/the-accounts-struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@ pub struct Initialize<'info> {
The doc comment needs to be a [line or block doc comment](https://doc.rust-lang.org/reference/comments.html#doc-comments) (/// or /\*\*) to be interpreted as doc attribute by Rust. Double slash comments (//) are not interpreted as such.
{% /callout %}

#### Disabling safety checks

For purposes like quick prototyping, you can disable the safety checks by appending the `--skip-lint` option to Anchor CLI commands:

```bash
anchor build --skip-lint
# or
anchor test --skip-lint
```

Or, you can disable the safety checks globally by setting `skip-lint` to `true` in the `[features]` section of your `Anchor.toml` file.

```toml
[features]
skip-lint = true
```

## Other Resources

- [Solana Cookbook](https://solanacookbook.com/core-concepts/accounts.html)

0 comments on commit 1e38700

Please sign in to comment.