Lint rule for !
postfix bang/exclamation and late
null safety language features
#2562
Labels
!
postfix bang/exclamation and late
null safety language features
#2562
Describe the rule you'd like to see implemented
A lint rule that just shows the presence of the postfix bang/exclamation null safety
!
andlate
variable type.This way, a team can decide if it's:
ignore
-”No preference.”
info
-"Best Practices are to not use this."
warning
-"Using this may cause the application to break in runtime."
error
-"To keep in line with code standards, we don't want to use this."
This could be very helpful to reach true compile-time sound null safety as we migrate to it fully.
Examples
https://dart.dev/null-safety/understanding-null-safety#late-variables
The text was updated successfully, but these errors were encountered: