Open whatever you want in Dart, such as URLs, files or executables, regardless of the platform you use. https://docs.belin.io/open.dart
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

168 lines
5.1 KiB

  1. analyzer:
  2. exclude:
  3. - lib/**.g.dart
  4. - lib/src/version.dart
  5. linter:
  6. rules:
  7. - always_declare_return_types
  8. - always_put_required_named_parameters_first
  9. - always_require_non_null_named_parameters
  10. - annotate_overrides
  11. - avoid_annotating_with_dynamic
  12. - avoid_as
  13. - avoid_bool_literals_in_conditional_expressions
  14. - avoid_catches_without_on_clauses
  15. - avoid_catching_errors
  16. - avoid_classes_with_only_static_members
  17. - avoid_double_and_int_checks
  18. - avoid_empty_else
  19. - avoid_equals_and_hash_code_on_mutable_classes
  20. - avoid_escaping_inner_quotes
  21. - avoid_field_initializers_in_const_classes
  22. - avoid_function_literals_in_foreach_calls
  23. - avoid_implementing_value_types
  24. - avoid_init_to_null
  25. - avoid_js_rounded_ints
  26. - avoid_null_checks_in_equality_operators
  27. - avoid_positional_boolean_parameters
  28. - avoid_print
  29. - avoid_private_typedef_functions
  30. - avoid_redundant_argument_values
  31. - avoid_relative_lib_imports
  32. - avoid_renaming_method_parameters
  33. - avoid_return_types_on_setters
  34. - avoid_returning_null
  35. - avoid_returning_null_for_future
  36. - avoid_returning_null_for_void
  37. - avoid_returning_this
  38. - avoid_setters_without_getters
  39. - avoid_shadowing_type_parameters
  40. - avoid_single_cascade_in_expression_statements
  41. - avoid_slow_async_io
  42. - avoid_types_as_parameter_names
  43. - avoid_types_on_closure_parameters
  44. - avoid_unnecessary_containers
  45. - avoid_unused_constructor_parameters
  46. - avoid_void_async
  47. - avoid_web_libraries_in_flutter
  48. - await_only_futures
  49. - camel_case_extensions
  50. - camel_case_types
  51. - cancel_subscriptions
  52. - cascade_invocations
  53. - close_sinks
  54. - comment_references
  55. - constant_identifier_names
  56. - control_flow_in_finally
  57. - diagnostic_describe_all_properties
  58. - directives_ordering
  59. - do_not_use_environment
  60. - empty_catches
  61. - empty_constructor_bodies
  62. - empty_statements
  63. - exhaustive_cases
  64. - file_names
  65. - hash_and_equals
  66. - implementation_imports
  67. - invariant_booleans
  68. - iterable_contains_unrelated_type
  69. - join_return_with_assignment
  70. - leading_newlines_in_multiline_strings
  71. - library_names
  72. - library_prefixes
  73. - list_remove_unrelated_type
  74. - literal_only_boolean_expressions
  75. - missing_whitespace_between_adjacent_strings
  76. - no_adjacent_strings_in_list
  77. - no_duplicate_case_values
  78. - no_logic_in_create_state
  79. - no_runtimeType_toString
  80. - non_constant_identifier_names
  81. - null_closures
  82. - omit_local_variable_types
  83. - one_member_abstracts
  84. - only_throw_errors
  85. - overridden_fields
  86. - package_api_docs
  87. - package_names
  88. - package_prefixed_library_names
  89. - parameter_assignments
  90. - prefer_adjacent_string_concatenation
  91. - prefer_asserts_in_initializer_lists
  92. - prefer_collection_literals
  93. - prefer_conditional_assignment
  94. - prefer_const_constructors
  95. - prefer_const_constructors_in_immutables
  96. - prefer_const_declarations
  97. - prefer_const_literals_to_create_immutables
  98. - prefer_constructors_over_static_methods
  99. - prefer_contains
  100. - prefer_double_quotes
  101. - prefer_equal_for_default_values
  102. - prefer_expression_function_bodies
  103. - prefer_final_fields
  104. - prefer_final_in_for_each
  105. - prefer_final_locals
  106. - prefer_for_elements_to_map_fromIterable
  107. - prefer_foreach
  108. - prefer_function_declarations_over_variables
  109. - prefer_generic_function_type_aliases
  110. - prefer_if_elements_to_conditional_expressions
  111. - prefer_if_null_operators
  112. - prefer_initializing_formals
  113. - prefer_inlined_adds
  114. - prefer_int_literals
  115. - prefer_interpolation_to_compose_strings
  116. - prefer_is_empty
  117. - prefer_is_not_empty
  118. - prefer_is_not_operator
  119. - prefer_iterable_whereType
  120. - prefer_mixin
  121. - prefer_null_aware_operators
  122. - prefer_relative_imports
  123. - prefer_spread_collections
  124. - prefer_typing_uninitialized_variables
  125. - prefer_void_to_null
  126. - provide_deprecation_message
  127. - public_member_api_docs
  128. - recursive_getters
  129. - sized_box_for_whitespace
  130. - slash_for_doc_comments
  131. - sort_child_properties_last
  132. - sort_constructors_first
  133. - sort_pub_dependencies
  134. - sort_unnamed_constructors_first
  135. - test_types_in_equals
  136. - throw_in_finally
  137. - type_init_formals
  138. - unawaited_futures
  139. - unnecessary_await_in_return
  140. - unnecessary_brace_in_string_interps
  141. - unnecessary_const
  142. - unnecessary_getters_setters
  143. - unnecessary_lambdas
  144. - unnecessary_new
  145. - unnecessary_null_aware_assignments
  146. - unnecessary_null_in_if_null_operators
  147. - unnecessary_overrides
  148. - unnecessary_parenthesis
  149. - unnecessary_raw_strings
  150. - unnecessary_statements
  151. - unnecessary_string_escapes
  152. - unnecessary_string_interpolations
  153. - unnecessary_this
  154. - unrelated_type_equality_checks
  155. - unsafe_html
  156. - use_full_hex_values_for_flutter_colors
  157. - use_function_type_syntax_for_parameters
  158. - use_is_even_rather_than_modulo
  159. - use_key_in_widget_constructors
  160. - use_raw_strings
  161. - use_rethrow_when_possible
  162. - use_setters_to_change_properties
  163. - use_string_buffers
  164. - use_to_and_as_if_applicable
  165. - valid_regexps
  166. - void_checks