Solium treats now require without error message as error that obviously incorrect. I have a lot of require inside my contract and do not want to garbage it with disabling comments. In the same time I cannot find how to disable message error-reason: Provide an error message for require(). completely through .soliumrc.

I added this line to my project's solium config without any results:

"error-reason": {"enabled": false}
  • 1
    if solium is a part of bigger tool like Solidity for VS Code it maybe be should be done other way try inline to check if it works – Xawery Wiśniowiecki Sep 25 '18 at 16:05
  • 1
    @XaweryWiśniowiecki you are right. I found that adding file to .soliumrc doesn't affects VSCode, it is managed by its own settings file. After adding same switch there damned warning disappeared. – Alex G.P. Sep 26 '18 at 9:13

Documentation for Solidity for VS Code says "...soliumrc.json support will be included in the near future, for specific project linting requirements". At the moment you can configure your linter using VS Code configuration file:

   "solidity.linter": "solium",
   "solidity.soliumRules": {
       "quotes": ["error", "double"],
       "indentation": ["error", 4]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.