Skip to content

Commit afd95da

Browse files
committed
Fix a few diagnostics in anticipation of lints v5
1 parent 18ab1d5 commit afd95da

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

dwds/lib/src/debugging/inspector.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ class AppInspector implements AppInspectorInterface {
692692
return _instanceHelper.metadataHelper.isNativeJsError(instanceRef.classRef);
693693
}
694694

695-
/// Request and cache <ScriptRef>s for all the scripts in the application.
695+
/// Request and cache `<ScriptRef>` tags for all the
696+
/// scripts in the application.
696697
///
697698
/// This populates [_scriptRefsById], [_scriptIdToLibraryId],
698699
/// [_libraryIdToScriptRefs] and [_serverPathToScriptRef].

dwds/lib/src/debugging/metadata/class.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ class ClassMetaData {
9090

9191
/// Type name for Type instances.
9292
///
93-
/// For example, 'int', 'String', 'MyClass', 'List<int>'.
93+
/// For example: `'int'`, `'String'`, `'MyClass'`, `'List<int>'`.
9494
final String? typeName;
9595

9696
/// The length of the object, if applicable.
9797
final int? length;
9898

9999
/// The dart type name for the object.
100100
///
101-
/// For example, 'int', 'List<String>', 'Null'
101+
/// For example: `'int'`, `'List<String>'`, `'Null'`.
102102
String? get dartName => classRef.name;
103103

104104
/// Class ref for the class metadata.

dwds/lib/src/readers/asset_reader.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:package_config/package_config.dart';
1111
abstract class AssetReader {
1212
/// Base path of the application, for example, set up in the index file:
1313
///
14-
/// ```
14+
/// ```html
1515
/// <html>
1616
/// <head>
1717
/// <base href="/abc/">

dwds/lib/src/services/expression_evaluator.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ class ExpressionEvaluator {
4545
static final _syntheticNameFilterRegex =
4646
RegExp('org-dartlang-debug:synthetic_debug_expression:.*:.*Error: ');
4747

48-
/// Find module path from the XHR call network error message received from chrome.
48+
/// Find module path from the XHR call network error message
49+
/// received from chrome.
4950
///
5051
/// Example:
51-
/// NetworkError: Failed to load 'http://<hostname>.com/path/to/module.js?<cache_busting_token>'
52+
/// `NetworkError: Failed to load 'http://<hostname>.com/path/to/module.js?<cache_busting_token>'`
5253
static final _loadModuleErrorRegex =
5354
RegExp(r".*Failed to load '.*\.com/(.*\.js).*");
5455

dwds/test/fixtures/project.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class TestProject {
4747
),
4848
);
4949

50-
/// The URI for the package_config.json is located in:
51-
/// <project directory>/.dart_tool/package_config
50+
/// The URI for the `package_config.json` is located in:
51+
/// `<project directory>/.dart_tool/package_config`.
5252
Uri get packageConfigFile => p.toUri(
5353
p.join(
5454
absolutePackageDirectory,

0 commit comments

Comments
 (0)