-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
37 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1 @@ | ||
linter: | ||
rules: | ||
# deprecated_member_use_from_same_package: true | ||
# Good for libraries to prevent unnecessary code paths. | ||
# Dart SDK: >= 2.0.0 • (Linter v0.1.25) | ||
# https://dart-lang.github.io/linter/lints/literal_only_boolean_expressions.html | ||
literal_only_boolean_expressions: true | ||
|
||
# One of the most important rules. Docs for package public APIs make a good package. | ||
# Like catching undocumented code? Enable `public_member_api_docs` as well. | ||
# Dart SDK: >= 2.0.0 • (Linter v0.1.1) | ||
# https://dart-lang.github.io/linter/lints/package_api_docs.html | ||
package_api_docs: true | ||
|
||
# Too strict. Implementing all exported public APIs (`package_api_docs`) is enough. | ||
# Dart SDK: >= 2.0.0 • (Linter v0.1.11) | ||
# https://dart-lang.github.io/linter/lints/public_member_api_docs.html | ||
# public_member_api_docs | ||
|
||
# Adding a key without using it isn't helpful in applications, only for the Flutter SDK | ||
# Dart SDK: >= 2.8.0-dev.1.0 • (Linter v0.1.108) | ||
# https://dart-lang.github.io/linter/lints/use_key_in_widget_constructors.html | ||
use_key_in_widget_constructors: true | ||
always_declare_return_types: true | ||
annotate_overrides: true | ||
avoid_init_to_null: true | ||
avoid_null_checks_in_equality_operators: true | ||
avoid_relative_lib_imports: true | ||
avoid_return_types_on_setters: true | ||
avoid_shadowing_type_parameters: true | ||
avoid_single_cascade_in_expression_statements: true | ||
avoid_types_as_parameter_names: true | ||
await_only_futures: true | ||
camel_case_extensions: true | ||
curly_braces_in_flow_control_structures: true | ||
empty_catches: true | ||
empty_constructor_bodies: true | ||
library_names: true | ||
library_prefixes: true | ||
no_duplicate_case_values: true | ||
null_closures: true | ||
omit_local_variable_types: true | ||
prefer_adjacent_string_concatenation: true | ||
prefer_collection_literals: true | ||
prefer_conditional_assignment: true | ||
prefer_contains: true | ||
prefer_equal_for_default_values: true | ||
prefer_final_fields: true | ||
prefer_for_elements_to_map_fromIterable: true | ||
prefer_generic_function_type_aliases: true | ||
prefer_if_null_operators: true | ||
prefer_inlined_adds: true | ||
prefer_is_empty: true | ||
prefer_is_not_empty: true | ||
prefer_iterable_whereType: true | ||
prefer_single_quotes: true | ||
prefer_spread_collections: true | ||
recursive_getters: true | ||
slash_for_doc_comments: true | ||
sort_child_properties_last: true | ||
type_init_formals: true | ||
unawaited_futures: true | ||
unnecessary_brace_in_string_interps: true | ||
unnecessary_const: true | ||
unnecessary_getters_setters: true | ||
unnecessary_new: true | ||
unnecessary_null_in_if_null_operators: true | ||
unnecessary_this: true | ||
unrelated_type_equality_checks: true | ||
unsafe_html: true | ||
use_full_hex_values_for_flutter_colors: true | ||
use_function_type_syntax_for_parameters: true | ||
use_rethrow_when_possible: true | ||
valid_regexps: true | ||
include: package:flutter_lints/flutter.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters