Phil Quitslund
Phil Quitslund
This was "fixed" recently in https://github.com/dart-lang/linter/commit/67a270f5e341a5771410f455214868eee954da8f and some flutter packages are cleaned up in https://github.com/flutter/flutter/pull/127211 but it was a roll blocker due to lots of flutter ecosystem breakages. (See, for...
Tracking issue for newly added quick fixes. ## Diagnostics with newly added fixes - [x] `EXPECTED_CATCH_CLAUSE_BODY` @pq - [x] `EXPECTED_CLASS_BODY` @pq - [x] `EXPECTED_EXTENSION_BODY` @pq - [x] `EXPECTED_EXTENSION_TYPE_BODY` @pq -...
We might consider a lint to encourage the use of [switch-expression](https://github.com/dart-lang/language/blob/master/working/0546-patterns/patterns-feature-specification.md#switch-expression)s. **BAD** ```dart Color shiftHue(Color color) { switch (color) { case Color.red: return Color.orange; case Color.blue: return Color.purple; case Color.green:...
## no_nullable_values_in_interpolated_strings ## Description Do not use nullable values in interpolated strings. ## Details TODO: See: https://github.com/dart-lang/language/issues/2053. ## Kind Error ## Good Examples ```dart void main() { String test =...
### Name: avoid_non_null_checks **Description:** Avoid using non-null-check operators. **Details:** Code that uses non-null-check operators (`!`) is harder to understand and can lead to runtime exceptions. In general, you should avoid...
As per the discussion in https://github.com/dart-lang/linter/issues/4968, we want to start reporting `UNUSED_LOCAL_VARIABLE` for non wildcard underscore cases (e.g., `__`, `___`, etc). **UPDATE:** non-wildcard underscores will produce diagnostics but whether we...
Follow-up from: https://github.com/dart-lang/sdk/issues/55721#issuecomment-2113263991, It'd be nice to have a fix (or at least assist) that removes the unnecessary stack catch in code like: ```dart try { } catch(e, _) {...
At some point I had confidence that we'd want such a conversion but I think I mistook an `UNUSED_LOCAL_VARIABLE` diagnostic for an `UNUSED_ELEMENT`. @bwilkerson, @kallentu: can you think of any...
Consider highlighting wildcards specially (see [discussion](https://dart-review.googlesource.com/c/sdk/+/382042/2/pkg/analysis_server/test/lsp/hover_test.dart#285)). @scheglov: as someone who enjoys semantic highlighting, I'd be especially curious to get your perspective. Would this be valuable? Too much noise? Too difficult...