Type and Null Safety #22
MelbourneDeveloper
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The main issue with this library is type safety and null safety. The main aim in forking this is to bring full type safety and null safety to the code. The original code was written at a time when
dynamicwas more popular, and the static analyzer was not configured to be as strict as it could be. That's why we've added the austerity package to all the packages. austerity turns all the warnings up to errors. This made it easy to fix a tonne of violations withdart fix --apply.However, there were so many violations left over that it wasn't possible to fix them all right at the start. That's why the analysis configs are set to
warninginstead oferrorfor some rulesThe aim is to gradually fix all these and remove any use of
dynamicthroughout the library, except for tests and examples. If you understand what these lint rules mean, you could help a lot by fixing these up one by one, and then removing the line in the analyzer config to turn the warnings back to errors.Beta Was this translation helpful? Give feedback.
All reactions