forked from flutter/cocoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cocoon analysis_options.yaml (flutter#2086)
- Loading branch information
Casey Hillers
authored
Aug 26, 2022
1 parent
a95207a
commit 7f0c568
Showing
46 changed files
with
189 additions
and
327 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Specify analysis options for all of flutter/cocoon | ||
# | ||
# Until there are meta linter rules, each desired lint must be explicitly enabled. | ||
# See: https://github.com/dart-lang/linter/issues/288 | ||
# | ||
# For a list of lints, see: http://dart-lang.github.io/linter/lints/ | ||
# See the configuration guide for more | ||
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer | ||
# | ||
# There are other similar analysis options files in the flutter repos, | ||
# which should be kept in sync with this file: | ||
# | ||
# - analysis_options.yaml (this file) | ||
# - packages/flutter/lib/analysis_options_user.yaml | ||
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml | ||
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml | ||
# | ||
# This file contains the analysis options used by Flutter tools, such as IntelliJ, | ||
# Android Studio, and the `flutter analyze` command. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
analyzer: | ||
language: | ||
strict-casts: false | ||
strict-raw-types: true | ||
errors: | ||
# treat missing required parameters as a warning (not a hint) | ||
missing_required_param: warning | ||
# treat missing returns as a warning (not a hint) | ||
missing_return: warning | ||
# allow having TODOs in the code | ||
todo: ignore | ||
implicit_dynamic_parameter: info | ||
exclude: | ||
- ".dart_tool/**" | ||
- "**/*.g.dart" | ||
- "**/*.pb.dart" | ||
- "**/*.pbjson.dart" | ||
- "**/*.pbenum.dart" | ||
- "test/**/mocks.mocks.dart" | ||
|
||
linter: | ||
rules: | ||
use_super_parameters: 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,52 +1,8 @@ | ||
# Specify analysis options. | ||
# | ||
# Until there are meta linter rules, each desired lint must be explicitly enabled. | ||
# See: https://github.com/dart-lang/linter/issues/288 | ||
# | ||
# For a list of lints, see: http://dart-lang.github.io/linter/lints/ | ||
# See the configuration guide for more | ||
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer | ||
# | ||
# There are other similar analysis options files in the flutter repos, | ||
# which should be kept in sync with this file: | ||
# | ||
# - analysis_options.yaml (this file) | ||
# - packages/flutter/lib/analysis_options_user.yaml | ||
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml | ||
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml | ||
# | ||
# This file contains the analysis options used by Flutter tools, such as IntelliJ, | ||
# Android Studio, and the `flutter analyze` command. | ||
|
||
analyzer: | ||
strong-mode: | ||
implicit-casts: false | ||
implicit-dynamic: false | ||
errors: | ||
# treat missing required parameters as a warning (not a hint) | ||
missing_required_param: warning | ||
# treat missing returns as a warning (not a hint) | ||
missing_return: warning | ||
# allow having TODOs in the code | ||
todo: ignore | ||
# Ignore analyzer hints for updating pubspecs when using Future or | ||
# Stream and not importing dart:async | ||
# Please see https://github.com/flutter/flutter/pull/24528 for details. | ||
sdk_version_async_exported_from_core: ignore | ||
implicit_dynamic_parameter: info | ||
exclude: | ||
- ".dart_tool/**" | ||
- "**/*.g.dart" | ||
- "**/*.pb.dart" | ||
- "**/*.pbjson.dart" | ||
- "**/*.pbenum.dart" | ||
- "test/src/utilities/mocks.mocks.dart" | ||
|
||
include: package:flutter_lints/flutter.yaml | ||
include: ../analysis_options.yaml | ||
|
||
linter: | ||
rules: | ||
# a few rules listed below are the ones we would like to exclude from flutter_lint package, for app_dart | ||
# reasons for exclusions are provided in the comments to the right | ||
avoid_print: false # we have necessary print calls in the code | ||
constant_identifier_names: false # we have all capitalized enums in check_for_waiting_pull_requests_test.dart | ||
constant_identifier_names: false # we have all capitalized enums in check_for_waiting_pull_requests_test.dart |
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
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,52 +1,9 @@ | ||
# Specify analysis options. | ||
# | ||
# Until there are meta linter rules, each desired lint must be explicitly enabled. | ||
# See: https://github.com/dart-lang/linter/issues/288 | ||
# | ||
# For a list of lints, see: http://dart-lang.github.io/linter/lints/ | ||
# See the configuration guide for more | ||
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer | ||
# | ||
# There are other similar analysis options files in the flutter repos, | ||
# which should be kept in sync with this file: | ||
# | ||
# - analysis_options.yaml (this file) | ||
# - packages/flutter/lib/analysis_options_user.yaml | ||
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml | ||
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml | ||
# | ||
# This file contains the analysis options used by Flutter tools, such as IntelliJ, | ||
# Android Studio, and the `flutter analyze` command. | ||
include: ../analysis_options.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
implicit-casts: false | ||
implicit-dynamic: false | ||
errors: | ||
# treat missing required parameters as a warning (not a hint) | ||
missing_required_param: warning | ||
# treat missing returns as a warning (not a hint) | ||
missing_return: warning | ||
# allow having TODOs in the code | ||
todo: ignore | ||
# Ignore analyzer hints for updating pubspecs when using Future or | ||
# Stream and not importing dart:async | ||
# Please see https://github.com/flutter/flutter/pull/24528 for details. | ||
sdk_version_async_exported_from_core: ignore | ||
implicit_dynamic_parameter: info | ||
exclude: | ||
- ".dart_tool/**" | ||
- "**/*.g.dart" | ||
- "**/*.pb.dart" | ||
- "**/*.pbjson.dart" | ||
- "**/*.pbenum.dart" | ||
- "test/src/utilities/mocks.mocks.dart" | ||
|
||
include: package:flutter_lints/flutter.yaml | ||
language: | ||
strict-raw-types: false # TODO: Remove this lint | ||
|
||
linter: | ||
rules: | ||
# a few rules listed below are the ones we would like to exclude from flutter_lint package, for app_dart | ||
# reasons for exclusions are provided in the comments to the right | ||
avoid_print: false # we have necessary print calls in the code | ||
constant_identifier_names: false # we have all capitalized enums in check_for_waiting_pull_requests_test.dart | ||
constant_identifier_names: false # we have all capitalized enums in check_for_waiting_pull_requests_test.dart |
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
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.