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

zulip / zulip-mobile / 4504
65%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2018 02:55PM UTC
Jobs 1
Files 380
Run time 27s
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
4504

push

travis-ci

borisyankov
flow: Include `types` in our type-checking.

Much of our code that *looks* typed actually hasn't been.  We have a
lot of our types concentrated in this one file `types.js`, and we
haven't marked it as a file Flow should look at -- which means that
when we import a type from there, Flow treats that as a totally
unknown type.  Any property we get off of such a type, or the return
value from any method call on it, then gets the same untyped treatment.

So, mark the file with `@flow`.

Just doing that alone brings 1564 (!) errors.  (Figures based on a
version from the other day; may vary slightly after rebase.)  So in
order to make this mergeable, I dialed it back:
 * out of about 77 types in the file, knocked out about 44 of them
   back down to `any`
 * added 5 more types, all as `any`
 * sprinkled a couple of mysterious `any`s in notifications.ios.js --
   I don't really understand why these give an error while the Android
   counterparts don't.

None of these `any`s represent a regression in our type coverage, I
believe -- they just do the same thing more narrowly that was already
happening as a consequence of the whole file being untyped.  They were
`any`, they're still `any`, but at least some of the other things in
the file now are not.

It'd be a pretty great project for a bunch of people to come change
the various `any`s to real types, keeping the type-checker happy the
whole time.  That'll give us real, truthful types in a lot more of the
code -- which (a) will probably find some live bugs we have right now,
and more importantly (b) will give us much better information about
what the code says as we make changes day to day, which will help us
make fewer bugs in the future.

901 of 1931 branches covered (46.66%)

Branch coverage included in aggregate %.

1617 of 3232 relevant lines covered (50.03%)

33.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4504.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 08 Mar 2018 02:55PM UTC 0
48.77
Travis Job 4504.1
Source Files on build 4504
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4504
  • 3824dc83 on github
  • Prev Build on master (#2209)
  • Next Build on master (#4507)
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