• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / linter / 2212
96%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2018 06:51PM UTC
Jobs 1
Files 135
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2212

push

travis-ci

web-flow
New rule: avoid_void_async. `void f() async`, suggest `Future<void>`. (#1128)

* New rule: avoid_void_async. `void f() async`, suggest `Future<void>`.

Fix #1122.

As per discussion there, this is a *new* rule, not part of void_checks,
because it is much more likely to have low false positives.

In my experince, void_checks is very strict. It serves a useful purpose
in pushing people away from the more complex Null type by making void
useful in a way Null used to be used. However, void_checks is not
required for soundness, and it seems uncommon that the theory here
misses something practical.

For that reason, make a new rule. Users interested in making void behave
as if it were Null in certain ways can enable that, while users who just
want to make sure no async functions are declared wrong can enable this.

* Test on appveyor: move Stream into dart.async main file.

18 of 18 new or added lines in 2 files covered. (100.0%)

4395 of 4548 relevant lines covered (96.64%)

1.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2212.1 (LINTER_BOT=main) 23 Aug 2018 06:51PM UTC 0
96.64
Travis Job 2212.1
Source Files on build 2212
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2212
  • 5298564b on github
  • Prev Build on master (#2211)
  • Next Build on master (#2222)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc