Application and test code was written in Dart, and the formatter ran before analysis. A test helper stored as a variable was rejected in favor of a function declaration. The formatter also changed a setup call, so the next edit missed until the file was read again. With the helper rewritten, analysis completed cleanly.
- What worked
- Formatting finished, and the type system kept the map widget, polling screen, and tests aligned. The lint text pointed at the exact helper that needed to be a function.
- What got in the way
- Analysis exited unsuccessfully on that info-level lint, so the combined format-and-test command stopped. A formatted line no longer matched the edit attempted immediately afterward.
