Skip to content

Commit

Permalink
Add documentation for more lints
Browse files Browse the repository at this point in the history
Change-Id: I20955662d77591a0cd15f06de845008c3ffeaba1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364164
Reviewed-by: Marya Belanger <[email protected]>
Commit-Queue: Brian Wilkerson <[email protected]>
  • Loading branch information
bwilkerson authored and Commit Queue committed May 23, 2024
1 parent cdf35f8 commit 8c26c35
Show file tree
Hide file tree
Showing 3 changed files with 614 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analyzer/lib/src/test_utilities/mock_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,7 @@ abstract class FileSystemEntity {
class IOSink implements Sink<List<int>> {
Future<dynamic> close() {}
void write(Object? object) {}
}
class Platform {
Expand Down
6 changes: 6 additions & 0 deletions pkg/analyzer/test/verify_diagnostics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class DocumentationValidator {
// The code has been replaced but is not yet removed.
'HintCode.DEPRECATED_MEMBER_USE',

// Need a way to specify the existance of files whose content is irrelevant.
'LintCode.always_use_package_imports',
// Missing support for example files outside of `lib`.
'LintCode.avoid_relative_lib_imports',
// The example isn't being recognized as a flutter app. We might need to
Expand All @@ -116,8 +118,12 @@ class DocumentationValidator {
'LintCode.package_names',
// The lint does nothing.
'LintCode.package_prefixed_library_names',
// Need a way to specify the existance of files whose content is irrelevant.
'LintCode.prefer_relative_imports',
// Missing support for YAML files.
'LintCode.secure_pubspec_urls',
// The test framework doesn't yet support lints in non-dart files.
'LintCode.sort_pub_dependencies',
// Extra warning.
'LintCode.recursive_getters',

Expand Down
Loading

0 comments on commit 8c26c35

Please sign in to comment.