linter 1.3.0
linter: ^1.3.0 copied to clipboard
The implementation of the lint rules supported by the analyzer framework. This package is not intended to be used directly.
1.3.0 #
non_constant_identifier_namesupdated to check local variables, for-loop initializers and catch clauses- error range of
lines_longer_than_80_charsupdated to start at 80 to make splitting easier - new lint:
require_trailing_commas - new lint:
prefer_null_aware_method_calls
1.2.1 #
- fix: adjusted SDK lower bound to 2.12.0-0 (from 2.13.0-0)
1.2.0 #
- improvements to
iterable_contains_unrelated_typeto better supportListcontent checks - fixes to
camel_case_typesandprefer_mixinto support non-function type aliases
1.1.0 #
- fixed
prefer_mixinto properly make exceptions fordart.collectionlegacy mixins - improved formatting of source examples in docs
- new lint:
use_build_context_synchronously(experimental) - new lint:
avoid_multiple_declarations_per_line
1.0.0 #
- full library migration to null-safety
- new lint:
use_if_null_to_convert_nulls_to_bools - new lint:
deprecated_consistency - new lint:
use_named_constants - deprecation of
avoid_as
0.1.129 #
- fixed a bug where
avoid_dynamic_callsproduced false-positives for.call()
0.1.128 #
- new lint:
avoid_dynamic_calls - (internal): updated
avoid_type_to_stringto useaddArgumentListregistry API - documentation improvements
0.1.127 #
- fixed crash in
prefer_collection_literalswhen there is no static parameter element
0.1.126 #
- fixed false negatives for
prefer_collection_literalswhen a LinkedHashSet or LinkedHashMap instantiation is passed as the argument to a function in any position other than the first - fixed false negatives for
prefer_collection_literalswhen a LinkedHashSet or LinkedHashMap instantiation is used in a place with a static type other than Set or Map
0.1.125 #
- (internal): update to new
PhysicalResourceProviderAPI
0.1.124 #
- fixed false positives in
prefer_constructors_over_static_methods - updated
package_namesto allow leading underscores
0.1.123 #
- fixed NPEs in
unnecessary_null_checks
0.1.122 #
- fixed NPE in
unnecessary_null_checks - fixed NPE in
missing_whitespace_between_adjacent_strings - updated
void_checksfor NNBD - fixed range error in
unnecessary_string_escapes - fixed false positives in
unnecessary_null_types - fixed
prefer_constructors_over_static_methodsto respect type parameters - updated
always_require_non_null_named_parametersto be NNBD-aware - updated
unnecessary_nullable_for_final_variable_declarationsto allow dynamic - update
overridden_fieldsto not report on abstract parent fields - fixes to
unrelated_type_equality_checksfor NNBD - improvement to
type_init_formalsto allow types not equal to the field type
0.1.121 #
- performance improvements to
always_use_package_imports,avoid_renaming_method_parameters,prefer_relative_importsandpublic_member_api_docs - (internal): update to analyzer
0.40.4APIs
0.1.120 #
- new lint:
cast_nullable_to_non_nullable - new lint:
null_check_on_nullable_type_parameter - new lint:
tighten_type_of_initializing_formals - update
public_member_apisto check generic type aliases - (internal): update to new analyzer APIs
0.1.119 #
- fix
close_sinksto handlethis-prefixed property accesses - new lint:
unnecessary_null_checks - fix
unawaited_futuresto handleFuturesubtypes - new lint:
avoid_type_to_string
0.1.118 #
- new lint:
unnecessary_nullable_for_final_variable_declarations - fixed NPE in
prefer_asserts_in_initializer_lists - fixed range error in
unnecessary_string_escapes unsafe_htmlupdated to support unique error codes- updates to
diagnostic_describe_all_propertiesto check forDiagnosticables (notDiagnosticableMixins) - new lint:
use_late - fixed
unnecessary_lambdasto respect deferred imports - updated
public_member_api_docsto check mixins - updated
unnecessary_statementsto skipasexpressions - fixed
prefer_relative_importsto work with path dependencies
0.1.117 #
- fixed
directives_orderingto remove third party package special-casing - fixed
unnecessary_lambdasto check for tearoff assignability - fixed
exhaustive_casesto not flag missing cases that are defaulted - fixed
prefer_is_emptyto special-case assert initializers and const contexts - test utilities moved to:
lib/src/test_utilities - new lint:
do_not_use_environment
0.1.116 #
- new lint:
no_default_cases(experimental) - new lint:
exhaustive_cases - updated
type_annotate_public_apisto allow inferred types in final field assignments - updated
prefer_mixinto allow "legacy" SDK abstract class mixins - new lint:
use_is_even_rather_than_modulo - update
unsafe_htmlto use aSecurityLintCode(making it un-ignorable) - improved
sized_box_for_whitespaceto address false-positives
0.1.115 #
- updated
avoid_types_as_parameter_namesto check catch-clauses - fixed
unsafe_htmlto check attributes and methods on extensions - extended
unsafe_htmlto includeWindow.open,Element.htmlandDocumentFragment.htmlin unsafe API checks - improved docs for
sort_child_properties_last - (internal)
package:analyzerAPI updates - new lint:
sized_box_for_whitespace
0.1.114 #
- fixed
avoid_shadowing_type_parametersto support extensions and mixins - updated
non_constant_identifier_namesto allow named constructors made up of only underscores (_) - updated
avoid_unused_constructor_parametersto ignore unused params named in all underscores (_)
0.1.113 #
- updated documentation links
one_member_abstractsupdated to not lint classes with mixins or implementing interfacesunnecessary_getters_settersfixed to ignore cases where a getter/setter is deprecated- new lint:
leading_newlines_in_multiline_strings - improved highlight ranges for
avoid_private_typedef_functionsandavoid_returning_null_for_future
0.1.112 #
- marked
prefer_typing_uninitialized_variablesandomit_local_variable_typesas compatible
0.1.111+1 #
- new lint:
use_raw_strings - new lint:
unnecessary_raw_strings - new lint:
avoid_escaping_inner_quotes - new lint:
unnecessary_string_escapes - incompatible rule documentation improvements
0.1.110 #
- fixed flutter web plugin detection in
avoid_web_libraries_in_flutter - new lint:
unnecessary_string_interpolations - new lint:
missing_whitespace_between_adjacent_strings avoid_unused_constructor_parametersupdated to ignore deprecated parameters- new lint:
no_runtimeType_toString - miscellaneous doc fixes
0.1.109 #
- improved
prefer_single_quoteslint message unnecessary_finalsfixed to not flag fieldsunnecessary_lambdasfixed to work with type arguments- (internal) migrated to use analyzer
LinterContext.resolveNameInScope()API
0.1.108 #
- fixes to
avoid_redundant_argument_values - new lint:
use_key_in_widget_constructors always_put_required_parametersupdated for NNBD- updated to
package:analyzer0.39.3 APIs
0.1.107 #
- miscellaneous doc cleanup (typos, etc)
- new lint:
avoid_redundant_argument_values - updated
slash_for_doc_commentsto check mixin declarations - (internal) updates to use new
LinterContext.evaluateConstantAPI - improved docs for
always_require_non_null_named_parameters
0.1.106 #
- improved docs for
comment_references - fixed
null_closuresto properly handleIterable.singleWhere - (internal) migrated to latest analyzer APIs
- new lint:
no_logic_in_create_state
0.1.105+1 #
- fixed regressions in
always_require_non_null_named_parameters - (internal) pedantic lint clean-up
0.1.105 #
- hardened check for lib dir location (fixing crashes in
avoid_renaming_method_parameters,prefer_relative_importsandpublic_member_api_docs) - improved performance for
always_require_non_null_named_parameters
0.1.104 #
- updated
unnecessary_overridesto allow overrides when annotations (besides@overrideare specified) - updated
file_namesto allow names w/ leading_'s (and improved performance) - new lint:
unnecessary_final
0.1.103 #
- updated
prefer_relative_importsto use a faster and more robust way to check for self-package references - updated our approach to checking for
libdir contents (speeding upavoid_renaming_method_parametersand makingprefer_relative_importsandpublic_member_api_docsamenable to internal package formats -- w/o pubspecs)
0.1.102 #
avoid_web_libraries_in_flutterupdated to disallow access from all but Flutter web plugin packages- updated
avoid_returning_null_for_voidto check onlynullliterals (and not expressions havingNulltypes) - fixed
prefer_final_fieldsto respect non-mutating prefix operators - new lint:
prefer_is_not_operator - new lint:
avoid_unnecessary_containers - added basic nnbd-awareness to
avoid_init_to_null
0.1.101 #
- fixed
diagnostic_describe_all_propertiesto flag properties inDiagnosticables with no debug methods defined - fixed
noSuchMethodexception incamel_case_extensionswhen analyzing unnamed extensions - fixed
avoid_printto catch tear-off usage - new lint:
avoid_web_libraries_in_flutter(experimental) - (internal) prepare
unnecessary_lambdasfor comingMethodInvocationvs.FunctionExpressionInvocationchanges
0.1.100 #
- (internal) stop accessing
staticTypein favor of getting type ofFormalParameters from the declared element - (internal) remove stale analyzer work-around for collecting
TypeParameterElements inprefer_const_constructors
0.1.99 #
- fixed unsafe cast in
overridden_fields - (internal) migrated to the mock SDK in
package:analyzerfor testing - fixed empty argument list access in
use_full_hex_values_for_flutter_color_fix - new lint:
prefer_relative_imports - improved messages for
await_only_futures
0.1.98 #
- fixed null raw expression accesses in
use_to_and_as_if_applicable - (internal) migrated to using analyzer
InheritanceManager3
0.1.97+1 #
- enabled
camel_case_extensionsexperimental lint
0.1.97 #
- internal: migrated away from using analyzer
resolutionMap - various fixes and improvements to anticipate support for extension-methods
- new lint:
camel_case_extensions - rule template generation improvements
- new lint:
avoid_equals_and_hash_code_on_mutable_classes - extended
avoid_slow_async_ioto flag asyncDirectorymethods
0.1.96 #
- fixed false positives in
unnecessary_parens - various changes to migrate to preferred analyzer APIs
- rule test fixes
0.1.95 #
- improvements to
unsafe_htmlerror reporting - fixed false positive in
prefer_asserts_in_initializer_lists - fixed
prefer_const_constructorsto not flag@literalannotated constructors
0.1.94 #
- (internal): analyzer API call updates
- (internal): implicit cast cleanup
0.1.93 #
- new lint:
avoid_print
0.1.92 #
- improved
prefer_collection_literalsto better handleLinkedHashSets andLinkedHashMaps - updates to the Effective Dart rule set
- updated
prefer_final_fieldsto be more inclusive - miscellaneous documentation fixes
0.1.91 #
- fixed missed cases in
prefer_const_constructors - fixed
prefer_initializing_formalsto no longer suggest API breaking changes - updated
omit_local_variable_typesto allow explicitdynamics - (internal) migration from deprecated analyzer APIs
0.1.90 #
- fixed null-reference in
unrelated_type_equality_checks - new lint:
unsafe_html
0.1.89 #
- broadened
prefer_null_aware_operatorsto work beyond local variables - new lint:
prefer_if_null_operators - fixed
prefer_containsfalse positives - fixed
unnecessary_parenthesisfalse positives
0.1.88 #
- fixed
prefer_asserts_in_initializer_listsfalse positives - fixed
curly_braces_in_flow_control_structuresto handle more cases - new lint:
prefer_double_quotes - new lint:
sort_child_properties_last - fixed
type_annotate_public_apisfalse positive forstatic constinitializers
0.1.87 #
- change:
prefer_const_constructors_in_immutablesis currently overly permissive, pending analyzer changes (#1537) - fixed
unnecessary_await_in_returnfalse positive - fixed
unrelated_type_equality_checksfalse negative with functions - fixed
prefer_spread_collectionsto not lint in const contexts - fixed false positive in
prefer_iterable_whereTypeforis! - fixed false positive in
prefer_collection_literalsfor constructors with params
0.1.86 #
- updated
prefer_spread_collectionsto ignore calls toaddAllthat could be inlined - new lint:
prefer_inlined_adds
0.1.85 #
- (BREAKING) renamed
spread_collectionstoprefer_spread_collections - new lint:
prefer_for_elements_to_map_fromIterable - new lint:
prefer_if_elements_to_conditional_expressions - new lint:
diagnostic_describe_all_properties
0.1.84 #
- new lint:
spread_collections - (internal) update to analyzer 0.36.0 APIs
- new lint:
prefer_asserts_with_message
0.1.83 #
- updated
file_namesto skip prefixed-extension Dart files (e.g.,.css.dart,.g.dart) - updated SDK constraint to
2.2.0 - miscellaneous rule documentation fixes
- (internal) updated sources to use Set literals
- fixed NPE in
avoid_shadowing_type_parameters - added linter version numbering for use in analyzer summaries
- fixed type utilities to handle inheritance cycles
- (internal) changes to adopt new
package:analyzerAPIs - fixed
unnecessary_parenthesisfalse positives
0.1.82 #
- fixed
prefer_collection_literalsSet literal false positives - fixed
prefer_const_declarationsSet literal false positives - new lint:
provide_deprecation_message
0.1.81 #
- updated
prefer_collection_literalsto support Set literals
0.1.80 #
- deprecated
super_goes_last - (internal) migrations to analyzer's preferred
InheritanceManager2API
0.1.79 #
unnecessary_parenthesisupdated to play nicer with cascades- new lint:
use_full_hex_values_for_flutter_colors - new lint:
prefer_null_aware_operators - miscellaneous documentation fixes
- removed deprecated lints from the "all options" sample
- stopped registering "default lints"
hash_and_equalsfixed to respecthashCodefields
0.1.78 #
- restored
prefer_final_localsto ignore loop variables, and - introduced a new
prefer_final_in_for_eachlint to handle thefor eachcase
0.1.77 #
- updated
prefer_final_localsto check to for loop variables - fixed
type_annotate_public_apisfalse positives on local functions - fixed
avoid_shadowing_type_parametersto report shadowed type parameters in generic typedefs - fixed
use_setters_to_change_propertiesto not wrongly lint overriding methods - fixed
cascade_invocationsto not lint awaited targets - fixed
prefer_conditional_assignmentfalse positives - fixed
join_return_with_assignmentfalse positives - fixed
cascade_invocationsfalse positives - miscellaneous documentation improvements
- updated
invariant_booleansstatus to experimental
0.1.76 #
unnecessary_parenthesisupdated to allow wrapping a!argument- miscellaneous documentation grammar and spelling fixes
- improved error messages for
always_declare_return_types - fix
prefer_final_fieldsto work with classes that have generic type arguments - (internal): deprecated code cleanup
- fixed false positives in
unrelated_type_equality_checks
0.1.75 #
- analyzer package dependency bumped to
^0.34.0
0.1.74 #
- experimental lints
avoid_positional_boolean_parameters,literal_only_boolean_expressions,prefer_foreach,prefer_void_to_nullpromoted to stable unnecessary_parenthesisimproved to handle function expressions
0.1.73 #
- deprecated
prefer_bool_in_asserts(redundant w/ Dart 2 checks) - improved doc generation to highlight deprecated and experimental lints
- bumped analyzer lower-bound to
0.33.4 - bumped SDK lower-bound to
2.1.0 - new lint:
unnecessary_await_in_return
0.1.72 #
- new lint:
use_function_type_syntax_for_parameters - internal changes to migrate towards analyzer's new
LinterContextAPI - fix false positive in
use_setters_to_change_properties - implementation improvements (and speed-ups) to
prefer_foreachandpublic_member_api_docs - new lint:
avoid_returning_null_for_future - new lint:
avoid_shadowing_type_parameters
0.1.71 #
- new lint:
prefer_int_literals - update
await_only_futuresto allow awaiting onnull - update
use_setters_to_change_propertiesto work with=>short-hand
0.1.70 #
- fix NPE in
prefer_iterable_whereType
0.1.69 #
- improved message display for
await_only_futures - performance improvements for
null_closures - new lint:
avoid_returning_null_for_void
0.1.68 #
- updated analyzer compatibility to
^0.33.0
0.1.67 #
- miscellaneous mixin support fixes
- update to
sort_constructors_firstto apply to all members - update
unnecessary_thisto work on field initializers
0.1.66 #
- broadened SDK version constraint
0.1.65 #
- fix cast exceptions related to mixin support
0.1.64 #
- fixes to better support mixins
0.1.63 #
- updated
unawaited_futuresto ignore assignments within cascades - new lint:
sort_pub_dependencies
0.1.62 #
- new lint:
prefer_mixin - new lint:
avoid_implementing_value_types
0.1.61 #
- new lint:
flutter_style_todos - improved handling of constant expressions with generic type params
- NPE fix for
invariant_booleans - Google lints example moved to
package:pedantic - improved docs for
unawaited_futures
0.1.60 #
- new lint:
avoid_void_async unawaited_futuresupdated to check cascades
0.1.59 #
- relaxed
void_checks(allowingT Function()to be assigned tovoid Function()) - test and build improvements
- introduced Effective Dart rule set
- Google ruleset updates
- (internal cleanup): move cli main into
lib/ - fixed false positives in
lines_longer_than_80_chars - new lint:
prefer_void_to_null
0.1.58 #
- roll-back to explicit uses of
newandconstto be compatible w/ VMs running--no-preview-dart-2
0.1.57 #
- fix to
lines_longer_than_80_charsto handle CRLF endings - doc improvements
- set max SDK version to <3.0.0
- fix to
non_constant_identifier_namesto better handle invalid code - new lint:
curly_braces_in_flow_control_structures
0.1.56 #
- fix to
avoid_positional_boolean_parametersto ignore overridden methods - fix to
prefer_is_emptyto not evaluate constants beyond int literals - new lint:
null_closures - new lint:
lines_longer_than_80_chars
0.1.55 #
- fixed an issue in
consterror handling - updated
linterbinary to usepreviewDart2
0.1.54 #
- new
unnecessary_constlint - new
unnecessary_newlint - fixed errors in
use_to_and_as_if_applicable - new
file_nameslint
0.1.53 #
- updated
unnecessary_statementsto ignore getters (as they may be side-effecting).
0.1.52 #
- fixed
void_checksto handle arguments not resolved to a parameter - fixed exceptions produced by
prefer_const_literals_to_create_immutables
0.1.51 #
unrelated_type_equality_checksnow allows comparison betweenInt64orInt32andintunnecessary_parenthesisimproved to handle cascades in cascades
0.1.50 #
- migration of rules to use analyzer package
NodeLintRuleandUnitLintRuleyielding significant performance gains all around - specific performance improvements for
prefer_final_fields(~6x) - addressed no such method calls in
void_checks - improved lint reporting for various lints
0.1.49 #
- new
void_checkslint
0.1.48 #
- new
avoid_field_initializers_in_const_classeslint - miscellaneous documentation fixes
- improved handling of cascades in
unnecessary_statements - new
avoid_js_rounded_intslint
0.1.47 #
- new
avoid_double_and_int_checkslint - fix to handle uninitialized vars in
prefer_const_declarations - fix for generic function type handling in
avoid_types_as_parameter_names - new
prefer_iterable_whereTypelint - new
prefer_generic_function_type_aliaseslint - Dart 2 compatibility fixes
0.1.46 #
- performance fixes for library prefix testing (
library_prefixes) - new
avoid_bool_literals_in_conditional_expressionslint - new
prefer_equal_for_default_valueslint - new
avoid_private_typedef_functionslint - new
avoid_single_cascade_in_expression_statementslint
0.1.45 #
- fix for
invariant_booleanswhen analyzing for loops with no condition - new
avoid_types_as_parameter_nameslint - new
avoid_renaming_method_parameterslint
0.1.44 #
- new
avoid_relative_lib_importslint - new
unnecessary_parenthesislint - fix to
prefer_const_literals_to_create_immutablesto handle undefined classes gracefully - updates to
prefer_const_declarationsto support optionalnewandconst prefer_const_declarationsupdated to check locals- fixes to
invariant_booleans - bumped SDK lower bound to
2.0.0-dev - build and workflow improvements: rule template fixes; formatting and header validation
- miscellaneous documentation fixes
0.1.43 #
- new
prefer_const_declarations.dartlint - new
prefer_const_literals_to_create_immutableslint - miscellaneous documentation improvements
0.1.42 #
- added support for external constructors in
avoid_unused_constructor_parameters - added code reference resolution docs for
comment_references
0.1.41 #
- broadened
argspackage dependency to support versions1.*
0.1.40 #
avoid_unused_constructor_parametersupdated to better handle redirecting factory constructorsavoid_returning_thisimprovementsprefer_bool_in_assertsimprovements- miscellaneous documentation fixes
0.1.39 #
prefer_interpolation_to_compose_stringsupdated to allow concatenation of two non-literal stringsprefer_interpolation_to_compose_stringsupdated to allow+=- lots of rule documentation fixes and enhancements
- fix for
prefer_const_constructors_in_immutablesfalse positive with redirecting factory constructors
0.1.38 #
public_member_api_docsfix for package URIs
0.1.37 #
avoid_positional_boolean_parametersupdated to allow booleans in operator declarationscomment_referencesfixed to handle incomplete referencesnon_constant_identifier_namesupdated to allow underscores around numbers
0.1.36 #
- new
avoid_unused_constructor_parameterslint - new
prefer_bool_in_assertslint - new
prefer_typing_uninitialized_variableslint - new
unnecessary_statementslint public_member_api_docsupdated to only lint source inlib/- 'avoid_empty_else' fixed to ignore synthetic
EmptyStatements - updated library prefix checking to allow leading
$s - miscellaneous documentation fixes
- Dart SDK constraints restored (removed unneeded
2.0.0-dev.infinityconstraint)
0.1.35 #
- linter engine updated to use new analysis driver
0.1.34 #
Features #
non_constant_identifier_namesextended to include named constructors- SDK constraint broadened to
2.0.0-dev.infinity - improved
prefer_final_fieldsperformance
Fixes #
- fixes to
unnecessary_overrides(noSuchMethodhandling, return type narrowing, special casing of documentedsupercalls) - fix to
non_constant_identifier_namesto handle identifiers with no name - fixes to
prefer_const_constructorsto support list literals - fixes to
recursive_getters - fixes to
cascade_invocations
0.1.33 #
Features #
- new
prefer_const_constructors_in_immutableslint - new
always_put_required_named_parameters_firstlint - new
prefer_asserts_in_initializer_listslint - support for running in
--benchmarkmode - new
prefer_single_quote_stringslint
Fixes #
- docs for
avoid_setters_without_getters - fix to
directives_orderingto work with part directives located after exports - fixes to
cascade_invocationsfalse positives - fixes to
literal_only_boolean_expressionsfalse positives - fix to ensure
cascade_invocationsonly lints method invocations if target is a simple identifier - fixes to
use_string_buffersfalse positives - fixes to
prefer_const_constructors
0.1.32 #
- Lint stats (
-s) output now sorted.
0.1.31 #
- New
prefer_foreachlint. - New
use_string_buffersrule. - New
unnecessary_overridesrule. - New
join_return_with_assignment_when_possiblerule. - New
use_to_and_as_if_applicablerule. - New
avoid_setters_without_gettersrule. - New
always_put_control_body_on_new_linerule. - New
avoid_positional_boolean_parametersrule. - New
always_require_non_null_named_parametersrule. - New
prefer_conditional_assignmentrule. - New
avoid_types_on_closure_parametersrule. - New
always_put_control_body_on_new_linerule. - New
use_setters_to_change_propertiesrule. - New
avoid_returning_thisrule. - New
avoid_annotating_with_dynamic_when_not_requiredrule. - New
prefer_constructors_over_static_methodsrule. - New
avoid_returning_nullrule. - New
avoid_classes_with_only_static_membersrule. - New
avoid_null_checks_in_equality_operatorsrule. - New
avoid_catches_without_on_clausesrule. - New
avoid_catching_errorsrule. - New
use_rethrow_when_possiblerule. - Many lint fixes (notably
prefer_final_fields,unnecessary_lambdas,await_only_futures,cascade_invocations,avoid_types_on_closure_parameters, andoverridden_fields). - Significant performance improvements for
prefer_interpolation_to_compose_strings. - New
unnecessary_thisrule. - New
prefer_initializing_formalsrule.
0.1.30 #
- New
avoid_function_literals_in_foreach_callslint. - New
avoid_slow_async_iolint. - New
cascade_invocationslint. - New
directives_orderinglint. - New
no_adjacent_strings_in_listlint. - New
no_duplicate_case_valueslint. - New
omit_local_variable_typeslint. - New
prefer_adjacent_string_concatenationlint. - New
prefer_collection_literalslint. - New
prefer_const_constructorslint. - New
prefer_containslint. - New
prefer_expression_function_bodieslint. - New
prefer_function_declarations_over_variableslint. - New
prefer_initializing_formalslint. - New
prefer_interpolation_to_compose_stringslint. - New
prefer_is_emptylint. - New
recursive_getterslint. - New
unnecessary_brace_in_string_interpslint. - New
unnecessary_lambdaslint. - New
unnecessary_null_aware_assignmentslint. - New
unnecessary_null_in_if_null_operatorslint. - Miscellaneous bug fixes and codegen improvements.
0.1.29 #
- New
cascade_invocationslint. - Expand
await_only_futuresto accept classes that extend or implementFuture. - Improve camel case regular expression tests to accept
$s. - Fixes to
parameter_assignments(improved getter handling and an NPE).
0.1.27 #
- Fixed cast exception in
dart_type_utilities(dart-lang/sdk#27405). - New
parameter_assignmentslint. - New
prefer_final_fieldslint. - New
prefer_final_localslint. - Markdown link fixes in docs (#306).
- Miscellaneous solo test running fixes and introduction of
solo_debug(#304).
0.1.26 #
- Updated tests to use package
test(#302).
0.1.25 #
- Fixed false positive on
[]=inalways_declare_return_types(#300). - New
invariant_booleanslint. - New
literal_only_boolean_expressionslint. - Fixed
camel_case_typesto allow$in identifiers (#290).
0.1.24 #
- Internal updates to keep up with changes in the analyzer package.
- Updated
close_sinksto respect calls todestroy(#282). - Fixed
only_throw_errorsto report on the expression not node.
0.1.23 #
- Removed
whitespace_around_opspending re-name and re-design (#249).
0.1.22 #
- Grinder support (
rule:rule_nameanddocs:location) for rule stub and doc generation (respectively). - Fix to allow leading underscores in
non_constant_identifier_names. - New
valid_regexpslint (#277). - New
whitespace_around_opslint (#249). - Fix to
overridden_fieldsto flag overridden static fields (#274). - New
list_remove_unrelated_typeto detect passing a non-Tvalue to `List.remove()`` (#271). - New
empty_catcheslint to catch empty catch blocks (#43). - Fixed
close_sinksfalse positive (#268). lintersupport for--strongto allow for running linter in strong mode.
0.1.21 #
- New
only_throw_errorslint. - New lint to check for
empty_statements(#259). - Fixed NSME when file contents cannot be read (#260).
- Fixed unsafe cast in
iterable_contains_unrelated_type(#267).
0.1.20 #
- New
cancel_subscriptionslint.
0.1.19 #
- New
close_sinkslint. - Fixes to
iterable_contains_unrelated_type.
0.1.18 #
- Fix NSME in
iterable_contains_unrelated_type(#245). - Fixed typo in
comment_referenceserror description. - Fix
overriden_fieldfalse positive (#246). - Rename linter binary
lintsoption torules(#248). - Help doc tweaks.
0.1.17 #
- Fix to
public_member_api_docsto check for documented getters when checking setters (#237). - New
iterable_contains_unrelated_typelint to detect whenIterable.containsis invoked with an object of an unrelated type. - New
comment_referenceslint to ensure identifiers referenced in docs are in scope (#240).
0.1.16 #
- Fix for false positive in
overriden_fields. - New
unrelated_type_equality_checkslint. - Fix to accept
$identifiers in string interpolation lint (#214). - Update to new
pluginAPI (0.2.0). - Strong mode cleanup.
0.1.15 #
- Fix to allow simple getter/setters when a decl is ``@protected` (#215).
- Fix to not require type params in
ischecks (#227). - Fix to not flag field formal identifiers in parameters (#224).
- Fix to respect filters when calculating error codes (#198).
- Fix to allow
constandfinalvars to be initialized to null (#210). - Fix to respect commented blocks in
empty_constructor_bodies(#209). - Fix to check types on list/map literals (#199).
- Fix to skip
mainwhen checking for API docs (#207). - Fix to allow leading
$in type names (#220). - Fix to ignore private typedefs when checking for types (#216).
- New
test_types_in_equalslint. - New
await_only_futureslint. - New
throw_in_finallylint. - New
control_flow_in_finallylint.
0.1.14 #
- Fix to respect
@optionalTypeArgs(#196). - Lint to warn if a field overrides or hides other field.
- Fix to allow single char UPPER_CASE non-constants (#201).
- Fix to accept casts to dynamic (#195).
0.1.13 #
- Fix to skip overriding members in API doc checks (
public_member_api_docs). - Fix to suppress lints on synthetic nodes/tokens (#193).
- Message fixes (
annotate_overrides,public_member_api_docs). - Fix to exclude setters from return type checks (#192).
0.1.12 #
- Fix to address
LibraryNamesregexp that in pathological cases went exponential.
0.1.11 #
- Doc generation improvements (now with options samples).
- Lint to sort unnamed constructors first (#187).
- Lint to ensure public members have API docs (#188).
- Lint to ensure constructors are sorted first (#186).
- Lint for
hashCodeand==(#168). - Lint to detect un-annotated overrides (#167).
- Fix to ignore underscores in public APIs (#153).
- Lint to check for return types on setters (#122).
- Lint to flag missing type params (#156).
- Lint to avoid inits to
null(#160).
0.1.10 #
- Updated to use
analyzer0.27.0. - Updated options processing to handle untyped maps (dart-lang/sdk#25126).
0.1.9 #
- Fix
type_annotate_public_apisto properly handle getters/setters (#151; dart-lang/sdk#25092).
0.1.8 #
- Fix to protect against errors in linting invalid source (dart-lang/sdk#24910).
- Added
avoid_empty_elselint rule (dart-lang/sdk#224936).
0.1.7 #
- Fix to
package_api_docs(dart-lang/sdk#24947; #154).
0.1.6 #
- Fix to
package_prefixed_library_names(dart-lang/sdk#24947; #154).
0.1.5 #
- Added
prefer_is_not_emptylint rule (#143). - Added
type_annotate_public_apislint rule (#24). - Added
avoid_aslint rule (#145). - Fixed
non_constant_identifier_namesrule to special case underscore identifiers in callbacks. - Fix to escape
_s in callback type validation (addresses false positives inalways_specify_types) (#147).
0.1.4 #
- Added
always_declare_return_typeslint rule (#146). - Improved
always_specify_typesto detect missing types in declared identifiers and narrowed source range to the token. - Added
implementation_importslint rule (#33). - Test performance improvements.
0.1.3+5 #
- Added
always_specify_typeslint rule (#144).
0.1.3+4 #
- Fixed linter registry memory leaks.
0.1.3 #
- Fixed various options file parsing issues.
0.1.2 #
- Fixed false positives in
unnecessary_brace_in_string_interplint. Fix #112.
0.1.1 #
- Internal code and dependency constraint cleanup.
0.1.0 #
- Initial stable release.
0.0.2+1 #
- Added machine output option. Fix #69.
- Fixed resolution of files in
lib/to use apackage:URI. Fix #49. - Tightened up
analyzerpackage constraints. - Fixed false positives in
one_member_abstractslint. Fix #64.
0.0.2 #
- Initial push to pub.