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
5ac97140
Unverified
Commit
5ac97140
authored
Jan 12, 2022
by
Michael Goderbauer
Committed by
GitHub
Jan 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable no_leading_underscores_for_library_prefixes (#96420)
parent
8256f94e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
analysis_options.yaml
analysis_options.yaml
+1
-1
bitfield.dart
packages/flutter/lib/src/foundation/bitfield.dart
+4
-4
isolates.dart
packages/flutter/lib/src/foundation/isolates.dart
+2
-2
platform.dart
packages/flutter/lib/src/foundation/platform.dart
+2
-2
goldens.dart
packages/flutter_test/lib/src/goldens.dart
+2
-2
No files found.
analysis_options.yaml
View file @
5ac97140
...
...
@@ -134,7 +134,7 @@ linter:
-
no_adjacent_strings_in_list
-
no_default_cases
-
no_duplicate_case_values
# - no_leading_underscores_for_library_prefixes # not yet tested
-
no_leading_underscores_for_library_prefixes
# - no_leading_underscores_for_local_identifiers # not yet tested
-
no_logic_in_create_state
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
...
...
packages/flutter/lib/src/foundation/bitfield.dart
View file @
5ac97140
...
...
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import
'_bitfield_io.dart'
if
(
dart
.
library
.
html
)
'_bitfield_web.dart'
as
_
bitfield
;
if
(
dart
.
library
.
html
)
'_bitfield_web.dart'
as
bitfield
;
/// The largest SMI value.
///
...
...
@@ -11,7 +11,7 @@ import '_bitfield_io.dart'
///
/// When compiling to JavaScript, this value is not supported since it is
/// larger than the maximum safe 32bit integer.
const
int
kMaxUnsignedSMI
=
_
bitfield
.
kMaxUnsignedSMI
;
const
int
kMaxUnsignedSMI
=
bitfield
.
kMaxUnsignedSMI
;
/// A BitField over an enum (or other class whose values implement "index").
/// Only the first 62 values of the enum can be used as indices.
...
...
@@ -21,7 +21,7 @@ abstract class BitField<T extends dynamic> {
/// Creates a bit field of all zeros.
///
/// The given length must be at most 62.
factory
BitField
(
int
length
)
=
_
bitfield
.
BitField
<
T
>;
factory
BitField
(
int
length
)
=
bitfield
.
BitField
<
T
>;
/// Creates a bit field filled with a particular value.
///
...
...
@@ -29,7 +29,7 @@ abstract class BitField<T extends dynamic> {
/// the bits are filled with zeros.
///
/// The given length must be at most 62.
factory
BitField
.
filled
(
int
length
,
bool
value
)
=
_
bitfield
.
BitField
<
T
>.
filled
;
factory
BitField
.
filled
(
int
length
,
bool
value
)
=
bitfield
.
BitField
<
T
>.
filled
;
/// Returns whether the bit with the given index is set to one.
bool
operator
[](
T
index
);
...
...
packages/flutter/lib/src/foundation/isolates.dart
View file @
5ac97140
...
...
@@ -5,7 +5,7 @@
import
'dart:async'
;
import
'_isolates_io.dart'
if
(
dart
.
library
.
html
)
'_isolates_web.dart'
as
_
isolates
;
if
(
dart
.
library
.
html
)
'_isolates_web.dart'
as
isolates
;
/// Signature for the callback passed to [compute].
///
...
...
@@ -49,4 +49,4 @@ typedef ComputeImpl = Future<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q
/// See also:
///
/// * [ComputeImpl], for function parameters and usage details.
const
ComputeImpl
compute
=
_
isolates
.
compute
;
const
ComputeImpl
compute
=
isolates
.
compute
;
packages/flutter/lib/src/foundation/platform.dart
View file @
5ac97140
...
...
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import
'_platform_io.dart'
if
(
dart
.
library
.
html
)
'_platform_web.dart'
as
_
platform
;
if
(
dart
.
library
.
html
)
'_platform_web.dart'
as
platform
;
/// The [TargetPlatform] that matches the platform on which the framework is
/// currently executing.
...
...
@@ -36,7 +36,7 @@ import '_platform_io.dart'
// that would mean we'd be stuck with that platform forever emulating the other,
// and we'd never be able to introduce dedicated behavior for that platform
// (since doing so would be a big breaking change).
TargetPlatform
get
defaultTargetPlatform
=>
_
platform
.
defaultTargetPlatform
;
TargetPlatform
get
defaultTargetPlatform
=>
platform
.
defaultTargetPlatform
;
/// The platform that user interaction should adapt to target.
///
...
...
packages/flutter_test/lib/src/goldens.dart
View file @
5ac97140
...
...
@@ -8,7 +8,7 @@ import 'dart:ui';
import
'package:path/path.dart'
as
path
;
import
'package:test_api/test_api.dart'
;
// ignore: deprecated_member_use
import
'_goldens_io.dart'
if
(
dart
.
library
.
html
)
'_goldens_web.dart'
as
_
goldens
;
import
'_goldens_io.dart'
if
(
dart
.
library
.
html
)
'_goldens_web.dart'
as
goldens
;
/// Compares image pixels against a golden image file.
///
...
...
@@ -94,7 +94,7 @@ abstract class GoldenFileComparator {
/// Returns a [ComparisonResult] to describe the pixel differential of the
/// [test] and [master] image bytes provided.
static
Future
<
ComparisonResult
>
compareLists
(
List
<
int
>
test
,
List
<
int
>
master
)
{
return
_
goldens
.
compareLists
(
test
,
master
);
return
goldens
.
compareLists
(
test
,
master
);
}
}
...
...
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