Flow can tell me when I write a bad line of JavaScript. nuclide-swift should be able to tell me when I write Swift code that won't compile.
This kind of works already. Check out the following screenshot:
SourceKitten tells me the type of raichu is "error type". This is because the Pokemon struct takes init parameters, but I do not pass those parameters when initializing raichu.
I believe SourceKit is capable of displaying error diagnostics for Swift files. I don't think SourceKitten wraps this functionality yet, but it should. Once it does, we should use that functionality and hook it up to the Nuclide diagnostics service.
Flow can tell me when I write a bad line of JavaScript. nuclide-swift should be able to tell me when I write Swift code that won't compile.
This kind of works already. Check out the following screenshot:
SourceKitten tells me the type of
raichu
is "error type". This is because thePokemon
struct takes init parameters, but I do not pass those parameters when initializingraichu
.I believe SourceKit is capable of displaying error diagnostics for Swift files. I don't think SourceKitten wraps this functionality yet, but it should. Once it does, we should use that functionality and hook it up to the Nuclide diagnostics service.