-
-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2.2.0] Stricten Lints & Fix Tests Exceptions (#1319)
* chore: strong-mode is deprecated * fix: Exception on flutter_map_test * chore: Example has the same rules as the package * refacto: replace dynamic by the right type * Change OverlayImage to BaseOverlayImage * fix: compareTo is useless now Co-authored-by: Polo <[email protected]> * Update analysis_options.yaml * Readded ignore close_sinks * Add same rules of pana Co-authored-by: Luka S <[email protected]> Co-authored-by: Polo <[email protected]>
- Loading branch information
1 parent
2d2a956
commit 30ca5de
Showing
48 changed files
with
463 additions
and
459 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
implicit-casts: false | ||
implicit-dynamic: false | ||
language: | ||
strict-casts: true | ||
strict-inference: true | ||
strict-raw-types: true | ||
errors: | ||
close_sinks: ignore | ||
missing_required_param: error | ||
missing_return: error | ||
|
||
linter: | ||
rules: | ||
prefer_final_locals: true | ||
prefer_final_in_for_each: true | ||
avoid_dynamic_calls: true | ||
always_declare_return_types: true | ||
always_use_package_imports: true | ||
type_annotate_public_apis: true | ||
avoid_dynamic_calls: true | ||
cancel_subscriptions: true | ||
close_sinks: true | ||
package_api_docs: true | ||
prefer_constructors_over_static_methods: true | ||
prefer_final_in_for_each: true | ||
prefer_final_locals: true | ||
prefer_int_literals: true | ||
test_types_in_equals: true | ||
throw_in_finally: true | ||
type_annotate_public_apis: true | ||
unnecessary_statements: true | ||
use_named_constants: true |
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,4 +1,30 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
language: | ||
strict-casts: true | ||
strict-inference: true | ||
strict-raw-types: true | ||
errors: | ||
missing_required_param: error | ||
missing_return: error | ||
|
||
linter: | ||
rules: | ||
library_private_types_in_public_api: false | ||
library_private_types_in_public_api: false # Not relevant to the example | ||
|
||
always_declare_return_types: true | ||
always_use_package_imports: true | ||
avoid_dynamic_calls: true | ||
cancel_subscriptions: true | ||
close_sinks: false | ||
package_api_docs: true | ||
prefer_constructors_over_static_methods: true | ||
prefer_final_in_for_each: true | ||
prefer_final_locals: true | ||
prefer_int_literals: true | ||
test_types_in_equals: true | ||
throw_in_finally: true | ||
type_annotate_public_apis: true | ||
unnecessary_statements: true | ||
use_named_constants: true |
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
Oops, something went wrong.