- Deprecated. Please use
package:lints
orpackage:flutter_lints
instead.
-
Enforce 8 new lint rules:
-
Mark a number of lints unused, see
README.md
for details. -
Remove
avoid_empty_else
as it is redundant whencurly_braces_in_control_structures
is also enabled.
- Stable null safety release.
- Update SDK constraints to
>=2.12.0-0 <3.0.0
based on beta release guidelines.
- Allow prerelease versions of the 2.12 sdk.
- Allow 2.10 stable and 2.11.0 dev SDK versions.
- Migrate to null safety.
Revert changes in 1.9.1
due to problems moving unawaited
to meta
.
package:meta
is now the recommended place to get the unawaited
method.
pedantic
now exports that implementation, so the two are compatible.
unawaited
will be removed from pedantic
in version 2.0.0
.
-
Enforce 17 new lint rules:
always_declare_return_types
always_require_non_null_named_parameters
annotate_overrides
avoid_null_checks_in_equality_operators
camel_case_extensions
omit_local_variable_types
prefer_adjacent_string_concatenation
prefer_collection_literals
prefer_conditional_assignment
prefer_final_fields
prefer_for_elements_to_map_fromIterable
prefer_generic_function_type_aliases
prefer_if_null_operators
prefer_single_quotes
prefer_spread_collections
unnecessary_this
use_function_type_syntax_for_parameters
-
Mark a number of lints unused, see
README.md
for details.
-
Enforce three new lint rules:
- Add versioned
analysis_options.yaml
files to the package so it's possible to pin to a version without also pinning the pub dependency. SeeREADME.md
for updated usage guide.
-
Enforce six new lint rules:
-
Enforce three new lint rules:
avoid_shadowing_type_parameters
,empty_constructor_bodies
,slash_for_doc_comments
- Violations can be cleaned up with the formatter's--fix-doc-comments
flag.
- Enforce
avoid_init_to_null
andnull_closures
.
- Enforce
prefer_is_empty
.
- Enforce
unawaited_futures
. Stop enforcingcontrol_flow_in_finally
andthrow_in_finally
.
- Move
analysis_options.yaml
underlib
so you can import it directly from your ownanalysis_options.yaml
. SeeREADME.md
for example.
- Describe Dart static analysis use at Google in
README.md
. - Add sample
analysis_options.yaml
. - Add
unawaited
method for silencing theunawaited_futures
lint.