-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
I wish there was a lint for things frequently used that can blow up.
Example:
[].firstWhere(...) // This can throw an exception when false. Use firstWhereOrNull.
[].reduce(...) // This can throw an exception when list is empty, use fold instead.
http.get // This can throw an exception, try adding try/catch to make it safe.These are often overlooked by people, and they only find out it blows in testing. If we had a lint, it would be easier for those that don't want them.
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.