diff --git a/.github/labeler.yml b/.github/labeler.yml index 0375cabf7..2df902e53 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,104 +1,107 @@ # Auto-generated by `tool/labeler/pr_config.dart` set-core: - - lib/**/avoid_empty_else.dart - - lib/**/avoid_relative_lib_imports.dart - - lib/**/avoid_shadowing_type_parameters.dart - - lib/**/avoid_types_as_parameter_names.dart - - lib/**/await_only_futures.dart - - lib/**/camel_case_extensions.dart - - lib/**/camel_case_types.dart - - lib/**/collection_methods_unrelated_type.dart - - lib/**/curly_braces_in_flow_control_structures.dart - - lib/**/depend_on_referenced_packages.dart - - lib/**/empty_catches.dart - - lib/**/file_names.dart - - lib/**/hash_and_equals.dart - - lib/**/implicit_call_tearoffs.dart - - lib/**/no_duplicate_case_values.dart - - lib/**/non_constant_identifier_names.dart - - lib/**/null_check_on_nullable_type_parameter.dart - - lib/**/package_prefixed_library_names.dart - - lib/**/prefer_generic_function_type_aliases.dart - - lib/**/prefer_is_empty.dart - - lib/**/prefer_is_not_empty.dart - - lib/**/prefer_iterable_whereType.dart - - lib/**/prefer_typing_uninitialized_variables.dart - - lib/**/provide_deprecation_message.dart - - lib/**/unnecessary_overrides.dart - - lib/**/unrelated_type_equality_checks.dart - - lib/**/use_string_in_part_of_directives.dart - - lib/**/valid_regexps.dart - - lib/**/void_checks.dart + - changed-files: + - any-glob-to-any-file: lib/**/avoid_empty_else.dart + - any-glob-to-any-file: lib/**/avoid_relative_lib_imports.dart + - any-glob-to-any-file: lib/**/avoid_shadowing_type_parameters.dart + - any-glob-to-any-file: lib/**/avoid_types_as_parameter_names.dart + - any-glob-to-any-file: lib/**/await_only_futures.dart + - any-glob-to-any-file: lib/**/camel_case_extensions.dart + - any-glob-to-any-file: lib/**/camel_case_types.dart + - any-glob-to-any-file: lib/**/collection_methods_unrelated_type.dart + - any-glob-to-any-file: lib/**/curly_braces_in_flow_control_structures.dart + - any-glob-to-any-file: lib/**/depend_on_referenced_packages.dart + - any-glob-to-any-file: lib/**/empty_catches.dart + - any-glob-to-any-file: lib/**/file_names.dart + - any-glob-to-any-file: lib/**/hash_and_equals.dart + - any-glob-to-any-file: lib/**/implicit_call_tearoffs.dart + - any-glob-to-any-file: lib/**/no_duplicate_case_values.dart + - any-glob-to-any-file: lib/**/non_constant_identifier_names.dart + - any-glob-to-any-file: lib/**/null_check_on_nullable_type_parameter.dart + - any-glob-to-any-file: lib/**/package_prefixed_library_names.dart + - any-glob-to-any-file: lib/**/prefer_generic_function_type_aliases.dart + - any-glob-to-any-file: lib/**/prefer_is_empty.dart + - any-glob-to-any-file: lib/**/prefer_is_not_empty.dart + - any-glob-to-any-file: lib/**/prefer_iterable_whereType.dart + - any-glob-to-any-file: lib/**/prefer_typing_uninitialized_variables.dart + - any-glob-to-any-file: lib/**/provide_deprecation_message.dart + - any-glob-to-any-file: lib/**/unnecessary_overrides.dart + - any-glob-to-any-file: lib/**/unrelated_type_equality_checks.dart + - any-glob-to-any-file: lib/**/use_string_in_part_of_directives.dart + - any-glob-to-any-file: lib/**/valid_regexps.dart + - any-glob-to-any-file: lib/**/void_checks.dart set-recommended: - - lib/**/annotate_overrides.dart - - lib/**/avoid_function_literals_in_foreach_calls.dart - - lib/**/avoid_init_to_null.dart - - lib/**/avoid_null_checks_in_equality_operators.dart - - lib/**/avoid_renaming_method_parameters.dart - - lib/**/avoid_return_types_on_setters.dart - - lib/**/avoid_returning_null_for_void.dart - - lib/**/avoid_single_cascade_in_expression_statements.dart - - lib/**/constant_identifier_names.dart - - lib/**/control_flow_in_finally.dart - - lib/**/empty_constructor_bodies.dart - - lib/**/empty_statements.dart - - lib/**/exhaustive_cases.dart - - lib/**/implementation_imports.dart - - lib/**/library_names.dart - - lib/**/library_prefixes.dart - - lib/**/library_private_types_in_public_api.dart - - lib/**/no_leading_underscores_for_library_prefixes.dart - - lib/**/no_leading_underscores_for_local_identifiers.dart - - lib/**/null_closures.dart - - lib/**/overridden_fields.dart - - lib/**/package_names.dart - - lib/**/prefer_adjacent_string_concatenation.dart - - lib/**/prefer_collection_literals.dart - - lib/**/prefer_conditional_assignment.dart - - lib/**/prefer_contains.dart - - lib/**/prefer_equal_for_default_values.dart - - lib/**/prefer_final_fields.dart - - lib/**/prefer_for_elements_to_map_fromIterable.dart - - lib/**/prefer_function_declarations_over_variables.dart - - lib/**/prefer_if_null_operators.dart - - lib/**/prefer_initializing_formals.dart - - lib/**/prefer_inlined_adds.dart - - lib/**/prefer_interpolation_to_compose_strings.dart - - lib/**/prefer_is_not_operator.dart - - lib/**/prefer_null_aware_operators.dart - - lib/**/prefer_spread_collections.dart - - lib/**/prefer_void_to_null.dart - - lib/**/recursive_getters.dart - - lib/**/slash_for_doc_comments.dart - - lib/**/type_init_formals.dart - - lib/**/unnecessary_brace_in_string_interps.dart - - lib/**/unnecessary_const.dart - - lib/**/unnecessary_constructor_name.dart - - lib/**/unnecessary_getters_setters.dart - - lib/**/unnecessary_late.dart - - lib/**/unnecessary_new.dart - - lib/**/unnecessary_null_aware_assignments.dart - - lib/**/unnecessary_null_in_if_null_operators.dart - - lib/**/unnecessary_nullable_for_final_variable_declarations.dart - - lib/**/unnecessary_string_escapes.dart - - lib/**/unnecessary_string_interpolations.dart - - lib/**/unnecessary_this.dart - - lib/**/use_function_type_syntax_for_parameters.dart - - lib/**/use_rethrow_when_possible.dart + - changed-files: + - any-glob-to-any-file: lib/**/annotate_overrides.dart + - any-glob-to-any-file: lib/**/avoid_function_literals_in_foreach_calls.dart + - any-glob-to-any-file: lib/**/avoid_init_to_null.dart + - any-glob-to-any-file: lib/**/avoid_null_checks_in_equality_operators.dart + - any-glob-to-any-file: lib/**/avoid_renaming_method_parameters.dart + - any-glob-to-any-file: lib/**/avoid_return_types_on_setters.dart + - any-glob-to-any-file: lib/**/avoid_returning_null_for_void.dart + - any-glob-to-any-file: lib/**/avoid_single_cascade_in_expression_statements.dart + - any-glob-to-any-file: lib/**/constant_identifier_names.dart + - any-glob-to-any-file: lib/**/control_flow_in_finally.dart + - any-glob-to-any-file: lib/**/empty_constructor_bodies.dart + - any-glob-to-any-file: lib/**/empty_statements.dart + - any-glob-to-any-file: lib/**/exhaustive_cases.dart + - any-glob-to-any-file: lib/**/implementation_imports.dart + - any-glob-to-any-file: lib/**/library_names.dart + - any-glob-to-any-file: lib/**/library_prefixes.dart + - any-glob-to-any-file: lib/**/library_private_types_in_public_api.dart + - any-glob-to-any-file: lib/**/no_leading_underscores_for_library_prefixes.dart + - any-glob-to-any-file: lib/**/no_leading_underscores_for_local_identifiers.dart + - any-glob-to-any-file: lib/**/null_closures.dart + - any-glob-to-any-file: lib/**/overridden_fields.dart + - any-glob-to-any-file: lib/**/package_names.dart + - any-glob-to-any-file: lib/**/prefer_adjacent_string_concatenation.dart + - any-glob-to-any-file: lib/**/prefer_collection_literals.dart + - any-glob-to-any-file: lib/**/prefer_conditional_assignment.dart + - any-glob-to-any-file: lib/**/prefer_contains.dart + - any-glob-to-any-file: lib/**/prefer_equal_for_default_values.dart + - any-glob-to-any-file: lib/**/prefer_final_fields.dart + - any-glob-to-any-file: lib/**/prefer_for_elements_to_map_fromIterable.dart + - any-glob-to-any-file: lib/**/prefer_function_declarations_over_variables.dart + - any-glob-to-any-file: lib/**/prefer_if_null_operators.dart + - any-glob-to-any-file: lib/**/prefer_initializing_formals.dart + - any-glob-to-any-file: lib/**/prefer_inlined_adds.dart + - any-glob-to-any-file: lib/**/prefer_interpolation_to_compose_strings.dart + - any-glob-to-any-file: lib/**/prefer_is_not_operator.dart + - any-glob-to-any-file: lib/**/prefer_null_aware_operators.dart + - any-glob-to-any-file: lib/**/prefer_spread_collections.dart + - any-glob-to-any-file: lib/**/prefer_void_to_null.dart + - any-glob-to-any-file: lib/**/recursive_getters.dart + - any-glob-to-any-file: lib/**/slash_for_doc_comments.dart + - any-glob-to-any-file: lib/**/type_init_formals.dart + - any-glob-to-any-file: lib/**/unnecessary_brace_in_string_interps.dart + - any-glob-to-any-file: lib/**/unnecessary_const.dart + - any-glob-to-any-file: lib/**/unnecessary_constructor_name.dart + - any-glob-to-any-file: lib/**/unnecessary_getters_setters.dart + - any-glob-to-any-file: lib/**/unnecessary_late.dart + - any-glob-to-any-file: lib/**/unnecessary_new.dart + - any-glob-to-any-file: lib/**/unnecessary_null_aware_assignments.dart + - any-glob-to-any-file: lib/**/unnecessary_null_in_if_null_operators.dart + - any-glob-to-any-file: lib/**/unnecessary_nullable_for_final_variable_declarations.dart + - any-glob-to-any-file: lib/**/unnecessary_string_escapes.dart + - any-glob-to-any-file: lib/**/unnecessary_string_interpolations.dart + - any-glob-to-any-file: lib/**/unnecessary_this.dart + - any-glob-to-any-file: lib/**/use_function_type_syntax_for_parameters.dart + - any-glob-to-any-file: lib/**/use_rethrow_when_possible.dart set-flutter: - - lib/**/avoid_print.dart - - lib/**/avoid_unnecessary_containers.dart - - lib/**/avoid_web_libraries_in_flutter.dart - - lib/**/no_logic_in_create_state.dart - - lib/**/prefer_const_constructors.dart - - lib/**/prefer_const_constructors_in_immutables.dart - - lib/**/prefer_const_declarations.dart - - lib/**/prefer_const_literals_to_create_immutables.dart - - lib/**/sized_box_for_whitespace.dart - - lib/**/sort_child_properties_last.dart - - lib/**/use_build_context_synchronously.dart - - lib/**/use_full_hex_values_for_flutter_colors.dart - - lib/**/use_key_in_widget_constructors.dart + - changed-files: + - any-glob-to-any-file: lib/**/avoid_print.dart + - any-glob-to-any-file: lib/**/avoid_unnecessary_containers.dart + - any-glob-to-any-file: lib/**/avoid_web_libraries_in_flutter.dart + - any-glob-to-any-file: lib/**/no_logic_in_create_state.dart + - any-glob-to-any-file: lib/**/prefer_const_constructors.dart + - any-glob-to-any-file: lib/**/prefer_const_constructors_in_immutables.dart + - any-glob-to-any-file: lib/**/prefer_const_declarations.dart + - any-glob-to-any-file: lib/**/prefer_const_literals_to_create_immutables.dart + - any-glob-to-any-file: lib/**/sized_box_for_whitespace.dart + - any-glob-to-any-file: lib/**/sort_child_properties_last.dart + - any-glob-to-any-file: lib/**/use_build_context_synchronously.dart + - any-glob-to-any-file: lib/**/use_full_hex_values_for_flutter_colors.dart + - any-glob-to-any-file: lib/**/use_key_in_widget_constructors.dart diff --git a/tool/labeler/pr_config.dart b/tool/labeler/pr_config.dart index 0cda28523..e1117f82c 100644 --- a/tool/labeler/pr_config.dart +++ b/tool/labeler/pr_config.dart @@ -36,15 +36,18 @@ void main(List args) async { printToConsole('# Auto-generated by `tool/labeler/pr_config.dart`'); printToConsole('\nset-core:'); + printToConsole(' - changed-files:'); for (var lint in coreLints.sorted()) { - printToConsole('- lib/**/$lint.dart'); + printToConsole(' - any-glob-to-any-file: lib/**/$lint.dart'); } printToConsole('\nset-recommended:'); + printToConsole(' - changed-files:'); for (var lint in recommendedLints.sorted()) { - printToConsole('- lib/**/$lint.dart'); + printToConsole(' - any-glob-to-any-file: lib/**/$lint.dart'); } printToConsole('\nset-flutter:'); + printToConsole(' - changed-files:'); for (var lint in flutterLints.sorted()) { - printToConsole('- lib/**/$lint.dart'); + printToConsole(' - any-glob-to-any-file: lib/**/$lint.dart'); } }