protofire / solhint

Solhint is an open-source project to provide a linting utility for Solidity code.
https://protofire.github.io/solhint/
MIT License
1.03k stars 160 forks source link

func-order error always shown for external functions #22

Closed szerintedmi closed 6 years ago

szerintedmi commented 6 years ago

I always get Function order is incorrect, external constant function can not go after function. (func-order) solhint error for external functions.

(using solhint in Atom)

pragma solidity 0.4.18;

contract SolhinTest {
    function get() external view returns (uint ct) { // solhint error: func-order on this line
        return 1;
    }
}
idrabenia commented 6 years ago

Hi @szerintedmi ,

Thank you for the feedback!

You may update atom-solidity-linter to new version. It must not contain this issue.

Thanks! - Ilya

szerintedmi commented 6 years ago

works now, thank you for the quick fix! :)