ZeppelinSolutions / solium-plugin-zeppelin

[DEPRECATED] Solium plugin for Zeppelin audits
MIT License
16 stars 10 forks source link

no-state-variable-shadowing rule fails with: Cannot read property 'stateVariables' of undefined #15

Closed come-maiz closed 6 years ago

come-maiz commented 6 years ago

I tried running the no-state-variable-shadowing rule on the zeppelin-solidity project, and it failed with:

✖ [Fatal error] An error occurred while linting over /home/ubuntu/zeppelin-solidity/contracts/Bounty.sol: Cannot read property 'stateVariables' of undefined

come-maiz commented 6 years ago

This is caused because no-state-variable-shadowing doesn't yet support parsing contracts from imports. It can use the same style as no-unused-imports, but #17 needs to be fixed first. In the mean time, I will quickly make that it doesn't crash.