Unverified Commit 5ac97140 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Enable no_leading_underscores_for_library_prefixes (#96420)

parent 8256f94e
...@@ -134,7 +134,7 @@ linter: ...@@ -134,7 +134,7 @@ linter:
- no_adjacent_strings_in_list - no_adjacent_strings_in_list
- no_default_cases - no_default_cases
- no_duplicate_case_values - 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_leading_underscores_for_local_identifiers # not yet tested
- no_logic_in_create_state - no_logic_in_create_state
# - no_runtimeType_toString # ok in tests; we enable this only in packages/ # - no_runtimeType_toString # ok in tests; we enable this only in packages/
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import '_bitfield_io.dart' 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. /// The largest SMI value.
/// ///
...@@ -11,7 +11,7 @@ import '_bitfield_io.dart' ...@@ -11,7 +11,7 @@ import '_bitfield_io.dart'
/// ///
/// When compiling to JavaScript, this value is not supported since it is /// When compiling to JavaScript, this value is not supported since it is
/// larger than the maximum safe 32bit integer. /// 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"). /// 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. /// Only the first 62 values of the enum can be used as indices.
...@@ -21,7 +21,7 @@ abstract class BitField<T extends dynamic> { ...@@ -21,7 +21,7 @@ abstract class BitField<T extends dynamic> {
/// Creates a bit field of all zeros. /// Creates a bit field of all zeros.
/// ///
/// The given length must be at most 62. /// 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. /// Creates a bit field filled with a particular value.
/// ///
...@@ -29,7 +29,7 @@ abstract class BitField<T extends dynamic> { ...@@ -29,7 +29,7 @@ abstract class BitField<T extends dynamic> {
/// the bits are filled with zeros. /// the bits are filled with zeros.
/// ///
/// The given length must be at most 62. /// 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. /// Returns whether the bit with the given index is set to one.
bool operator [](T index); bool operator [](T index);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'dart:async'; import 'dart:async';
import '_isolates_io.dart' 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]. /// Signature for the callback passed to [compute].
/// ///
...@@ -49,4 +49,4 @@ typedef ComputeImpl = Future<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q ...@@ -49,4 +49,4 @@ typedef ComputeImpl = Future<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q
/// See also: /// See also:
/// ///
/// * [ComputeImpl], for function parameters and usage details. /// * [ComputeImpl], for function parameters and usage details.
const ComputeImpl compute = _isolates.compute; const ComputeImpl compute = isolates.compute;
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import '_platform_io.dart' 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 /// The [TargetPlatform] that matches the platform on which the framework is
/// currently executing. /// currently executing.
...@@ -36,7 +36,7 @@ import '_platform_io.dart' ...@@ -36,7 +36,7 @@ import '_platform_io.dart'
// that would mean we'd be stuck with that platform forever emulating the other, // 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 // and we'd never be able to introduce dedicated behavior for that platform
// (since doing so would be a big breaking change). // (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. /// The platform that user interaction should adapt to target.
/// ///
......
...@@ -8,7 +8,7 @@ import 'dart:ui'; ...@@ -8,7 +8,7 @@ import 'dart:ui';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import 'package:test_api/test_api.dart'; // ignore: deprecated_member_use 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. /// Compares image pixels against a golden image file.
/// ///
...@@ -94,7 +94,7 @@ abstract class GoldenFileComparator { ...@@ -94,7 +94,7 @@ abstract class GoldenFileComparator {
/// Returns a [ComparisonResult] to describe the pixel differential of the /// Returns a [ComparisonResult] to describe the pixel differential of the
/// [test] and [master] image bytes provided. /// [test] and [master] image bytes provided.
static Future<ComparisonResult> compareLists(List<int> test, List<int> master) { static Future<ComparisonResult> compareLists(List<int> test, List<int> master) {
return _goldens.compareLists(test, master); return goldens.compareLists(test, master);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment