solhint
solhint copied to clipboard
Solhint is an open-source project to provide a linting utility for Solidity code.
The latest version of the npm package is 3.3.7 but I can't find that release in this repository.
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.6.1 to 6.12.3. Release notes Sourced from ajv's releases. v6.12.3 Pass schema object to processCode function Option for strictNumbers (@issacgerges, #1128) Fixed vulnerability related to untrusted schemas...
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...
See: - https://solidity-by-example.org/sending-ether/ - https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/ Closes #307
Adding virtual modifier support (https://github.com/protofire/solhint/issues/281)
According to the [doc](https://protofire.github.io/solhint/docs/shareable-configs.html), shareable configs can only be named with the `solhint-config-` prefix. These lines confirms this rule: https://github.com/protofire/solhint/blob/3443eee94de7dbda7ad3abd5d3540c3a96e95a0f/lib/config/config-file.js#L68-L81 But I think we should allow users to name their...
Solidity code: ``` //solhint-disable-next-line modifier onlyAuthorized(ISuperfluid host) virtual; ``` solhint output: ``` contracts/gov/SuperfluidGovernanceBase.sol 266:53 error Parse error: extraneous input ';' expecting {'{', 'override', 'virtual'} 268:0 error Parse error: extraneous input...
The rule incorrectly triggers for invocations of [ERC777.send(address, uint256, bytes)](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC777/ERC777.sol#L130). Looking at the code for the rule, I guess this could be prevented by additionally checking the number (and/or type)...
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. Release notes Sourced from shelljs's releases. v0.8.5 This was a small security fix for #1058. Commits 70668a4 0.8.5 d919d22 fix(exec): lockdown file permissions (#1060)...
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.3 to 0.8.5. Release notes Sourced from shelljs's releases. v0.8.5 This was a small security fix for #1058. v0.8.4 Small patch release to fix a circular dependency...