Skip to content

Commit

Permalink
Merge pull request bluefireteam#21 from renancaraujo/analyzer
Browse files Browse the repository at this point in the history
Dart 2 and analyzer
  • Loading branch information
renancaraujo authored Aug 18, 2018
2 parents a698627 + fffadb5 commit aae032a
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 10 deletions.
80 changes: 80 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
analyzer:
strong-mode: true
errors:
mixin_inherits_from_not_object: ignore
linter:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_require_non_null_named_parameters
- always_specify_types
- annotate_overrides
- avoid_as
- avoid_classes_with_only_static_members
- avoid_empty_else
- avoid_field_initializers_in_const_classes
- avoid_function_literals_in_foreach_calls
- avoid_init_to_null
- avoid_null_checks_in_equality_operators
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_slow_async_io
- await_only_futures
- camel_case_types
- cancel_subscriptions
- control_flow_in_finally
- directives_ordering
- empty_catches
- empty_constructor_bodies
- empty_statements
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- library_names
- library_prefixes
- list_remove_unrelated_type
- no_adjacent_strings_in_list
- no_duplicate_case_values
- non_constant_identifier_names
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_adjacent_string_concatenation
- prefer_asserts_in_initializer_lists
- prefer_bool_in_asserts
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_contains
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_final_locals
- prefer_foreach
- prefer_initializing_formals
- prefer_is_empty
- prefer_is_not_empty
- prefer_double_quotes
- prefer_typing_uninitialized_variables
- recursive_getters
- slash_for_doc_comments
- sort_constructors_first
- sort_unnamed_constructors_first
- super_goes_last
- test_types_in_equals
- throw_in_finally
- type_init_formals
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
- unnecessary_null_aware_assignments
- unnecessary_null_in_if_null_operators
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_this
- unrelated_type_equality_checks
- use_rethrow_when_possible

18 changes: 9 additions & 9 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.6"
version: "1.14.11"
convert:
dependency: transitive
description:
Expand All @@ -70,7 +70,7 @@ packages:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.4+1"
version: "0.14.5"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -101,7 +101,7 @@ packages:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.3+2"
version: "0.13.3+3"
http:
dependency: transitive
description:
Expand Down Expand Up @@ -164,14 +164,14 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2+1"
version: "0.12.3+1"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.5"
version: "1.1.6"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -316,7 +316,7 @@ packages:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.0.4"
term_glyph:
dependency: transitive
description:
Expand All @@ -330,14 +330,14 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.41"
version: "1.3.0"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.5"
version: "1.1.6"
utf:
dependency: transitive
description:
Expand Down Expand Up @@ -381,4 +381,4 @@ packages:
source: hosted
version: "2.1.15"
sdks:
dart: ">=2.0.0-dev.62.0 <=2.0.0-dev.69.5.flutter-eab492385c"
dart: ">=2.0.0-dev.68.0 <3.0.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: Renan C. Araújo <renan@caraujo.me>
homepage: https://github.com/renancaraujo/photo_view

environment:
sdk: ">=1.19.0 <2.0.0"
sdk: ">=1.19.0 <3.0.0"

dependencies:
after_layout: ^1.0.4
Expand Down

0 comments on commit aae032a

Please sign in to comment.