alan-turing-institute / whatwhat

A reimagining of nowwhat in OCaml
MIT License
0 stars 0 forks source link

Implement all warnings/errors #57

Open mhauru opened 2 years ago

mhauru commented 2 years ago

The following list is from reporting.mld. Tick the boxes as you implement them, or check that they've already been implemented:

Forecast

Errors

Warnings

Reading data from GitHub

Errors

Warnings

Combining data

Errors

Warnings

Reporting

Things that will become problems if left unattended

Informational messages

mhauru commented 2 years ago

@triangle-man could we drop these as sources of Github warnings from reporting.mld?

  • A field that can be null is missing
  • A field that can be null has a missing value

We'll have a lot of these cases that are intentional, and don't require action.

mhauru commented 2 years ago

I would also drop this one as a source of warnings in plan parsing:

The same field is specified twice

Specifying the same field twice is actually invalid YAML. The ocaml-yaml package does accept them, but I would consider that an upstream issue not worth working around. (I've filed an issue: https://github.com/avsm/ocaml-yaml/issues/68)

mhauru commented 2 years ago

Working on ticking those boxes here: https://github.com/alan-turing-institute/whatwhat/pull/58/files

mhauru commented 2 years ago

Proposing changes to the spec here: https://github.com/alan-turing-institute/whatwhat/pull/60