# Add dylint lint library for Zed-specific patterns \(\#58496\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4b7369481dcf36f22ff8f813d411e1d296aebe57)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4b7369481dcf36f22ff8f813d411e1d296aebe57

Requested commit: 4b7369481dcf36f22ff8f813d411e1d296aebe57

Commit: 4b7369481dcf36f22ff8f813d411e1d296aebe57

Tree: 1f7058d16aed0fa3c407f80dc51e97adccdbd21c

Author: Miguel Raz Guzmán Macedo

Committer: GitHub

## Message

```
Add dylint lint library for Zed-specific patterns (#58496)

Adds a dylint library under tooling/lints that flags Zed-specific
anti-patterns:

* shared_string_from_str_literal, 
* async_block_without_await, 
* entity_update_in_render, 
* notify_in_render, 
* owned_string_into_shared, 
* len_in_loop_condition, and 
* blocking_io_on_foreground. 

Includes UI tests, a single-lint helper, and workspace.metadata.dylint
registration so cargo dylint --all discovers it. The library pins its
own nightly toolchain (kept out of the main workspace) and tracks dylint
6.

Release Notes:

- N/A

Self-Review Checklist:

- [ ] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

- [b77ec90b2e6585622099235d9fb7d708d22ad956](https://git.cafe/gitcafe/zed/commit/b77ec90b2e6585622099235d9fb7d708d22ad956?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4b7369481dcf36f22ff8f813d411e1d296aebe57?format=markdown)
