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
32540774
Unverified
Commit
32540774
authored
Jun 04, 2021
by
Alexandre Ardhuin
Committed by
GitHub
Jun 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable lint noop_primitive_operations (#83930)
parent
871b0ce3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
analysis_options.yaml
analysis_options.yaml
+1
-0
media_query.dart
packages/flutter/lib/src/widgets/media_query.dart
+1
-1
uwptool.dart
packages/flutter_tools/lib/src/windows/uwptool.dart
+2
-2
windows_device.dart
packages/flutter_tools/lib/src/windows/windows_device.dart
+1
-1
gradle_errors_test.dart
..._tools/test/general.shard/android/gradle_errors_test.dart
+0
-3
No files found.
analysis_options.yaml
View file @
32540774
...
...
@@ -132,6 +132,7 @@ linter:
-
no_duplicate_case_values
-
no_logic_in_create_state
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
-
noop_primitive_operations
-
non_constant_identifier_names
-
null
_check_on_nullable_type_parameter
-
null
_closures
...
...
packages/flutter/lib/src/widgets/media_query.dart
View file @
32540774
...
...
@@ -274,7 +274,7 @@ class MediaQueryData {
/// right: systemGestureInsets.right,
/// ),
/// child: Slider(
/// value: _currentValue
.toDouble()
,
/// value: _currentValue,
/// onChanged: (double newValue) {
/// setState(() {
/// _currentValue = newValue;
...
...
packages/flutter_tools/lib/src/windows/uwptool.dart
View file @
32540774
...
...
@@ -45,7 +45,7 @@ class UwpTool {
return
<
String
>[];
}
final
List
<
String
>
packageFamilies
=
<
String
>[];
for
(
final
String
line
in
result
.
stdout
.
toString
().
split
(
'
\n
'
))
{
for
(
final
String
line
in
result
.
stdout
.
split
(
'
\n
'
))
{
final
String
packageFamily
=
line
.
trim
();
if
(
packageFamily
.
isNotEmpty
)
{
packageFamilies
.
add
(
packageFamily
);
...
...
@@ -82,7 +82,7 @@ class UwpTool {
return
null
;
}
// Read the process ID from stdout.
final
int
processId
=
int
.
tryParse
(
result
.
stdout
.
t
oString
().
t
rim
());
final
int
processId
=
int
.
tryParse
(
result
.
stdout
.
trim
());
_logger
.
printTrace
(
'Launched application
$packageFamily
with process ID
$processId
'
);
return
processId
;
}
...
...
packages/flutter_tools/lib/src/windows/windows_device.dart
View file @
32540774
...
...
@@ -256,7 +256,7 @@ class WindowsUWPDevice extends Device {
final
List
<
String
>
dependencyUris
=
_getDependencyPaths
(
buildDirectory
,
'x64'
)
.
map
((
String
path
)
=>
Uri
.
file
(
path
).
toString
())
.
toList
();
return
_uwptool
.
installApp
(
packageUri
.
toString
()
,
dependencyUris
);
return
_uwptool
.
installApp
(
packageUri
,
dependencyUris
);
}
@override
...
...
packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart
View file @
32540774
...
...
@@ -681,7 +681,6 @@ assembleProfile
'
\n
'
"Note that your app won't be available to users running Android SDKs below 19.
\n
"
'Alternatively, try to find a version of this plugin that supports these lower versions of the Android SDK.
\n
'
''
)
);
},
overrides:
<
Type
,
Generator
>{
...
...
@@ -719,7 +718,6 @@ assembleProfile
' checkReleaseBuilds false
\n
'
' }
\n
'
'}
\n
'
''
)
);
},
overrides:
<
Type
,
Generator
>{
...
...
@@ -757,7 +755,6 @@ Execution failed for task ':app:generateDebugFeatureTransitiveDeps'.
'To regenerate the lockfiles run: `./gradlew :generateLockfiles` in /android/build.gradle
\n
'
'To remove dependency locking, remove the `dependencyLocking` from /android/build.gradle
\n
'
'
\n
'
''
)
);
},
overrides:
<
Type
,
Generator
>{
...
...
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