Closed hellwolf closed 1 year ago
Thanks for reporting this @hellwolf.
This depends on https://github.com/solidity-parser/parser/issues/43
Ran into same issue in a Linting CI pipeline: https://github.com/patrickd-/cheatsheet.sol/runs/4956891444?check_suite_focus=true
Affected line: https://github.com/patrickd-/cheatsheet.sol/blob/6597c1d315a4bd3e940024e0d45ee12e0bf6e2a5/contracts/cheatsheet.sol#L57
Forked solhint and bumped @solidity-parser/parser to 0.14.0
Here: https://github.com/patrickd-/solhint/tree/patch-1
Changed dependency to that fork: https://github.com/patrickd-/cheatsheet.sol/commit/c16cb05fb760845719f094326c8b6eecb67e542f
Linter now succeeeds: https://github.com/patrickd-/cheatsheet.sol/runs/4980165010?check_suite_focus=true
This issue is fixed when upgrading to the last solidity parser version (0.14.5) https://github.com/protofire/solhint/pull/378
Solidity code:
solhint output: