You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I'm using Turborepo and Github Actions for test automation in CI. And Hardhat-solhint throws indentation error, which automatically disappears when the action re-runs.
pawcon-blockchain:lint: 113:5 error Expected indentation of 0 spaces but found 4 indent
pawcon-blockchain:lint: 115:5 error Expected indentation of 0 spaces but found 4 indent
pawcon-blockchain:lint: 115:14 error Expected indentation of 0 spaces but found 13 indent
pawcon-blockchain:lint: 115:30 error Expected indentation of 0 spaces but found 29 indent
pawcon-blockchain:lint: 115:31 error Expected indentation of 0 spaces but found 30 indent
pawcon-blockchain:lint: 115:33 error Expected indentation of 0 spaces but found 32 indent
pawcon-blockchain:lint: 115:42 error Expected indentation of 0 spaces but found 41 indent
pawcon-blockchain:lint: 115:47 error Expected indentation of 0 spaces but found 46 indent
pawcon-blockchain:lint: 115:55 error Expected indentation of 0 spaces but found 54 indent
pawcon-blockchain:lint: 115:56 error Expected indentation of 0 spaces but found 55 indent
pawcon-blockchain:lint: 115:63 error Expected indentation of 0 spaces but found 62 indent
pawcon-blockchain:lint: 115:65 error Expected indentation of 0 spaces but found 64 indent
...
pawcon-blockchain:lint: ✖ 422 problems (389 errors, 33 warnings)
This is my dependency, using @nomiclabs/hardhat-solhint ^2.0.1
Also, I noticed that ignoreConstructors option does not work for constructor. For example, if I run solhint in CLI, it throws below func-visibility error.
pawcon-monorepo/apps/blockchain/contracts/pool/SingleCatnipPool.sol
37:40 warning Variable name must be in mixedCase var-name-mixedcase
46:19 error Explicitly mark visibility in function func-visibility
And then the 46th code line was constructor, which should be ignored by the .solhint.json.
Problem
I'm using Turborepo and Github Actions for test automation in CI. And Hardhat-solhint throws indentation error, which automatically disappears when the action re-runs.
This is my dependency, using @nomiclabs/hardhat-solhint ^2.0.1
and I configurate .solhint.json like below
Also, I noticed that ignoreConstructors option does not work for constructor. For example, if I run solhint in CLI, it throws below func-visibility error.
And then the 46th code line was constructor, which should be ignored by the .solhint.json.
With the above configurations, sometimes CI passes without problem, sometimes throws indentation error. I appreciate any help in advance!
The text was updated successfully, but these errors were encountered: