Allow caching for faster execution
### Problem
I’m currently using a [`husky` + `lint-staged`](https://github.com/sablier-labs/lockup/blob/main/.lintstagedrc.yml) setup to execute `solhint` on every commit. While this is awesome, it has significantly increased commit times.
### Solution
To address this, implement caching in `solhint`, similar to how [`prettier`](https://prettier.io/blog/2022/11/23/2.8.0.html) and [`eslint`](https://eslint.org/docs/latest/use/command-line-interface) handle it. This would allow `solhint` to run only on staged changes rather than the entire codebase.
```bash
solhint --cache --cache-location $CACHE_LOCATION --fix
```
关闭于 2025-06-27 6 条评论