Skip to content

Commit 1f8aea0

Browse files
devoncarewCommit Queue
authored and
Commit Queue
committed
Bump lints to a97011b4b031b1df94765dbacd7d92b0b765c8b9
Changes: ``` > git log --format="%C(auto) %h %s" af68bf0..a97011b https://dart.googlesource.com/lints.git/+/a97011b add unintended_html_in_doc_comment; rev to 5.1.0 (211) ``` Diff: https://dart.googlesource.com/lints.git/+/af68bf0cbad88002a2ae19ee8db37b64eb120c32..a97011b4b031b1df94765dbacd7d92b0b765c8b9/ Change-Id: I998d73f5f72e94d5f2922b0751d31620a837555e Tested: analysis only change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387601 Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Devon Carew <[email protected]>
1 parent 34f4464 commit 1f8aea0

File tree

33 files changed

+106
-63
lines changed

33 files changed

+106
-63
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ vars = {
157157
"intl_rev": "5d65e3808ce40e6282e40881492607df4e35669f",
158158
"json_rpc_2_rev": "b4810dc7bee5828f240586c81f3f34853cacdbce",
159159
"leak_tracker_rev": "f5620600a5ce1c44f65ddaa02001e200b096e14c", # manually rolled
160-
"lints_rev": "af68bf0cbad88002a2ae19ee8db37b64eb120c32",
160+
"lints_rev": "a97011b4b031b1df94765dbacd7d92b0b765c8b9",
161161
"logging_rev": "8752902b75a476d2c7b64dcf01aaaee885f35c4c",
162162
"markdown_rev": "f6eaea38146d8901756418c4e7123eb7bd77249e",
163163
"matcher_rev": "d6d573d0f8d65b36550ce62aad3ce6b5e987b642",

pkg/_macros/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ analyzer:
44
language:
55
strict-casts: true
66
errors:
7+
# Remove on next publish or protocol refactoring:
8+
unintended_html_in_doc_comment: ignore
79
# Remove on next publish or protocol refactoring;
810
# https://github.com/dart-lang/language/issues/3706.
911
unnecessary_library_name: ignore

pkg/analysis_server/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ analyzer:
2424
non_constant_identifier_names: ignore
2525
overridden_fields: ignore
2626
todo: ignore
27+
# Existing violations (361)
28+
unintended_html_in_doc_comment: ignore
2729

2830
linter:
2931
rules:

pkg/analysis_server_client/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ analyzer:
44
errors:
55
constant_identifier_names: ignore
66
non_constant_identifier_names: ignore
7+
# Existing violations (109)
8+
unintended_html_in_doc_comment: ignore
79

810
linter:
911
rules:

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,7 +2575,9 @@ abstract class TypeAliasElement
25752575
/// Note that this always instantiates the typedef itself, so for a
25762576
/// [TypeAliasElement] the returned [DartType] might still be a generic
25772577
/// type, with type formals. For example, if the typedef is:
2578+
///
25782579
/// typedef F<T> = void Function<U>(T, U);
2580+
///
25792581
/// then `F<int>` will produce `void Function<U>(int, U)`.
25802582
DartType instantiate({
25812583
required List<DartType> typeArguments,

pkg/analyzer/lib/dart/element/element2.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,9 @@ abstract class TypeAliasElement2
18001800
/// Note that this always instantiates the typedef itself, so for a
18011801
/// [TypeAliasElement2] the returned [DartType] might still be a generic
18021802
/// type, with type formals. For example, if the typedef is:
1803+
///
18031804
/// typedef F<T> = void Function<U>(T, U);
1805+
///
18041806
/// then `F<int>` will produce `void Function<U>(int, U)`.
18051807
DartType instantiate({
18061808
required List<DartType> typeArguments,

pkg/analyzer/lib/dart/element/type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ abstract class DartType implements SharedTypeStructure<DartType> {
7070
/// dart:async library.
7171
bool get isDartAsyncFuture;
7272

73-
/// Return `true` if this type represents the type 'FutureOr<T>' defined in
73+
/// Return `true` if this type represents the type `FutureOr<T>` defined in
7474
/// the dart:async library.
7575
bool get isDartAsyncFutureOr;
7676

pkg/analyzer/lib/src/dart/element/normalize.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class NormalizeHelper {
2929
return _normalize(T);
3030
}
3131

32-
/// NORM(R Function<X extends B>(S)) = R1 Function(X extends B1>(S1)
32+
/// `NORM(R Function<X extends B>(S)) = R1 Function(X extends B1>(S1)`
3333
/// * where R1 = NORM(R)
3434
/// * and B1 = NORM(B)
3535
/// * and S1 = NORM(S)
@@ -57,7 +57,7 @@ class NormalizeHelper {
5757
);
5858
}
5959

60-
/// NORM(FutureOr<T>)
60+
/// `NORM(FutureOr<T>)`
6161
DartType _futureOr(InterfaceType T) {
6262
// * let S be NORM(T)
6363
var S = _normalize(T.typeArguments[0]);

pkg/analyzer/lib/src/summary2/data_reader.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ class _StringTable {
217217
late final List<String?> _strings;
218218

219219
/// The structure of the table:
220-
/// <bytes with encoded strings>
221-
/// <the length of the bytes> <-- [startOffset]
222-
/// <the number strings>
223-
/// <the array of lengths of individual strings>
220+
/// - `<bytes with encoded strings>`
221+
/// - `<the length of the bytes> <-- [startOffset]`
222+
/// - `<the number strings>`
223+
/// - `<the array of lengths of individual strings>`
224224
_StringTable({
225225
required Uint8List bytes,
226226
required int startOffset,

pkg/analyzer/test/src/dart/element/normalize_type_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class NormalizeTypeTest extends AbstractTypeSystemTest with StringTypes {
254254
);
255255
}
256256

257-
/// NORM(FutureOr<T>)
257+
/// `NORM(FutureOr<T>)`
258258
/// * let S be NORM(T)
259259
test_futureOr() {
260260
void check(DartType T, DartType expected) {

pkg/analyzer/test/src/dart/element/type_constraint_gatherer_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class TypeConstraintGathererTest extends AbstractTypeSystemTest {
590590
);
591591
}
592592

593-
/// If `P` is `C<M0, ..., Mk> and `Q` is `C<N0, ..., Nk>`, then the match
593+
/// If `P` is `C<M0, ..., Mk>` and `Q` is `C<N0, ..., Nk>`, then the match
594594
/// holds under constraints `C0 + ... + Ck`:
595595
/// If `Mi` is a subtype match for `Ni` with respect to L under
596596
/// constraints `Ci`.

pkg/analyzer/test/src/dart/element/upper_lower_bound_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,8 +2635,8 @@ class UpperBoundTest extends _BoundsTestBase {
26352635
);
26362636
}
26372637

2638-
/// UP(Future<T1>, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)
2639-
/// UP(FutureOr<T1>, Future<T2>) = FutureOr<T3> where T3 = UP(T1, T2)
2638+
/// `UP(Future<T1>, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)`
2639+
/// `UP(FutureOr<T1>, Future<T2>) = FutureOr<T3> where T3 = UP(T1, T2)`
26402640
test_futureOr_future() {
26412641
void check(DartType T1, DartType T2, DartType expected) {
26422642
_checkLeastUpperBound(
@@ -2650,7 +2650,7 @@ class UpperBoundTest extends _BoundsTestBase {
26502650
check(intNone, stringNone, objectNone);
26512651
}
26522652

2653-
/// UP(FutureOr<T1>, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)
2653+
/// `UP(FutureOr<T1>, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)`
26542654
test_futureOr_futureOr() {
26552655
void check(DartType T1, DartType T2, DartType expected) {
26562656
_checkLeastUpperBound(
@@ -2664,8 +2664,8 @@ class UpperBoundTest extends _BoundsTestBase {
26642664
check(intNone, stringNone, objectNone);
26652665
}
26662666

2667-
/// UP(T1, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)
2668-
/// UP(FutureOr<T1>, T2) = FutureOr<T3> where T3 = UP(T1, T2)
2667+
/// `UP(T1, FutureOr<T2>) = FutureOr<T3> where T3 = UP(T1, T2)`
2668+
/// `UP(FutureOr<T1>, T2) = FutureOr<T3> where T3 = UP(T1, T2)`
26692669
test_futureOr_other() {
26702670
void check(DartType T1, DartType T2, DartType expected) {
26712671
_checkLeastUpperBound(

pkg/analyzer_plugin/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ analyzer:
1111
non_constant_identifier_names: ignore
1212
# Existing violations (3)
1313
library_private_types_in_public_api: ignore
14+
# Existing violations (194)
15+
unintended_html_in_doc_comment: ignore
1416

1517
linter:
1618
rules:

pkg/dart2js_info/bin/src/to_devtools_format.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class ProgramInfoBuilder extends VMProgramInfoVisitor<vm.ProgramInfoNode?> {
144144
/// [PackageInfo] objects.
145145
final Map<String, PackageInfo> packageInfos = {};
146146

147-
/// Mapping between an <unnamed> [LibraryInfo] object and the name of the
147+
/// Mapping between an `<unnamed>` [LibraryInfo] object and the name of the
148148
/// corresponding [vm.ProgramInfoNode] object.
149149
final Map<Info, String> unnamedLibraries = {};
150150

pkg/dart2wasm/lib/await_transformer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'state_machine.dart' as stateMachineCodeGen;
1212
/// This pass lifts `await` expressions to the top-level. After the pass, all
1313
/// `await` expressions will have the form:
1414
///
15-
/// final $temp = await <simple expr>;
15+
/// final $temp = await <simple expr>;
1616
///
1717
/// where `<simple expr>` is an expression without `await`.
1818
///

pkg/dart2wasm/lib/ffi_native_transformer.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ import 'abi.dart' show kWasmAbiEnumIndex;
2323
///
2424
/// Example:
2525
///
26-
/// @Native<Int8 Function(Int8, Int8)>(symbol: "addInt8")
27-
/// external int addInt8(int a, int b);
26+
/// @Native<Int8 Function(Int8, Int8)>(symbol: "addInt8")
27+
/// external int addInt8(int a, int b);
2828
///
2929
/// Converted to:
3030
///
31-
/// external static wasm::WasmI32 addInt8_$import(wasm::WasmI32 a, wasm::WasmI32 b);
31+
/// external static wasm::WasmI32 addInt8_$import(wasm::WasmI32 a, wasm::WasmI32 b);
3232
///
33-
/// static int addInt8(int a, int b) =>
34-
/// addInt8_$import(WasmI32::int8FromInt(a), WasmI32::int8FromInt(b)).toIntSigned();
33+
/// static int addInt8(int a, int b) =>
34+
/// addInt8_$import(WasmI32::int8FromInt(a), WasmI32::int8FromInt(b)).toIntSigned();
3535
///
3636
void transformLibraries(
3737
Component component,

pkg/dart2wasm/lib/js/callback_specializer.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ class CallbackSpecializer {
254254

255255
/// Lowers an invocation of `allowInterop<type>(foo)` to:
256256
///
257-
/// let #var = foo in
258-
/// _isDartFunctionWrapped<type>(#var) ?
259-
/// #var :
260-
/// _wrapDartFunction<type>(#var, jsWrapperFunction(#var));
257+
/// let #var = foo in
258+
/// _isDartFunctionWrapped<type>(#var) ?
259+
/// #var :
260+
/// _wrapDartFunction<type>(#var, jsWrapperFunction(#var));
261261
///
262262
/// The use of two functions here is necessary because we do not allow
263263
/// `WasmExternRef` to be an argument or return type for a tear off.
@@ -346,11 +346,11 @@ class CallbackSpecializer {
346346
/// Given an invocation of `Function.toJS`, returns an [Expression]
347347
/// representing:
348348
///
349-
/// JSValue(jsWrapperFunction(<Function>))
349+
/// JSValue(jsWrapperFunction(<Function>))
350350
///
351351
/// or if a cast closure is needed:
352352
///
353-
/// JSValue(jsWrapperFunction(<Function>, <CastClosure>))
353+
/// JSValue(jsWrapperFunction(<Function>, <CastClosure>))
354354
///
355355
/// If [captureThis] is true, this is assumed to be an invocation of
356356
/// `Function.toJSCaptureThis`.

pkg/dart2wasm/lib/transformers.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -781,21 +781,21 @@ class _AsyncStarFrame {
781781

782782
/// Converts `pushWasmArray<T>(array, length, elem, nextCapacity)` to:
783783
///
784-
/// if (array.length == length) {
785-
/// final newArray = WasmArray<T>(nextCapacity);
786-
/// newArray.copy(0, array, 0, length);
787-
/// array = newArray;
788-
/// }
789-
/// array[length] = elem;
790-
/// length += 1;
784+
/// if (array.length == length) {
785+
/// final newArray = WasmArray<T>(nextCapacity);
786+
/// newArray.copy(0, array, 0, length);
787+
/// array = newArray;
788+
/// }
789+
/// array[length] = elem;
790+
/// length += 1;
791791
///
792792
/// and `popWasmArray<T>(array, length)` to block expression:
793793
///
794-
/// {
795-
/// length -= 1;
796-
/// final T _value = array[length];
797-
/// array[length] = null;
798-
/// } => _value
794+
/// {
795+
/// length -= 1;
796+
/// final T _value = array[length];
797+
/// array[length] = null;
798+
/// } => _value
799799
///
800800
/// This allows unboxing growable list in class fields.
801801
///

pkg/dart2wasm/lib/translator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ class Translator with KernelNodes {
12511251
b.i32_wrap_i64();
12521252
}
12531253

1254-
/// Get the WasmListBase._data field of type WasmArray<Object?>.
1254+
/// Get the `WasmListBase._data` field of type `WasmArray<Object?>`.
12551255
void getListBaseArray(w.InstructionsBuilder b) {
12561256
ClassInfo info = classInfo[listBaseClass]!;
12571257
b.struct_get(info.struct, FieldIndex.listArray);

pkg/dev_compiler/lib/src/compiler/rewrite_async.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,10 @@ abstract class AsyncRewriterBase extends js_ast.NodeVisitor<Object?> {
391391
/// body.
392392
///
393393
/// We cannot simply rewrite `<receiver>.m()` to:
394+
///
394395
/// temp = <receiver>.m;
395396
/// temp();
397+
///
396398
/// Because this leaves `this` unbound in the call. To solve this we `bind`
397399
/// the receiver to the tear-off to re-establish the `this` context.
398400
///

pkg/dev_compiler/lib/src/kernel/module_symbols.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class Symbol implements SymbolTableElement {
195195

196196
/// Unique Id, shared with JS representation (if any).
197197
///
198-
/// '<scope id>|<js name>'
198+
/// `'<scope id>|<js name>'`
199199
///
200200
/// Where scope refers to a Library, Class, Function, or Scope.
201201
String get id => scopeId == null ? localId : '$scopeId|$localId';
@@ -433,7 +433,8 @@ class FunctionSymbol extends ScopeSymbol {
433433
/// Unique Id, shared with JS representation (if any).
434434
///
435435
/// Format:
436-
/// '<scope id>|<js name>'
436+
///
437+
/// '<scope id>|<js name>'
437438
///
438439
/// Where scope refers to a Library, Class, Function, or Scope.
439440
/// String id;

pkg/dev_compiler/lib/src/kernel/type_environment.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,29 @@ abstract class DDCTypeEnvironment {
2727
/// Returns all class type parameters in this type environment.
2828
///
2929
/// For the example:
30+
///
31+
/// ```
3032
/// Class Foo<T> {
3133
/// method<U> {
3234
/// ... // this
3335
/// }
3436
/// }
37+
/// ```
3538
///
3639
/// classTypeParameters in this would return ['T'].
3740
List<TypeParameter> get classTypeParameters;
3841

3942
/// Returns all class type parameters in this type environment.
4043
///
4144
/// For the example:
45+
///
46+
/// ```
4247
/// Class Foo<T> {
4348
/// method<U> {
4449
/// ... // this
4550
/// }
4651
/// }
52+
/// ```
4753
///
4854
/// functionTypeParameters this would return ['U'].
4955
List<TypeParameter> get functionTypeParameters;

pkg/native_stack_traces/lib/src/convert.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ class StackTraceHeader {
385385
return null;
386386
}
387387

388-
/// Parses strings of the format <static symbol>+<integer offset>, where
389-
/// <static symbol> is one of the static symbols used for Dart instruction
388+
/// Parses strings of the format `<static symbol>+<integer offset>`, where
389+
/// `<static symbol>` is one of the static symbols used for Dart instruction
390390
/// sections.
391391
///
392392
/// Unless forceHexadecimal is true, an integer offset without a "0x" prefix or
@@ -418,7 +418,7 @@ PCOffset? tryParseSymbolOffset(String s,
418418
/// - The location of the virtual address, which is one of the following:
419419
/// - A dynamic symbol name, a plus sign, and an integer offset.
420420
/// - The path to the snapshot, if it was loaded as a dynamic library,
421-
/// otherwise the string "<unknown>".
421+
/// otherwise the string `"<unknown>"`.
422422
const _symbolOffsetREString = r'(?<symbol>' +
423423
constants.vmSymbolName +
424424
r'|' +

pkg/reload_test/lib/frontend_server_controller.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ enum FrontendServerState {
4848
/// Controls and synchronizes the Frontend Server during hot reloaad tests.
4949
///
5050
/// The Frontend Server accepts the following instructions:
51+
///
52+
/// ```
5153
/// > compile <input.dart>
5254
///
5355
/// > recompile [<input.dart>] <boundary-key>
@@ -65,6 +67,7 @@ enum FrontendServerState {
6567
/// <boundary-key>
6668
/// [<error text or modified files prefixed by '-' or '+'>]
6769
/// <boundary-key> [<output.dill>] <error-count>
70+
/// ```
6871
class HotReloadFrontendServerController {
6972
final List<String> frontendServerArgs;
7073

pkg/telemetry/lib/src/pii_regexp.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class _RegExpList {
3131
}
3232

3333
/// An ordered list of regular expressions to be substituted out and replaced
34-
/// with a generic '<path>' string. To be applied in sequence.
34+
/// with a generic `<path>` string. To be applied in sequence.
3535
/// The regular expressions here intentionally eat all characters after a
3636
/// path is identified, with the hope of catching all potential complex
3737
/// pathnames and assuming that most error messages will have any paths last.
@@ -54,7 +54,7 @@ final _piiPathRegexps = _RegExpList([
5454
], '<path>');
5555

5656
/// An ordered list of regular expressions to be substituted out and replaced
57-
/// with a generic '<filename>' string. To be applied after
57+
/// with a generic `<filename>` string. To be applied after
5858
/// all paths from [_piiPathRegexps] are applied. This is somewhat less
5959
/// all-encompassing than the path finder, above, just to try and grab things
6060
/// that could be file names but without being quite so greedy or depending

pkg/vm/lib/modular/specializer/map_factory_specializer.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import 'package:kernel/core_types.dart';
77

88
import 'factory_specializer.dart';
99

10-
/// Replaces invocation of Map factory constructors with
11-
/// factories of VM-specific classes.
12-
/// new LinkedHashMap<K, V>() => new _Map<K, V>()
10+
/// Replaces invocation of Map factory constructors with factories of
11+
/// VM-specific classes.
12+
///
13+
/// new LinkedHashMap<K, V>() => new _Map<K, V>()
1314
class MapFactorySpecializer extends BaseSpecializer {
1415
final Procedure _linkedHashMapDefaultFactory;
1516
final Constructor _internalLinkedHashMapConstructor;

0 commit comments

Comments
 (0)