async_job_lints 0.1.1
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_awaitand its section of the README no longer setctx.joinbesidectx.abandonableandctx.pauseas a wait that a cancellation cuts short, with onlyctx.uncancellablefor steps that must run to the end.joinwaits 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_asyncandbare_await, and the quick fixes ofrelease_on_the_callandcatch_without_checkcome from solo_lints 0.1.4 and behave as they did there, with two changes:bare_awaitreports a wait for a job of the own queue of a solo controller, which solo_lints leaves toawait_own_queue, and the ids of the quick fixes begin withasync_job_lints.fix.instead ofsolo_lints.fix.. package:async_job_lints/plugin_api.dartregisters 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.