Skip to content

Commit

Permalink
Merge pull request #5 from Iconica-Development/feature/v5.0.0
Browse files Browse the repository at this point in the history
feat: version 5.0.0 of linter
  • Loading branch information
freekvandeven authored Mar 20, 2023
2 parents 8012483 + 68e5caa commit 1573511
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 38 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.0.0

- Improved version of `analysis_options`

# 4.0.0

- Improved version of `analysis_options`
Expand Down
120 changes: 83 additions & 37 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ linter:
no_duplicate_case_values: true # core
no_logic_in_create_state: true # flutter
prefer_void_to_null: true # flutter
test_types_in_equals: false
throw_in_finally: true
unnecessary_statements: true
unrelated_type_equality_checks: true # core
unsafe_html: true
use_build_context_synchronously: true # flutter
use_key_in_widget_constructors: true # flutter
valid_regexps: true # core
Expand All @@ -50,95 +53,138 @@ linter:
always_put_control_body_on_new_line: false
always_put_required_named_parameters_first: true
always_specify_types: false
annotate_overrides: true # core
annotate_overrides: true # flutter
avoid_annotating_with_dynamic: true
avoid_bool_literals_in_conditional_expressions: true
avoid_catching_errors: true
avoid_classes_with_only_static_members: true
avoid_field_initializers_in_const_classes: true
avoid_final_parameters: true
avoid_function_literals_in_foreach_calls: true # flutter
avoid_init_to_null: true # flutter
avoid_multiple_declarations_per_line: true
avoid_null_checks_in_equality_operators: true # flutter
avoid_positional_boolean_parameters: true
avoid_renaming_method_parameters: true # flutter
avoid_return_types_on_setters: true # flutter
avoid_returning_null_for_void: true # flutter
avoid_shadowing_type_parameters: true # core
avoid_single_cascade_in_expression_statements: true # flutter
avoid_unnecessary_containers: true # flutter
avoid_unused_constructor_parameters: true
avoid_void_async: true
camel_case_extensions: true # core
curly_braces_in_flow_control_structures: false
camel_case_types: true # core
combinators_ordering: true
conditional_uri_does_not_exist: true
constant_identifier_names: true # flutter
curly_braces_in_flow_control_structures: false # core
deprecated_consistency: true
directives_ordering: true
do_not_use_environment: true
empty_catches: true # core
empty_constructor_bodies: true # flutter
enable_null_safety: true
eol_at_end_of_file: true
file_names: true
exhaustive_cases: true # flutter
file_names: true # core
flutter_style_todos: true
library_names: true
library_prefixes: true
implementation_imports: true # flutter
implicit_call_tearoffs: true
join_return_with_assignment: false
leading_newlines_in_multiline_strings: true
library_names: true # flutter
library_prefixes: true # flutter
library_private_types_in_public_api: true # flutter
lines_longer_than_80_chars: true
missing_whitespace_between_adjacent_strings: true
no_leading_underscores_for_library_prefixes: true # flutter
no_leading_underscores_for_local_identifiers: true # flutter
no_runtimeType_toString: true
non_constant_identifier_names: true # core
noop_primitive_operations: true
null_check_on_nullable_type_parameter: true # core
null_closures: true # flutter
omit_local_variable_types: true
only_throw_errors: true
overridden_fields: true # flutter
package_api_docs: true
package_prefixed_library_names: true # core
parameter_assignments: true
prefer_final_locals: false
prefer_final_fields: true
prefer_adjacent_string_concatenation: true
prefer_conditional_assignment: true
prefer_final_fields: true # flutter
prefer_adjacent_string_concatenation: true # flutter
prefer_asserts_with_message: true
prefer_collection_literals: true # flutter
prefer_conditional_assignment: true # flutter
prefer_const_constructors: true # flutter
prefer_const_constructors_in_immutables: true # flutter
prefer_constructors_over_static_methods: true
prefer_const_literals_to_create_immutables: true # flutter
prefer_const_declarations: true # flutter
prefer_contains: true # flutter
prefer_single_quotes: true
prefer_double_quotes: false
avoid_escaping_inner_quotes: false
prefer_equal_for_default_values: true
prefer_for_elements_to_map_fromIterable: true # flutter
prefer_function_declarations_over_variables: true # flutter
prefer_generic_function_type_aliases: true # core
prefer_if_elements_to_conditional_expressions: true
prefer_if_null_operators: true
prefer_interpolation_to_compose_strings: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_iterable_whereType: true
prefer_if_null_operators: true # flutter
prefer_initializing_formals: true # flutter
prefer_inlined_adds: true # flutter
prefer_interpolation_to_compose_strings: true # flutter
prefer_is_empty: true # core
prefer_is_not_empty: true # core
prefer_is_not_operator: true # flutter
prefer_iterable_whereType: true # core
prefer_null_aware_method_calls: true
prefer_null_aware_operators: true
prefer_spread_collections: true
prefer_typing_uninitialized_variables: true
recursive_getters: true
prefer_null_aware_operators: true # flutter
prefer_spread_collections: true # flutter
prefer_typing_uninitialized_variables: true # core
provide_deprecation_message: true # core
recursive_getters: true # flutter
require_trailing_commas: true
sized_box_for_whitespace: true # flutter
sized_box_shrink_expand: true
slash_for_doc_comments: true
slash_for_doc_comments: true # flutter
sort_child_properties_last: true # flutter
sort_constructors_first: true
sort_unnamed_constructors_first: true
await_only_futures: true # core
discarded_futures: true
type_init_formals: true
type_init_formals: true # flutter
unawaited_futures: true
unnecessary_await_in_return: true
unnecessary_brace_in_string_interps: true
unnecessary_const: true
unnecessary_constructor_name: true
unnecessary_brace_in_string_interps: true # flutter
unnecessary_const: true # flutter
unnecessary_constructor_name: true # flutter
unnecessary_final: true
unnecessary_getters_setters: true # flutter
unnecessary_lambdas: true
unnecessary_late: true
unnecessary_new: true
unnecessary_null_aware_assignments: true
unnecessary_null_in_if_null_operators: true
unnecessary_overrides: true
unnecessary_late: true # flutter
unnecessary_new: true # flutter
unnecessary_null_aware_assignments: true # flutter
unnecessary_null_in_if_null_operators: true # flutter
unnecessary_nullable_for_final_variable_declarations: true # flutter
unnecessary_overrides: true # core
unnecessary_parenthesis: true
unnecessary_raw_strings: true
unnecessary_string_escapes: true
unnecessary_string_interpolations: true
unnecessary_this: true
unnecessary_string_escapes: true # flutter
unnecessary_string_interpolations: true # flutter
unnecessary_this: true # flutter
unnecessary_to_list_in_spreads: true
use_full_hex_values_for_flutter_colors: true # flutter
use_function_type_syntax_for_parameters: true
use_function_type_syntax_for_parameters: true # flutter
use_if_null_to_convert_nulls_to_bools: true
use_is_even_rather_than_modulo: true
use_named_constants: true
use_raw_strings: true
use_rethrow_when_possible: true
use_rethrow_when_possible: true # flutter
use_super_parameters: true
void_checks: true
void_checks: true # core

# Pub Rules
depend_on_referenced_packages: true
depend_on_referenced_packages: true # core
package_names: true # flutter
secure_pubspec_urls: true
sort_pub_dependencies: false
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_iconica_analysis
version: 4.0.0
version: 5.0.0
description: Lint rules for Dart and Flutter used internally at Iconica Development BV.
repository: https://github.com/Iconica-Development/flutter_iconica_analysis
issue_tracker: https://github.com/Iconica-Development/flutter_iconica_analysis/issues
Expand Down

0 comments on commit 1573511

Please sign in to comment.