-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from Workiva/lints-and-implicit-casts-take-2
FED-1569 Prepare for null safety: fix lints and implicit casts
- Loading branch information
Showing
71 changed files
with
1,659 additions
and
1,670 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
include: package:workiva_analysis_options/v2.recommended.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
# TODO change to false as part of the null safety major, which avoids us having to add a lot more casts | ||
implicit-casts: true | ||
implicit-dynamic: true | ||
errors: | ||
must_call_super: error | ||
comment_references: info | ||
# This is too noisy since it warns for all lifecycle methods. | ||
always_declare_return_types: ignore | ||
# We very often need to annotate parameters when they're embedded in Maps | ||
# with dynamic values, so this lint is noisy and wrong in those cases. | ||
# See: https://github.com/dart-lang/linter/issues/1099 | ||
avoid_types_on_closure_parameters: ignore | ||
# This makes string concatenation less readable in some cases | ||
prefer_interpolation_to_compose_strings: ignore | ||
# The following are ignored to avoid merge conflicts with null safety branch | ||
directives_ordering: ignore | ||
prefer_typing_uninitialized_variables: ignore | ||
linter: | ||
rules: | ||
- avoid_private_typedef_functions | ||
- await_only_futures | ||
- cancel_subscriptions | ||
- close_sinks | ||
- unawaited_futures | ||
- avoid_init_to_null | ||
prefer_if_elements_to_conditional_expressions: false | ||
overridden_fields: false | ||
type_annotate_public_apis: false |
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
Oops, something went wrong.