Closed ernestognw closed 1 year ago
Given Solidity allows using a $ as a valid variable identifier, consider the following example:
$
contract A { function example() external pure returns (uint256) { uint256 $ = 1; return $; } }
The variable $ is marked as Linter: Variable name must be in mixedCase [var-name-mixedcase].
Linter: Variable name must be in mixedCase [var-name-mixedcase]
The library should not throw an error when the variable includes a $
This is solved in this PR https://github.com/protofire/solhint/pull/465
Description
Given Solidity allows using a
$
as a valid variable identifier, consider the following example:The variable
$
is marked asLinter: Variable name must be in mixedCase [var-name-mixedcase]
.Proposed solution
The library should not throw an error when the variable includes a
$