Repository navigation
Release v17.0.1-beta.3
Pre-release
Pre-release
This update makes the command-line setup report problems honestly instead of finishing as if everything worked. log
Added
- VS Code extension: one On / Off / Partly off switch for Saropa Lints, in the status bar and at the top of the sidebar. One click turns it on or off. "On" means the setting is on and the analyzer plugin block is live or was never turned off by the extension (a new project's default daemon-only block counts as On, and turning On from there does not load the heavy plugin). "Partly off" shows only when the extension itself turned the block off or the setting and block otherwise disagree; it says which part is off and the same click fixes it.
- VS Code extension: a version-sync row in the sidebar that, in one click, syncs the plugin version in
analysis_options.yamlto the version pinned inpubspec.lockwhen they differ.
Fixed
dart run saropa_lints:init: exits with a failure code when the resulting configuration has no activeplugins:block or lists no rules, and says so plainly when the VS Code extension turned Lint integration OFF.dart run saropa_lints:init: the stale-version warning now reads the version of thesaropa_lintsplugin entry only (it previously could report an unrelatedversion:such astrue) and names the command that updates it.dart run saropa_lints:init: the deprecation note no longer implies the extension will undo an OFF state that init cannot undo.- VS Code extension: the Lints Config dashboard shows "Lints are off" with a Turn on (or Fix) button instead of coverage numbers while lints are off or partly off.
- VS Code extension: Re-enable In-Process Plugin now also turns the
saropaLints.enabledsetting back on, so the two can no longer disagree. avoid_async_call_in_sync_function,avoid_unawaited_future,avoid_uncaught_future_errors: no longer reportMap<K, Future<V>>.remove(key)statements.avoid_context_across_async,avoid_context_after_await_in_static: no longer treat anifas an await when the await sits only in branches that always return or throw.avoid_drift_value_null_vs_absent: no longer reportsValue<T?>(null)on a nullable column.avoid_ignoring_return_values: no longer reportsNever-returning calls, or extension methods whose name contains a mutate verb word (for exampledbActivityAdd).avoid_implicitly_nullable_extension_types: no longer reports an extension type that implements a non-nullable interface.avoid_memory_intensive_operations,avoid_string_concatenation_loop: no longer report+=on a String declared inside the same loop.avoid_nullable_interpolation: no longer reports interpolation inside a lazy debug-log closure.avoid_nullable_parameters_with_default_values: no longer reports a parameter the body compares tonull.avoid_only_rethrow: no longer reports a rethrow-only clause when a later clause in the sametryalso catches the exception.avoid_parameter_mutation: no longer reportsDraft,Builder,Accumulator,CollectorandBufferparameters invoidfunctions.avoid_string_substring: recognizes a length guard in a collection-for loop condition.avoid_unbounded_cache_growth,require_cache_expiration: treatfield = nullon a Map field as invalidation (wholesale-replaced snapshot caches).avoid_unsafe_collection_methods: recognizesisNotEmpty && ....firstandisEmpty || ....firstshort-circuit guards.move_variable_closer_to_its_usage: no longer reports a declaration whose initializer containsawait.prefer_drift_batch_operations: no longer reportsbatch.insertinside a batch callback orupdate(...).write.prefer_transaction_for_batch: counts writes per execution path (exclusive branches) and ignoresStreamController.addand other sinks.require_data_encryption: no longer matchescardinsidevcard.require_dispose_pattern: no longer reports abstract classes with only static members.require_file_close_in_finally: no longer reportsFile.openRead(the stream closes itself).