v1.1.8
Solium v1.1.8 has seen significant contributions and inputs from the blockchain community.
Rules introduced:
error-reason
- Ensure that error message is provided forrevert()
andrequire()
statementslinebreak-style
- Enforce consistent line break style across the codebase (either windows or unix).visibility-first
- Ensure that the visibility modifier for a function comes before any custom modifiers
See the docs for complete description of these rules.
Several UX improvements were introduced in the CLI. This includes better help messages, writing messages to the appropriate streams (stdout
or stderr
) and better formatting for the reporters.
The default .soliumignore
file now includes contracts/Migrations.sol
. Earlier, developers using Truffle had to manually add this entry.
4 new options have been introduced in the CLI:
--no-soliumrc
- Do not look for the.soliumrc.json
file at all.--no-soliumignore
- Do not look for the.soliumignore
file at all--rule
- Specify a rule apply. Example:solium --rule 'indentation: ["error", 4]' -d contracts/
--plugin
- Specify a plugin to apply. Example:solium --plugin security -f myContract.sol
See the user guide for the complete description of these options.