solhint icon indicating copy to clipboard operation
solhint copied to clipboard

Support of stateMutability keywords (pure, view, etc.)

Open androlo opened this issue 9 years ago • 2 comments

Version 1.1.6, (according to package.json file, but solhint --version says 1.1.5)

Using pure or other state mutability keywords is currently not supported by the linter, but it is supported by the compiler.

Using pure will result in a line like the following:

line 15:55 extraneous input 'pure' expecting {';', '{', 'returns'}

Eventually, the line numbers in errors/warnings and other things will be jumbled and will not work properly. Replacing pure with constant will remove the error.

androlo avatar Oct 24 '17 16:10 androlo

Hi @androlo !

Thank you for your feedback!

Approximately fix will be available in next version of Solhint (end of this - next week).

- Ilya

idrabenia avatar Oct 25 '17 08:10 idrabenia

@idrabenia, Hi. As far as I can judge, 3.4.1 doesn't allow to find the violation of a style guide when it comes to external view vs external functions not appropriately grouped. Plz fix it

So if we have

external view external

It won't warn us about it

vlavrenenko-ethers avatar Jul 28 '23 06:07 vlavrenenko-ethers