pedantic 1.11.1
pedantic: ^1.11.1 copied to clipboard
The Dart analyzer settings and best practices used internally at Google.
1.11.1 #
- Deprecated. Please use
package:lintsorpackage:flutter_lintsinstead.
1.11.0 #
-
Enforce 8 new lint rules:
-
Mark a number of lints unused, see
README.mdfor details. -
Remove
avoid_empty_elseas it is redundant whencurly_braces_in_control_structuresis also enabled.
1.10.0 #
- Stable null safety release.
1.10.0-nullsafety.3 #
- Update SDK constraints to
>=2.12.0-0 <3.0.0based on beta release guidelines.
1.10.0-nullsafety.2 #
- Allow prerelease versions of the 2.12 sdk.
1.10.0-nullsafety.1 #
- Allow 2.10 stable and 2.11.0 dev SDK versions.
1.10.0-nullsafety #
- Migrate to null safety.
1.9.2 #
Revert changes in 1.9.1 due to problems moving unawaited to meta.
1.9.1 #
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.
1.9.0 #
-
Enforce 17 new lint rules:
always_declare_return_typesalways_require_non_null_named_parametersannotate_overridesavoid_null_checks_in_equality_operatorscamel_case_extensionsomit_local_variable_typesprefer_adjacent_string_concatenationprefer_collection_literalsprefer_conditional_assignmentprefer_final_fieldsprefer_for_elements_to_map_fromIterableprefer_generic_function_type_aliasesprefer_if_null_operatorsprefer_single_quotesprefer_spread_collectionsunnecessary_thisuse_function_type_syntax_for_parameters
-
Mark a number of lints unused, see
README.mdfor details.
1.8.0 #
-
Enforce three new lint rules:
1.7.0 #
- Add versioned
analysis_options.yamlfiles to the package so it's possible to pin to a version without also pinning the pub dependency. SeeREADME.mdfor updated usage guide.
1.6.0 #
1.5.0 #
-
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-commentsflag.
1.4.0 #
- Enforce
avoid_init_to_nullandnull_closures.
1.3.0 #
- Enforce
prefer_is_empty.
1.2.0 #
- Enforce
unawaited_futures. Stop enforcingcontrol_flow_in_finallyandthrow_in_finally.
1.1.0 #
- Move
analysis_options.yamlunderlibso you can import it directly from your ownanalysis_options.yaml. SeeREADME.mdfor example.
1.0.0 #
- Describe Dart static analysis use at Google in
README.md. - Add sample
analysis_options.yaml. - Add
unawaitedmethod for silencing theunawaited_futureslint.