Commit Graph

9 Commits

Author SHA1 Message Date
Mikael Muszynski 28cea24d66
Fix inaccurate typespecs (#7)
1. `rating`, `rating_deviation`, and `rating_interval` all omit the
   possibility of receiving a `nil` as the second argument.
2. Writing out `Result.t()`  results in `dialyzer` looking for
   `Elixir.Result.t()`, instead of calling the local
   `Elixir.Glicko.Result.t()`.
2020-02-23 22:14:58 +00:00
Mikael Muszynski db54b10e93 Change multi-line `do:` function definitions to `do` (#3)
Change the cases where a `do:` is followed by a `mix format` mandated
line break, or if the expression following the `do:` would span multiple
lines anyway.

The only exception to the rule above is the first change in the
changeset, as this was done for the function style of `initial_rating`
to be consistent with `initial_rating_deviation`.
2020-01-19 14:54:18 +00:00
Mikael Muszynski e22c34f2ff Run `mix format` (#1)
Add formatter configuration and run `mix format`.

Additionally, manually replace leading tabs in documentation examples
with four spaces.
2020-01-19 13:58:40 +00:00
avitex 8cc3fd1acb Follow community conventions for typespecs 2017-11-22 18:20:04 +11:00
avitex faf5218189 Use tuples exclusively to represent players and results 2017-11-17 11:08:25 +11:00
avitex 61175818ad Prepare for publish 2017-11-16 22:52:55 +11:00
avitex b6dd4c2dee Support using tuples 2017-11-16 22:44:01 +11:00
avitex 6bafa2be0b Add rating_interval 2017-11-15 23:32:47 +11:00
avitex 94e637f9bd Initial commit 2017-11-15 20:32:39 +11:00