Repository navigation
Release v17.0.1-beta.5
Pre-release
Pre-release
The VS Code status bar now shows one Saropa item instead of four, the Lints On/Off state now matches what a click does, and 6 rules and the init command no longer report problems that are not there. log
Changed
- Status bar (extension): the four Saropa status bar items (switch, score, "Saropa: ready/disabled", route and memory/workspace issues) are now one item, e.g.
Saropa Lints: On · 90% · V9/10,Saropa Lints: Off, orSaropa Lints: Partly off. It turns to the warning color when lints are Off or Partly off, or when memory or workspace issues need attention. The route (saropa_lints: pubspec 17.0.1), memory, health and workspace-issue details moved into its tooltip. Click still flips the Lints On/Off switch; the tooltip links open the report. The scan-on-save item now appears only while a scan is running or has just finished.
Fixed
- Lints On/Off switch (extension): the status bar, sidebar and dashboards now read the saved ownership record, so the displayed state matches what a click does (e.g. after
flutter cleandeletes.dart_tool). init: a re-run on a project with the default commented-out plugin block no longer exits 1, no longer claims the extension turned lints off, and no longer warns "0 rules found"; it exits 1 only when the extension recorded turning lints off.avoid_return_await_db: no longer treatsdb*reads such asdbContactLoadDBListByStatusas writes (the nameLoadDBcontainsadd). Method names are now matched by camel-case word;compute,calculateandcheckare now read verbs (dbContactComputeTotalsno longer lints).dbContactSaveanddbContactAddToGroupstill lint.prefer_freezed_for_data_classes: no longer flags data classes in projects that do not depend onfreezedorfreezed_annotation, where the suggestion could not be acted on. No action required.require_catch_logging: no longer flags a catch whose only statement returns a constructed typed result (e.g.return const DecryptResult(DecryptStatus.authFailed)).return null;,return false;and empty catches still lint.avoid_memory_intensive_operations,avoid_string_concatenation_loop: no longer flagline += buffer.toString()wherebufferis aStringBuffer(flushing a buffer into a string).avoid_platform_channel_on_web: no longer flags channel calls afterif (!isSupported) return;whenisSupportedreads a private flag that is only ever set true after akIsWeb-guarded early exit. A flag assigned with no web guard still lints. The guard flag must be false on web (for example!kIsWeb && ...); a flag such askIsWeb || ...and writes throughthis._flag = ...are now handled correctly. An early exitif (!_canUse) return;on a getter such askIsWeb || ...no longer counts as a web guard; only a getter that is false on web (!kIsWeb && ...) does.