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
2bf42e70
Unverified
Commit
2bf42e70
authored
May 11, 2021
by
Michael Goderbauer
Committed by
GitHub
May 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean-up analysis_options.yaml's across the repository (#81986)
parent
4a939d7a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
28 deletions
+15
-28
analysis_options.yaml
analysis_options.yaml
+1
-1
analysis_options.yaml
dev/integration_tests/web/analysis_options.yaml
+0
-6
framework_stack_trace.dart
dev/integration_tests/web/lib/framework_stack_trace.dart
+4
-2
service_worker_test.dart
dev/integration_tests/web/lib/service_worker_test.dart
+1
-1
sound_mode.dart
dev/integration_tests/web/lib/sound_mode.dart
+2
-2
analysis_options.yaml
dev/tools/gen_keycodes/analysis_options.yaml
+0
-1
analysis_options_user.yaml
packages/flutter/lib/analysis_options_user.yaml
+7
-15
No files found.
analysis_options.yaml
View file @
2bf42e70
...
...
@@ -11,9 +11,9 @@
# 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
# - https://github.com/flutter/packages/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.
...
...
dev/integration_tests/web/analysis_options.yaml
deleted
100644 → 0
View file @
4a939d7a
# Exclude lib/main.dart to avoid warnings about the non_nullable
# experiment before it is enabled.
analyzer
:
exclude
:
-
lib/null_safe_main.dart
-
lib/sound_mode.dart
dev/integration_tests/web/lib/framework_stack_trace.dart
View file @
2bf42e70
...
...
@@ -15,13 +15,13 @@ import 'package:flutter/widgets.dart';
//
// See also `dev/integration_tests/web/lib/stack_trace.dart` that tests the
// framework's ability to parse stack traces in all build modes.
void
main
(
)
async
{
Future
<
void
>
main
()
async
{
final
StringBuffer
errorMessage
=
StringBuffer
();
debugPrint
=
(
String
?
message
,
{
int
?
wrapWidth
})
{
errorMessage
.
writeln
(
message
);
};
runApp
(
ThrowingWidget
());
runApp
(
const
ThrowingWidget
());
// Let the framework flush error messages.
await
Future
<
void
>.
delayed
(
Duration
.
zero
);
...
...
@@ -63,6 +63,8 @@ bool _errorMessageFormattedCorrectly(String errorMessage) {
}
class
ThrowingWidget
extends
StatefulWidget
{
const
ThrowingWidget
({
Key
?
key
})
:
super
(
key:
key
);
@override
_ThrowingWidgetState
createState
()
=>
_ThrowingWidgetState
();
}
...
...
dev/integration_tests/web/lib/service_worker_test.dart
View file @
2bf42e70
...
...
@@ -5,7 +5,7 @@
import
'dart:html'
as
html
;
Future
<
void
>
main
()
async
{
await
html
.
window
.
navigator
.
serviceWorker
?.
ready
;
final
String
response
=
'CLOSE?version=1'
;
const
String
response
=
'CLOSE?version=1'
;
await
html
.
HttpRequest
.
getString
(
response
);
html
.
document
.
body
?.
appendHtml
(
response
);
}
dev/integration_tests/web/lib/sound_mode.dart
View file @
2bf42e70
...
...
@@ -8,7 +8,7 @@ import 'dart:html' as html;
// Verify that web applications can be run in sound mode.
void
main
(
)
{
const
isWeak
=
<
int
?>[]
is
List
<
int
>;
const
bool
isWeak
=
<
int
?>[]
is
List
<
int
>;
String
output
;
if
(
isWeak
)
{
output
=
'--- TEST FAILED ---'
;
...
...
@@ -19,6 +19,6 @@ void main() {
html
.
HttpRequest
.
request
(
'/test-result'
,
method:
'POST'
,
sendData:
'
$output
'
,
sendData:
output
,
);
}
dev/tools/gen_keycodes/analysis_options.yaml
deleted
100644 → 0
View file @
4a939d7a
include
:
../../../analysis_options.yaml
packages/flutter/lib/analysis_options_user.yaml
View file @
2bf42e70
# Specify analysis options.
# This file is deprecated and only included in the framework to maintain
# backwards compatibility. DO NOT MAKE CHANGES TO THIS FILE.
#
# 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 four similar analysis options files in the flutter repos:
# - analysis_options.yaml
# - packages/flutter/lib/analysis_options_user.yaml (this file)
# - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
# - https://github.com/flutter/engine/blob/master/analysis_options.yaml
# The recommended analyzer options for Flutter code (apps, packages, and
# plugins) outside the Flutter repositories are now defined by
# package:flutter_lints located at
# https://github.com/flutter/packages/tree/master/packages/flutter_lints
#
# Old documentation:
# This file contains the analysis options used by "flutter analyze" and the
# dartanalyzer when analyzing code outside the flutter repository. It isn't named
# 'analysis_options.yaml' because otherwise editors would use it when analyzing
# the flutter tool itself.
#
# When editing, make sure you keep this and /analysis_options.yaml consistent.
analyzer
:
errors
:
...
...
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