An open API service indexing awesome lists of open source software.

https://github.com/clemlak/solhint-plugin-test-precise-uint

A test for a custom Solhint rule
https://github.com/clemlak/solhint-plugin-test-precise-uint

Last synced: about 2 months ago
JSON representation

A test for a custom Solhint rule

Awesome Lists containing this project

README

          

Just some a small test using the new Solhint plugin system (https://github.com/protofire/solhint/blob/2.0/docs/writing-plugins.md).
What does it do? Basically it prevents contract from being named `Foo` and it will throw an error if you use imprecise `uint`.

## Usage

Install the plugin with `npm i solhint-plugin-test-precise-uint` and update your `.solhint.json` with:
```
{
"extends": ["solhint:default"],
"plugins": ["test-precise-uint"],
"rules": {
"test-precise-uint/precise-uint": "error",
"test-precise-uint/no-foos": "error",
}
}
```