Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3a31c35b
Commit
3a31c35b
authored
Aug 15, 2017
by
Dan Rubel
Committed by
GitHub
Aug 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename .analysis_options to analysis_options.yaml (#11594)
parent
225da923
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
21 additions
and
21 deletions
+21
-21
CONTRIBUTING.md
CONTRIBUTING.md
+2
-2
analysis_options.yaml
analysis_options.yaml
+5
-5
analysis_options_repo.yaml
analysis_options_repo.yaml
+4
-4
analysis_options.yaml
dev/docs/analysis_options.yaml
+0
-0
analysis_options.yaml
dev/missing_dependency_tests/analysis_options.yaml
+0
-0
BUILD.gn
examples/flutter_gallery/BUILD.gn
+1
-1
BUILD.gn
packages/flutter/BUILD.gn
+1
-1
analysis_options_user.yaml
packages/flutter/lib/analysis_options_user.yaml
+3
-3
BUILD.gn
packages/flutter_test/BUILD.gn
+1
-1
BUILD.gn
packages/flutter_tools/BUILD.gn
+3
-3
analyze_once.dart
packages/flutter_tools/lib/src/commands/analyze_once.dart
+1
-1
analysis_options.yaml
.../dart_dependencies_test/asci_casing/analysis_options.yaml
+0
-0
analysis_options.yaml
...a/dart_dependencies_test/bad_import/analysis_options.yaml
+0
-0
analysis_options.yaml
.../dart_dependencies_test/bad_package/analysis_options.yaml
+0
-0
analysis_options.yaml
...ata/dart_dependencies_test/bad_path/analysis_options.yaml
+0
-0
analysis_options.yaml
...st/data/dart_dependencies_test/good/analysis_options.yaml
+0
-0
analysis_options.yaml
...dart_dependencies_test/syntax_error/analysis_options.yaml
+0
-0
No files found.
CONTRIBUTING.md
View file @
3a31c35b
...
@@ -76,11 +76,11 @@ main ways to run it. In either case you will want to run `flutter update-package
...
@@ -76,11 +76,11 @@ main ways to run it. In either case you will want to run `flutter update-package
first, or you will get version conflict issues or bogus error messages about core clases like
first, or you will get version conflict issues or bogus error messages about core clases like
Offset from
`dart:ui`
.
Offset from
`dart:ui`
.
For a one-off, use
`flutter analyze --flutter-repo`
. This uses the
`
.analysis_options_repo
`
file
For a one-off, use
`flutter analyze --flutter-repo`
. This uses the
`
analysis_options_repo.yaml
`
file
at the root of the repository for its configuration.
at the root of the repository for its configuration.
For continuous analysis, use
`flutter analyze --flutter-repo --watch`
. This uses normal
For continuous analysis, use
`flutter analyze --flutter-repo --watch`
. This uses normal
`
.analysis_options
`
files, and they can differ from package to package.
`
analysis_options.yaml
`
files, and they can differ from package to package.
If you want to see how many members are missing dartdocs, you should use the first option,
If you want to see how many members are missing dartdocs, you should use the first option,
providing the additional command
`--dartdocs`
.
providing the additional command
`--dartdocs`
.
...
...
.analysis_options
→
analysis_options.yaml
View file @
3a31c35b
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
#
#
# There are four similar analysis options files in the flutter repos:
# There are four similar analysis options files in the flutter repos:
# -
.analysis_options
(this file)
# -
analysis_options.yaml
(this file)
# -
.analysis_options_repo
# -
analysis_options_repo.yaml
# - packages/flutter/lib/analysis_options_user.yaml
# - packages/flutter/lib/analysis_options_user.yaml
# - https://github.com/flutter/plugins/blob/master/
.analysis_options
# - https://github.com/flutter/plugins/blob/master/
analysis_options.yaml
#
#
# This file contains the analysis options used by Flutter editors, such as Atom.
# This file contains the analysis options used by Flutter editors, such as Atom.
# It is very similar to the
.analysis_options_repo
file in this same directory;
# It is very similar to the
analysis_options_repo.yaml
file in this same directory;
# the only difference (currently) is the public_member_api_docs option,
# the only difference (currently) is the public_member_api_docs option,
# which triggers too many messages to be used in editors.
# which triggers too many messages to be used in editors.
#
#
...
@@ -122,7 +122,7 @@ linter:
...
@@ -122,7 +122,7 @@ linter:
# - prefer_interpolation_to_compose_strings # not yet tested
# - prefer_interpolation_to_compose_strings # not yet tested
-
prefer_is_empty
-
prefer_is_empty
-
prefer_is_not_empty
-
prefer_is_not_empty
# - public_member_api_docs # this is the only difference from
.analysis_options_repo
# - public_member_api_docs # this is the only difference from
analysis_options_repo.yaml
# - recursive_getters # https://github.com/dart-lang/linter/issues/452
# - recursive_getters # https://github.com/dart-lang/linter/issues/452
-
slash_for_doc_comments
-
slash_for_doc_comments
-
sort_constructors_first
-
sort_constructors_first
...
...
.analysis_options_repo
→
analysis_options_repo.yaml
View file @
3a31c35b
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
#
#
# There are three similar analysis options files in the flutter repo:
# There are three similar analysis options files in the flutter repo:
# -
.analysis_options
# -
analysis_options.yaml
# -
.analysis_options_repo
(this file)
# -
analysis_options_repo.yaml
(this file)
# - packages/flutter/lib/analysis_options_user.yaml
# - packages/flutter/lib/analysis_options_user.yaml
#
#
# This file contains the analysis options used by 'flutter analyze' when analyzing
# This file contains the analysis options used by 'flutter analyze' when analyzing
# the flutter repository. It is very similar to
.analysis_options
;
# the flutter repository. It is very similar to
analysis_options.yaml
;
# the only difference (currently) is the public_member_api_docs option,
# the only difference (currently) is the public_member_api_docs option,
# which is turned on and programmatically reduced to a single output line
# which is turned on and programmatically reduced to a single output line
# indicating the # of violations for that rule.
# indicating the # of violations for that rule.
...
@@ -116,7 +116,7 @@ linter:
...
@@ -116,7 +116,7 @@ linter:
# - prefer_interpolation_to_compose_strings # not yet tested
# - prefer_interpolation_to_compose_strings # not yet tested
-
prefer_is_empty
-
prefer_is_empty
-
prefer_is_not_empty
-
prefer_is_not_empty
- public_member_api_docs # this is the only difference from
.analysis_options_repo
-
public_member_api_docs
# this is the only difference from
analysis_options_repo.yaml
# - recursive_getters # https://github.com/dart-lang/linter/issues/452
# - recursive_getters # https://github.com/dart-lang/linter/issues/452
-
slash_for_doc_comments
-
slash_for_doc_comments
-
sort_constructors_first
-
sort_constructors_first
...
...
dev/docs/
.analysis_options
→
dev/docs/
analysis_options.yaml
View file @
3a31c35b
File moved
dev/missing_dependency_tests/
.analysis_options
→
dev/missing_dependency_tests/
analysis_options.yaml
View file @
3a31c35b
File moved
examples/flutter_gallery/BUILD.gn
View file @
3a31c35b
...
@@ -9,7 +9,7 @@ assert(is_fuchsia)
...
@@ -9,7 +9,7 @@ assert(is_fuchsia)
flutter_app("flutter_gallery") {
flutter_app("flutter_gallery") {
main_dart = "lib/main.dart"
main_dart = "lib/main.dart"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
"//lib/flutter/packages/flutter",
"//lib/flutter/packages/flutter",
...
...
packages/flutter/BUILD.gn
View file @
3a31c35b
...
@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
...
@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
dart_package("flutter") {
dart_package("flutter") {
package_name = "flutter"
package_name = "flutter"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
"//third_party/dart-pkg/pub/async",
"//third_party/dart-pkg/pub/async",
...
...
packages/flutter/lib/analysis_options_user.yaml
View file @
3a31c35b
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
#
#
# There are three similar analysis options files in the flutter repo:
# There are three similar analysis options files in the flutter repo:
# -
.analysis_options
# -
analysis_options.yaml
# -
.analysis_options_repo
# -
analysis_options_repo.yaml
# - packages/flutter/lib/analysis_options_user.yaml (this file)
# - packages/flutter/lib/analysis_options_user.yaml (this file)
#
#
# This file contains the analysis options used by "flutter analyze"
# This file contains the analysis options used by "flutter analyze"
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
# It isn't named 'analysis_options.yaml' because otherwise editors like Atom
# It isn't named 'analysis_options.yaml' because otherwise editors like Atom
# would use it when analyzing the flutter tool itself.
# would use it when analyzing the flutter tool itself.
#
#
# When editing, make sure you keep /
.analysis_options
consistent.
# When editing, make sure you keep /
analysis_options.yaml
consistent.
analyzer
:
analyzer
:
language
:
language
:
...
...
packages/flutter_test/BUILD.gn
View file @
3a31c35b
...
@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
...
@@ -7,7 +7,7 @@ import("//build/dart/dart_package.gni")
dart_package("flutter_test") {
dart_package("flutter_test") {
package_name = "flutter_test"
package_name = "flutter_test"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
"//lib/flutter/packages/flutter",
"//lib/flutter/packages/flutter",
...
...
packages/flutter_tools/BUILD.gn
View file @
3a31c35b
...
@@ -8,7 +8,7 @@ import("//build/dart/dart_tool.gni")
...
@@ -8,7 +8,7 @@ import("//build/dart/dart_tool.gni")
dart_package("flutter_tools") {
dart_package("flutter_tools") {
package_name = "flutter_tools"
package_name = "flutter_tools"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
"//dart/pkg/analyzer",
"//dart/pkg/analyzer",
...
@@ -42,7 +42,7 @@ dart_package("flutter_tools") {
...
@@ -42,7 +42,7 @@ dart_package("flutter_tools") {
dart_tool("fuchsia_builder") {
dart_tool("fuchsia_builder") {
main_dart = "bin/fuchsia_builder.dart"
main_dart = "bin/fuchsia_builder.dart"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
":flutter_tools",
":flutter_tools",
...
@@ -52,7 +52,7 @@ dart_tool("fuchsia_builder") {
...
@@ -52,7 +52,7 @@ dart_tool("fuchsia_builder") {
dart_tool("fuchsia_tester") {
dart_tool("fuchsia_tester") {
main_dart = "bin/fuchsia_tester.dart"
main_dart = "bin/fuchsia_tester.dart"
analysis_options = "//lib/flutter/
.analysis_options
"
analysis_options = "//lib/flutter/
analysis_options.yaml
"
deps = [
deps = [
":flutter_tools",
":flutter_tools",
...
...
packages/flutter_tools/lib/src/commands/analyze_once.dart
View file @
3a31c35b
...
@@ -147,7 +147,7 @@ class AnalyzeOnce extends AnalyzeBase {
...
@@ -147,7 +147,7 @@ class AnalyzeOnce extends AnalyzeBase {
final
DriverOptions
options
=
new
DriverOptions
();
final
DriverOptions
options
=
new
DriverOptions
();
options
.
dartSdkPath
=
argResults
[
'dart-sdk'
];
options
.
dartSdkPath
=
argResults
[
'dart-sdk'
];
options
.
packageMap
=
packages
;
options
.
packageMap
=
packages
;
options
.
analysisOptionsFile
=
fs
.
path
.
join
(
Cache
.
flutterRoot
,
'
.analysis_options_repo
'
);
options
.
analysisOptionsFile
=
fs
.
path
.
join
(
Cache
.
flutterRoot
,
'
analysis_options_repo.yaml
'
);
final
AnalysisDriver
analyzer
=
new
AnalysisDriver
(
options
);
final
AnalysisDriver
analyzer
=
new
AnalysisDriver
(
options
);
// TODO(pq): consider error handling
// TODO(pq): consider error handling
...
...
packages/flutter_tools/test/data/dart_dependencies_test/asci_casing/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/asci_casing/
analysis_options.yaml
View file @
3a31c35b
File moved
packages/flutter_tools/test/data/dart_dependencies_test/bad_import/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/bad_import/
analysis_options.yaml
View file @
3a31c35b
File moved
packages/flutter_tools/test/data/dart_dependencies_test/bad_package/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/bad_package/
analysis_options.yaml
View file @
3a31c35b
File moved
packages/flutter_tools/test/data/dart_dependencies_test/bad_path/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/bad_path/
analysis_options.yaml
View file @
3a31c35b
File moved
packages/flutter_tools/test/data/dart_dependencies_test/good/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/good/
analysis_options.yaml
View file @
3a31c35b
File moved
packages/flutter_tools/test/data/dart_dependencies_test/syntax_error/
.analysis_options
→
packages/flutter_tools/test/data/dart_dependencies_test/syntax_error/
analysis_options.yaml
View file @
3a31c35b
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment