# agent_dylint_lints
[Dylint](https://github.com/trailofbits/dylint) lints for agent code patterns.
## Lints
| `MAX_LINES_PER_FILE` | Warns when a source file exceeds 100 lines |
| `MAX_LINES_PER_FUNCTION` | Warns when a function exceeds 60 lines |
## Usage
Add to your project's `Cargo.toml`:
```toml
[workspace.metadata.dylint]
libraries = [
{ git = "https://github.com/tupe12334/agent_dylint_lints" },
]
```
Then run:
```sh
cargo dylint --all
```
## Development
Uses a pinned nightly toolchain (see `rust-toolchain.toml`). Build and test:
```sh
cargo test
```
### Prerequisites
- `dylint-link` (required linker wrapper):
```sh
cargo install dylint-link
```