Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The var-name-mixedcase rule triggers when using $ as a variable name #452

Closed
ernestognw opened this issue Jul 14, 2023 · 1 comment
Closed

Comments

@ernestognw
Copy link

Description

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].

Proposed solution

The library should not throw an error when the variable includes a $

@dbale-altoros
Copy link
Collaborator

This is solved in this PR
#465

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants