-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The linter now supports new optional rul (turned off by default). This rule validates the async functions' timeout and polling arguments. The linter checks for three things: 1. best effort: if the time interval is known (when using integr literals or `time.Duration` values), the linter validates that the timeout is not shorter than the polling interval. 2. Forces the timeout and the polling arguments of the `Eventually` and `Consistently` functions, to be of type `time.Duration`. Best effort auto-fix: in cases that the linter can do that, e.g. for an integer value, it suggests replacing this value with a multiply with time.Second. 3. Forces up to one timeout and up to one polling arguments.
- Loading branch information
Showing
15 changed files
with
650 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.