chore(deps): update dependency nunnatsa/ginkgolinter to v0.18.0 #707
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 contains the following updates:
0.17.0
->0.18.0
Release Notes
nunnatsa/ginkgolinter (nunnatsa/ginkgolinter)
v0.18.0
: v1.18.0Compare Source
What's Changed
Added two new rules, to validate the
Success
andHaveOccurred
matchersNew Linter Rules
Prevent Wrong Actual Values with the
Succeed()
matcher [Bug]The
Succeed()
matcher only accepts a single error value. this rule validates that.For example:
But mostly, we want to avoid using this matcher with functions that return multiple values, even if their last returned value is an error, because this is not supported:
In async assertions (like
Eventually()
), theSucceed()
matcher may also been used with functions that accept aGomega
object as their first parameter, and returns nothing, e.g. this is a valid usage of EventuallyNote: This rule does not support auto-fix.
Correct Usage of the Succeed() and the
HaveOccurred()
matchers [STYLE]This rule enforces using the
Success()
matcher only for functions, and theHaveOccurred()
matcher only for error values.For example:
will trigger a warning with a suggestion to replace the mather to
and vice versa:
will trigger a warning with a suggestion to replace the mather to
This rule is disabled by default. Use the
--force-succeed=true
command line flag to enable it.Note: This rule does support auto-fix, when the
--fix
command line parameter is used.CLI Changes
Added the new
--force-succeed=true
command line parameter, to enable the "Correct Usage of the Succeed() and the HaveOccurred() matchers" rule.Full Changelog: nunnatsa/ginkgolinter@v0.17.0...v0.18.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.