[Snyk] Upgrade solium from 1.1.3 to 1.2.5 #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade solium from 1.1.3 to 1.2.5.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: solium
See CHANGELOG
See CHANGELOG
See CHANGELOG
See Changelog
See Changelog
See changelog
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 modifiersSee 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
orstderr
) and better formatting for the reporters.The default
.soliumignore
file now includescontracts/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.
Solium v1.1.7 introduces 3 new lint rules:
no-constant
: Recommends replacingconstant
modifier in function declarations withview
, sinceconstant
will be deprecated starting solidity v0.5.0. This rule provides automatic fixing capability.value-in-payable
: Ensures that functions containingmsg.value
are declaredpayable
.max-len
- Enforces an upper limit on the number of characters per line of code. Defaults to145
, but is customisable via.soliumrc.json
.The rule
pragma-on-top
can now fix experimental pragma statement positions.Solium's parser and all rules (except for
indentation
andlbrace
) now support theconstructor()
declaration syntax. The rules that don't yet support this syntax don't produce any false positives. The CLI introduces the--debug
flag that can be used by developers to view stack traces for details about errors. Starting 1.1.7, Solium also displays the list of its backers on README.md.This release saw significant contributions from @ mushketyk & @ elopio
v1.1.6
.emit
rule has been introduced that enforces triggering events using the emit keywordmixedcase
rule, thanks to @ elopioerror
, i.e., has an exit code > 0 and hence, fails the build. It continues to lint other files and produces issues in them normally. See issue.solium:recommended
ruleset have been lowered fromerror
towarning
. Note that this is not a breaking change. A breaking change would be increasing severity fromwarning
toerror
, which would cause build failures. See commit\n
instead of\r\n
on windows). See issue.Commit messages
Package name: solium
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs