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
b041a589
Unverified
Commit
b041a589
authored
Jul 09, 2019
by
Alexandre Ardhuin
Committed by
GitHub
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable lint prefer_if_null_operators (#35745)
parent
ad9b077f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
analysis_options.yaml
analysis_options.yaml
+1
-1
visual_studio_test.dart
packages/flutter_tools/test/windows/visual_studio_test.dart
+11
-12
No files found.
analysis_options.yaml
View file @
b041a589
...
...
@@ -141,7 +141,7 @@ linter:
# - prefer_function_declarations_over_variables # not yet tested
-
prefer_generic_function_type_aliases
# - prefer_if_elements_to_conditional_expressions # not yet tested
# - prefer_if_null_operators # not yet tested
-
prefer_if_null_operators
-
prefer_initializing_formals
-
prefer_inlined_adds
# - prefer_int_literals # not yet tested
...
...
packages/flutter_tools/test/windows/visual_studio_test.dart
View file @
b041a589
...
...
@@ -41,8 +41,8 @@ void main() {
final
MockProcessResult
result
=
MockProcessResult
();
when
(
result
.
exitCode
).
thenReturn
(
0
);
when
<
String
>(
result
.
stdout
).
thenReturn
(
response
==
null
?
json
.
encode
(<
Map
<
String
,
dynamic
>>[
when
<
String
>(
result
.
stdout
).
thenReturn
(
response
??
json
.
encode
(<
Map
<
String
,
dynamic
>>[
<
String
,
dynamic
>{
'installationPath'
:
visualStudioPath
,
'displayName'
:
'Visual Studio Community 2017'
,
...
...
@@ -50,9 +50,8 @@ void main() {
'catalog'
:
<
String
,
String
>{
'productDisplayVersion'
:
'15.9.12'
,
},
}
])
:
response
);
},
]));
final
List
<
String
>
requirementArguments
=
requiredComponents
==
null
?
<
String
>[]
...
...
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