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
06ed8e65
Unverified
Commit
06ed8e65
authored
Mar 21, 2023
by
Michael Goderbauer
Committed by
GitHub
Mar 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable prefer_mixin (#123159)
Enable prefer_mixin
parent
e15c9285
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
analysis_options.yaml
analysis_options.yaml
+1
-1
error_handling_io.dart
packages/flutter_tools/lib/src/base/error_handling_io.dart
+6
-3
multi_root_file_system.dart
...es/flutter_tools/lib/src/base/multi_root_file_system.dart
+6
-3
No files found.
analysis_options.yaml
View file @
06ed8e65
...
...
@@ -173,7 +173,7 @@ linter:
-
prefer_is_not_empty
-
prefer_is_not_operator
-
prefer_iterable_whereType
# - prefer_mixin # has false positives, see https://github.com/dart-lang/linter/issues/3018
-
prefer_mixin
# - prefer_null_aware_method_calls # "call()" is confusing to people new to the language since it's not documented anywhere
-
prefer_null_aware_operators
-
prefer_relative_imports
...
...
packages/flutter_tools/lib/src/base/error_handling_io.dart
View file @
06ed8e65
...
...
@@ -156,7 +156,8 @@ class ErrorHandlingFileSystem extends ForwardingFileSystem {
class
ErrorHandlingFile
extends
ForwardingFileSystemEntity
<
File
,
io
.
File
>
with
ForwardingFile
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingFile
{
// ignore: prefer_mixin
ErrorHandlingFile
({
required
Platform
platform
,
required
this
.
fileSystem
,
...
...
@@ -368,7 +369,8 @@ class ErrorHandlingFile
class
ErrorHandlingDirectory
extends
ForwardingFileSystemEntity
<
Directory
,
io
.
Directory
>
with
ForwardingDirectory
<
Directory
>
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingDirectory
<
Directory
>
{
// ignore: prefer_mixin
ErrorHandlingDirectory
({
required
Platform
platform
,
required
this
.
fileSystem
,
...
...
@@ -504,7 +506,8 @@ class ErrorHandlingDirectory
class
ErrorHandlingLink
extends
ForwardingFileSystemEntity
<
Link
,
io
.
Link
>
with
ForwardingLink
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingLink
{
// ignore: prefer_mixin
ErrorHandlingLink
({
required
Platform
platform
,
required
this
.
fileSystem
,
...
...
packages/flutter_tools/lib/src/base/multi_root_file_system.dart
View file @
06ed8e65
...
...
@@ -209,7 +209,8 @@ abstract class MultiRootFileSystemEntity<T extends FileSystemEntity,
}
class
MultiRootFile
extends
MultiRootFileSystemEntity
<
File
,
io
.
File
>
with
ForwardingFile
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingFile
{
// ignore: prefer_mixin
MultiRootFile
({
required
super
.
fileSystem
,
required
super
.
delegate
,
...
...
@@ -222,7 +223,8 @@ class MultiRootFile extends MultiRootFileSystemEntity<File, io.File>
class
MultiRootDirectory
extends
MultiRootFileSystemEntity
<
Directory
,
io
.
Directory
>
with
ForwardingDirectory
<
Directory
>
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingDirectory
<
Directory
>
{
// ignore: prefer_mixin
MultiRootDirectory
({
required
super
.
fileSystem
,
required
super
.
delegate
,
...
...
@@ -249,7 +251,8 @@ class MultiRootDirectory
}
class
MultiRootLink
extends
MultiRootFileSystemEntity
<
Link
,
io
.
Link
>
with
ForwardingLink
{
// TODO(goderbauer): Fix this ignore when https://github.com/google/file.dart/issues/209 is resolved.
with
ForwardingLink
{
// ignore: prefer_mixin
MultiRootLink
({
required
super
.
fileSystem
,
required
super
.
delegate
,
...
...
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