Skip to content

Commit

Permalink
Fix a few diagnostics in anticipation of lints v5
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Nov 22, 2024
1 parent 18ab1d5 commit afd95da
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dwds/lib/src/debugging/inspector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ class AppInspector implements AppInspectorInterface {
return _instanceHelper.metadataHelper.isNativeJsError(instanceRef.classRef);
}

/// Request and cache <ScriptRef>s for all the scripts in the application.
/// Request and cache `<ScriptRef>` tags for all the
/// scripts in the application.
///
/// This populates [_scriptRefsById], [_scriptIdToLibraryId],
/// [_libraryIdToScriptRefs] and [_serverPathToScriptRef].
Expand Down
4 changes: 2 additions & 2 deletions dwds/lib/src/debugging/metadata/class.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ class ClassMetaData {

/// Type name for Type instances.
///
/// For example, 'int', 'String', 'MyClass', 'List<int>'.
/// For example: `'int'`, `'String'`, `'MyClass'`, `'List<int>'`.
final String? typeName;

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

/// The dart type name for the object.
///
/// For example, 'int', 'List<String>', 'Null'
/// For example: `'int'`, `'List<String>'`, `'Null'`.
String? get dartName => classRef.name;

/// Class ref for the class metadata.
Expand Down
2 changes: 1 addition & 1 deletion dwds/lib/src/readers/asset_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:package_config/package_config.dart';
abstract class AssetReader {
/// Base path of the application, for example, set up in the index file:
///
/// ```
/// ```html
/// <html>
/// <head>
/// <base href="/abc/">
Expand Down
5 changes: 3 additions & 2 deletions dwds/lib/src/services/expression_evaluator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ class ExpressionEvaluator {
static final _syntheticNameFilterRegex =
RegExp('org-dartlang-debug:synthetic_debug_expression:.*:.*Error: ');

/// Find module path from the XHR call network error message received from chrome.
/// Find module path from the XHR call network error message
/// received from chrome.
///
/// Example:
/// NetworkError: Failed to load 'http://<hostname>.com/path/to/module.js?<cache_busting_token>'
/// `NetworkError: Failed to load 'http://<hostname>.com/path/to/module.js?<cache_busting_token>'`
static final _loadModuleErrorRegex =
RegExp(r".*Failed to load '.*\.com/(.*\.js).*");

Expand Down
4 changes: 2 additions & 2 deletions dwds/test/fixtures/project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class TestProject {
),
);

/// The URI for the package_config.json is located in:
/// <project directory>/.dart_tool/package_config
/// The URI for the `package_config.json` is located in:
/// `<project directory>/.dart_tool/package_config`.
Uri get packageConfigFile => p.toUri(
p.join(
absolutePackageDirectory,
Expand Down

0 comments on commit afd95da

Please sign in to comment.