Lint rule for !
postfix bang/exclamation and late
null safety language features
#58361
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-lint-request
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
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: