Skip to main content

async_job_lints 0.1.1 copy "async_job_lints: ^0.1.1" to clipboard
async_job_lints: ^0.1.1 copied to clipboard

Analyzer plugin for async_job: a wait in cleanup, a late release, a catch that takes a cancellation, an async callback of fakeAsync, a wait past the context.

0.1.1 #

  • The message of bare_await and its section of the README no longer set ctx.join beside ctx.abandonable and ctx.pause as a wait that a cancellation cuts short, with only ctx.uncancellable for steps that must run to the end. join waits for the whole call and throws only after it; the message and the README now say what each of the four is for.

0.1.0 #

  • The first release. The five rules for code on async_job, ctx_in_cleanup, release_on_the_call, catch_without_check, sync_fake_async and bare_await, and the quick fixes of release_on_the_call and catch_without_check come from solo_lints 0.1.4 and behave as they did there, with two changes: bare_await reports a wait for a job of the own queue of a solo controller, which solo_lints leaves to await_own_queue, and the ids of the quick fixes begin with async_job_lints.fix. instead of solo_lints.fix..
  • package:async_job_lints/plugin_api.dart registers the rules in another plugin, for analyzer plugins built on top of this one.
  • The package has an example: a recorder on async_job with three mistakes, the lines the plugin reports and the same job fixed.
0
likes
160
points
323
downloads

Documentation

Documentation
API reference

Publisher

verified publisheryet-another.dev

Weekly Downloads

Analyzer plugin for async_job: a wait in cleanup, a late release, a catch that takes a cancellation, an async callback of fakeAsync, a wait past the context.

Repository (GitHub)
View/report issues

Topics

#lints #analyzer #async #cancellation

License

BSD-3-Clause (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on async_job_lints