diff --git a/pubspec.yaml b/pubspec.yaml index bb494b894..d20b9b789 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -44,6 +44,7 @@ dev_dependencies: json_serializable: ^6.9.5 shelf: ^1.4.2 source_gen: ^4.0.0 + stack_trace: ^1.12.1 tar: ^2.0.0 test_descriptor: ^2.0.2 test_process: ^2.1.1 diff --git a/test/bin_pana_test.dart b/test/bin_pana_test.dart index b7adc418c..adfb10233 100644 --- a/test/bin_pana_test.dart +++ b/test/bin_pana_test.dart @@ -5,40 +5,29 @@ import 'dart:io'; import 'package:io/io.dart'; -import 'package:path/path.dart' as p; import 'package:test/test.dart'; -import 'package:test_process/test_process.dart'; import 'golden_file.dart'; -final helpGoldenPath = p.join('test', 'goldens', 'help.txt'); - void main() { // This is really two tests in one, because the second one depends on the // golden file from the first. - test( + testWithGolden( 'run with bad option shows help text. Help text is included in readme ', - () async { - var process = await TestProcess.start( - p.join(p.dirname(Platform.resolvedExecutable), 'dart'), - ['pub', 'run', 'pana', '--monkey'], - ); - - var output = await process.stdoutStream().join('\n'); - - const prefix = 'Could not find an option named "--monkey".\n\n'; - - expect(output, startsWith(prefix)); - expectMatchesGoldenFile(output.substring(prefix.length), helpGoldenPath); - - await process.shouldExit(ExitCode.usage.code); - - var readme = File('README.md'); - expect( - readme.readAsStringSync().replaceAll('\r\n', '\n'), - contains( - '```\n${File(helpGoldenPath).readAsStringSync().replaceAll('\r\n', '\n')}\n```', + (goldenContext) async { + final readme = File('README.md').readAsStringSync(); + final helpText = RegExp( + r'```\n(Usage:.*)\n```', + multiLine: true, + dotAll: true, + ).firstMatch(readme)![1]!; + await goldenContext.run( + [Platform.resolvedExecutable, 'run', 'pana', '--monkey'], + stdoutExpectation: allOf( + contains('Could not find an option named "--monkey".\n\n'), + contains(helpText), ), + exitCodeExpectation: ExitCode.usage.code, ); }, ); diff --git a/test/end2end_test.dart b/test/end2end_test.dart index 92d669261..b338e49c6 100644 --- a/test/end2end_test.dart +++ b/test/end2end_test.dart @@ -12,7 +12,7 @@ import 'package:test/test.dart'; import 'env_utils.dart'; import 'golden_file.dart'; -final _goldenDir = p.join('test', 'goldens', 'end2end'); +final _testDataDir = p.join('test', 'testData'); void main() { void verifyPackage( @@ -20,7 +20,6 @@ void main() { String version, { bool skipDartdoc = false, }) { - final filename = '$package-$version.json'; group('end2end: $package $version', () { late TestEnv testEnv; late final Map actualMap; @@ -102,7 +101,7 @@ void main() { await testEnv.close(); }); - test('matches known good', () { + testWithGolden('$package $version report', (context) { void removeDependencyDetails(Map map) { if (map.containsKey('pkgResolution') && (map['pkgResolution'] as Map).containsKey('dependencies')) { @@ -128,9 +127,6 @@ void main() { r'Error on line 5, column 1 of $TEMPDIR/pubspec.yaml', ); - final jsonGoldenFile = GoldenFile(p.join(_goldenDir, filename)); - jsonGoldenFile.writeContentIfNotExists(jsonNoTempDir); - final jsonReport = actualMap['report'] as Map?; if (jsonReport != null) { final report = Report.fromJson(jsonReport); @@ -140,16 +136,12 @@ void main() { '## ${s.grantedPoints}/${s.maxPoints} ${s.title}\n\n${s.summary}', ) .join('\n\n'); - // For readability we output the report in its own file. - final reportGoldenFile = GoldenFile( - p.join(_goldenDir, '${filename}_report.md'), + context.expectSection( + renderedSections.replaceAll('\r\n', '\n'), + sectionTitle: 'rendered report', ); - reportGoldenFile.writeContentIfNotExists(renderedSections); - reportGoldenFile.expectContent(renderedSections); } - - // note: golden file expectations happen after content is already written - jsonGoldenFile.expectContent(jsonNoTempDir); + context.expectSection(jsonNoTempDir, sectionTitle: 'json report'); var summary = Summary.fromJson(actualMap); @@ -233,7 +225,7 @@ void main() { } Future _detectGoldenLastModified() async { - final timestampFile = File(p.join(_goldenDir, '__timestamp.txt')); + final timestampFile = File(p.join(_testDataDir, '__timestamp.txt')); await timestampFile.parent.create(recursive: true); if (timestampFile.existsSync()) { final content = await timestampFile.readAsString(); diff --git a/test/golden_file.dart b/test/golden_file.dart index 98e38530c..b2a34591b 100644 --- a/test/golden_file.dart +++ b/test/golden_file.dart @@ -1,50 +1,220 @@ -// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +import 'dart:async'; import 'dart:io'; +import 'package:path/path.dart' as p; +import 'package:stack_trace/stack_trace.dart' show Trace; import 'package:test/test.dart'; -/// Will test [actual] against the contests of the file at [goldenFilePath]. -/// -/// If the file doesn't exist, the file is instead created containing [actual]. -void expectMatchesGoldenFile(String actual, String goldenFilePath) { - final goldenFile = GoldenFile(goldenFilePath); - goldenFile.writeContentIfNotExists(actual); - goldenFile.expectContent(actual); -} +final _isCI = () { + final p = RegExp(r'^1|(?:true)$', caseSensitive: false); + final ci = Platform.environment['CI']; + return ci != null && ci.isNotEmpty && p.hasMatch(ci); +}(); -/// Access to a file that contains the expected output of a process. -class GoldenFile { - final String path; - late final File _file; - late final bool _didExists; - late final String? _oldContent; - - GoldenFile(this.path) { - _file = File(path); - _didExists = _file.existsSync(); - _oldContent = _didExists ? _file.readAsStringSync() : null; - } +/// Find the current `_test.dart` filename invoked from stack-trace. +String _findCurrentTestFilename() => Trace.current().frames + .lastWhere( + (frame) => + frame.uri.isScheme('file') && + p.basename(frame.uri.toFilePath()).endsWith('_test.dart'), + ) + .uri + .toFilePath(); + +class GoldenTestContext { + static const _endOfSection = + '' + '--------------------------------' + ' END OF OUTPUT ' + '---------------------------------\n\n'; + + final File _goldenFile; + final String _header; + final _results = []; + late bool _shouldRegenerateGolden; + final bool colors; + bool _generatedNewData = false; // track if new data is generated + int _nextSectionIndex = 0; + + GoldenTestContext._( + String currentTestFile, + String testName, { + required this.colors, + }) : _goldenFile = File( + p.join( + 'test', + 'testdata', + 'goldens', + p.relative( + currentTestFile.replaceAll(RegExp(r'\.dart$'), ''), + from: p.join(p.current, 'test'), + ), + // Sanitize the name, and add .ans or .txt. + '${testName.replaceAll(RegExp(r'[<>:"/\|?*%#]'), '~')}.' + '${colors ? 'ans' : 'txt'}', + ), + ), + _header = '# GENERATED BY: ${p.relative(currentTestFile)}\n\n'; + + String get _goldenFilePath => _goldenFile.path; - void writeContentIfNotExists(String content) { - if (_didExists) return; - _file.createSync(recursive: true); - _file.writeAsStringSync(content); + void _readGoldenFile() { + if (RegExp( + r'^1|(?:true)$', + caseSensitive: false, + ).hasMatch(Platform.environment['_WRITE_GOLDEN'] ?? '') || + !_goldenFile.existsSync()) { + _shouldRegenerateGolden = true; + } else { + _shouldRegenerateGolden = false; + // Read the golden file for this test + var text = _goldenFile.readAsStringSync().replaceAll('\r\n', '\n'); + // Strip header line + if (text.startsWith('#') && text.contains('\n\n')) { + text = text.substring(text.indexOf('\n\n') + 2); + } + _results.addAll(text.split(_endOfSection)); + } } - void expectContent(String actual) { - if (_didExists) { + /// Expect section [sectionIndex] to match [actual]. + void _expectSection(int sectionIndex, String actual) { + if (!_shouldRegenerateGolden && + _results.length > sectionIndex && + _results[sectionIndex].isNotEmpty) { expect( - actual.replaceAll('\r\n', '\n'), - equals(_oldContent!.replaceAll('\r\n', '\n')), - reason: - 'goldenFilePath: "$path". ' - 'To update the expectation delete this file and rerun the test.', + actual, + equals(_results[sectionIndex]), + reason: 'Expect matching section $sectionIndex from "$_goldenFilePath"', ); } else { - fail('Golden file $path was recreated!'); + while (_results.length <= sectionIndex) { + _results.add(''); + } + _results[sectionIndex] = actual; + _generatedNewData = true; + } + } + + void _writeGoldenFile() { + // If we generated new data, then we need to write a new file, and fail the + // test case, or mark it as skipped. + if (_generatedNewData) { + // This enables writing the updated file when run in otherwise hermetic + // settings. + // + // This is to make updating the golden files easier in a bazel environment + // See https://docs.bazel.build/versions/2.0.0/user-manual.html#run . + var goldenFile = _goldenFile; + final workspaceDirectory = + Platform.environment['BUILD_WORKSPACE_DIRECTORY']; + if (workspaceDirectory != null) { + goldenFile = File(p.join(workspaceDirectory, _goldenFilePath)); + } + goldenFile + ..createSync(recursive: true) + ..writeAsStringSync(_header + _results.join(_endOfSection)); + + // If running in CI we should fail if the golden file doesn't already + // exist, or is missing entries. + // This typically happens if we forgot to commit a file to git. + if (_isCI) { + fail( + 'Missing golden file: "$_goldenFilePath", ' + 'try running tests again and commit the file', + ); + } else { + // If not running in CI, then we consider the test as skipped, we've + // generated the file, but the user should run the tests again. + // Or push to CI in which case we'll run the tests again anyways. + markTestSkipped( + 'Generated golden file: "$_goldenFilePath" instead of running test', + ); + } } } + + /// Expect the next section in the golden file to match [actual]. + /// + /// This will create the section if it is missing. + /// + /// **Warning**: Take care when using this in an async context, sections are + /// numbered based on the other in which calls are made. Hence, ensure + /// consistent ordering of calls. + void expectSection(String actual, {String? sectionTitle}) { + _expectSection(_nextSectionIndex++, ''' +## Section ${sectionTitle ?? _nextSectionIndex} +$actual'''); + } + + /// Run [command] with [environment] in [workingDirectory], and + /// log stdout/stderr and exit code to golden file. + Future run( + List command, { + Map? environment, + String? workingDirectory, + String? stdin, + Matcher? stdoutExpectation, + Matcher? stderrExpectation, + Object? exitCodeExpectation = 0, + }) async { + final sectionIndex = _nextSectionIndex++; + final executable = command.first; + final args = command.skip(1).toList(); + final result = await Process.run( + executable, + args, + environment: environment, + workingDirectory: workingDirectory, + ); + final s = StringBuffer(); + s.writeln('## Section $sectionIndex'); + s.writeln('Run \$ ${p.basename(executable)} ${args.join(' ')}'); + s.writeln('Exit code: ${result.exitCode}'); + s.write('stdout: ${result.stdout}'); + s.write('stderr: ${result.stderr}'); + if (stdoutExpectation != null) { + expect(result.stdout, stdoutExpectation); + } + if (stderrExpectation != null) { + expect(result.stderr, stderrExpectation); + } + _expectSection(sectionIndex, s.toString()); + } +} + +/// Create a [test] with [GoldenTestContext] which allows running golden tests. +/// +/// This will create a golden file containing output of calls to: +/// * [GoldenTestContext.run] +/// +/// The golden file with the recorded output will be created at: +/// `test/testdata/goldens/path/to/myfile_test/.txt` +/// , when `path/to/myfile_test.dart` is the `_test.dart` file from which this +/// function is called. +/// +/// If [colors] is `true` the file will be created with an `.ans` extension that +/// indicates ANSI colors will be used. +/// +/// Such a file can eg. be viewed in vscode with this plugin: +/// https://marketplace.visualstudio.com/items?itemName=iliazeus.vscode-ansi +void testWithGolden( + String name, + FutureOr Function(GoldenTestContext ctx) fn, { + bool colors = false, +}) { + final ctx = GoldenTestContext._( + _findCurrentTestFilename(), + name, + colors: colors, + ); + test(name, () async { + ctx._readGoldenFile(); + await fn(ctx); + ctx._writeGoldenFile(); + }); } diff --git a/test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json_report.md b/test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json_report.md deleted file mode 100644 index 92c6460bb..000000000 --- a/test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json_report.md +++ /dev/null @@ -1,142 +0,0 @@ -## 15/30 Follow Dart file conventions - -### [x] 0/10 points: Provide a valid `pubspec.yaml` - -
- -Sdk-constraint doesn't allow future stable dart 2.x releases - - -`pubspec.yaml:6:8` - -``` - ╷ -6 │ sdk: ">=2.12.0-0 <2.12.0" - │ ^^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -
- -
- -Failed to verify repository URL. - - -Please provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that: - - * `repository` can be cloned, - * a clone of the repository contains a `pubspec.yaml`, which:, - * contains `name: _dummy_pkg`, - * contains a `version` property, and, - * does not contain a `publish_to` property. - -`pkg/pub_integration/test_data/_dummy_pkg/pubspec.yaml` from the repository has no `version`. -
- -### [*] 5/5 points: Provide a valid `README.md` - -### [x] 0/5 points: Provide a valid `CHANGELOG.md` - -
- -No `CHANGELOG.md` found. - - -Changelog entries help developers follow the progress of your package. Check out the Dart conventions for [Maintaining a package changelog](https://dart.dev/tools/pub/package-layout#changelog). -
- -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `BSD-3-Clause`. - - -## 10/20 Provide documentation - -### [x] 0/10 points: 20% or more of the public API has dartdoc comments - -Dependency resolution failed, unable to run `dartdoc`. - -### [*] 10/10 points: Package has an example - - -## 0/20 Platform support - -### [x] 0/20 points: Platform support detection failed - -
- -Could not determine supported platforms as package resolution failed. - - -Run `dart pub get` for more information. -
- - -## 0/50 Pass static analysis - -### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues - -* Running `dart pub outdated` failed with the following output: - -``` -The current Dart SDK version is {{sdk-version}}. -Because _dummy_pkg requires SDK version >=2.12.0-0 <2.12.0, version solving failed. -``` - - -## 0/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. - - -`pubspec.yaml:6:8` - -``` - ╷ -6 │ sdk: ">=2.12.0-0 <2.12.0" - │ ^^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -
- -### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. - - -`pubspec.yaml:6:8` - -``` - ╷ -6 │ sdk: ">=2.12.0-0 <2.12.0" - │ ^^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -Try widening the upper boundary of the constraint. -
- -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -`dart pub downgrade` failed with: - -``` -OUT: -Resolving dependencies... -ERR: -The current Dart SDK version is {{sdk-version}}. - -Because _dummy_pkg requires SDK version >=2.12.0-0 <2.12.0, version solving failed. -``` - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/async-2.11.0.json_report.md b/test/goldens/end2end/async-2.11.0.json_report.md deleted file mode 100644 index 0da2de77f..000000000 --- a/test/goldens/end2end/async-2.11.0.json_report.md +++ /dev/null @@ -1,96 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `BSD-3-Clause`. - - -## 10/20 Provide documentation - -### [*] 10/10 points: 20% or more of the public API has dartdoc comments - -246 out of 263 API elements (93.5 %) have documentation comments. - -Some symbols that are missing documentation: `async.AsyncMemoizer.AsyncMemoizer.new`, `async.ChunkedStreamReader.ChunkedStreamReader.new`, `async.DelegatingFuture.DelegatingFuture.new`, `async.DelegatingStream.DelegatingStream.new`, `async.ErrorResult.ErrorResult.new`. - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 20/20 Platform support - -### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - -* ✓ Web - -### [*] 0/0 points: WASM compatibility - -This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -
- -INFO: 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead. - - -`lib/src/stream_group.dart:242:10` - -``` - ╷ -242 │ .whereNotNull() - │ ^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/stream_group.dart` -
- - -## 40/40 Support up-to-date dependencies - -### [*] 10/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`collection`]|`^1.15.0`|1.19.1|1.19.1|| -|[`meta`]|`^1.1.7`|1.17.0|1.17.0|| - -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`collection`]: https://pub.dev/packages/collection -[`meta`]: https://pub.dev/packages/meta - -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/audio_service-0.18.17.json_report.md b/test/goldens/end2end/audio_service-0.18.17.json_report.md deleted file mode 100644 index 907861e8f..000000000 --- a/test/goldens/end2end/audio_service-0.18.17.json_report.md +++ /dev/null @@ -1,243 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 10/10 Provide documentation - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 4 of 6 possible platforms (**iOS**, **Android**, **Web**, Windows, **macOS**, Linux) - -* ✓ Android - -* ✓ iOS - -* ✓ macOS - -* ✓ Web - - -These platforms are not supported: - -
- -Package does not support platform `Windows`. - - -Because: -* `package:audio_service/audio_service.dart` that declares support for platforms: `Android`, `iOS`, `macOS`, `Web`. -
- -
- -Package does not support platform `Linux`. - - -Because: -* `package:audio_service/audio_service.dart` that declares support for platforms: `Android`, `iOS`, `macOS`, `Web`. -
- - -These issues are present but do not affect the score, because they may not originate in your package: - -
- -Package does not support platform `Web`. - - -Because: -* `package:audio_service/audio_service.dart` that imports: -* `package:flutter_cache_manager/flutter_cache_manager.dart` that imports: -* `package:flutter_cache_manager/src/storage/file_system/file_system.dart` that imports: -* `package:flutter_cache_manager/src/storage/file_system/file_system_io.dart` that imports: -* `package:path_provider/path_provider.dart` that declares support for platforms: `Android`, `iOS`, `Windows`, `Linux`, `macOS`. -
- -### [x] 0/0 points: WASM compatibility - -
- -Package not compatible with runtime wasm - - -Because: -* `package:audio_service/audio_service.dart` that imports: -* `package:flutter_cache_manager/flutter_cache_manager.dart` that imports: -* `package:flutter_cache_manager/src/web/web_helper.dart` that imports: -* `package:flutter_cache_manager/src/cache_store.dart` that imports: -* `dart:io` -
- -This package is not compatible with runtime `wasm`, and will not be rewarded full points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - -### [*] 0/0 points: Swift Package Manager support - -This iOS or macOS plugin supports the Swift Package Manager. It will be rewarded additional points in a future version of the scoring model. - -See https://docs.flutter.dev/to/spm for details. - - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -
- -INFO: The parameter name 'newQueue' doesn't match the name 'queue' in the overridden method. - - -`lib/audio_service.dart:3321:44` - -``` - ╷ -3321 │ Future updateQueue(List newQueue) async { - │ ^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart` -
- - -## 30/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`audio_service_platform_interface`]|`^0.1.3`|0.1.3|0.1.3|| -|[`audio_service_web`]|`^0.1.4`|0.1.4|0.1.4|| -|[`audio_session`]|`^0.1.25`|0.1.25|**0.2.2**|| -|[`clock`]|`^1.1.0`|1.1.2|1.1.2|| -|[`flutter_cache_manager`]|`^3.3.1`|3.4.1|3.4.1|| -|[`js`]|`>=0.6.3 <0.8.0`|0.7.2|0.7.2|**Discontinued**| -|[`rxdart`]|`>=0.26.0 <0.29.0`|0.28.0|0.28.0|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`async`]|-|2.13.0|2.13.0|| -|[`characters`]|-|1.4.0|1.4.1|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`crypto`]|-|3.0.6|3.0.6|| -|[`ffi`]|-|2.1.4|2.1.4|| -|[`file`]|-|7.0.1|7.0.1|| -|[`fixnum`]|-|1.1.1|1.1.1|| -|[`http`]|-|1.5.0|1.5.0|| -|[`http_parser`]|-|4.1.2|4.1.2|| -|[`material_color_utilities`]|-|0.11.1|0.13.0|| -|[`meta`]|-|1.16.0|1.17.0|| -|[`path`]|-|1.9.1|1.9.1|| -|[`path_provider`]|-|2.1.5|2.1.5|| -|[`path_provider_android`]|-|2.2.17|2.2.17|| -|[`path_provider_foundation`]|-|2.4.1|2.4.1|| -|[`path_provider_linux`]|-|2.2.1|2.2.1|| -|[`path_provider_platform_interface`]|-|2.1.2|2.1.2|| -|[`path_provider_windows`]|-|2.3.0|2.3.0|| -|[`platform`]|-|3.1.6|3.1.6|| -|[`plugin_platform_interface`]|-|2.1.8|2.1.8|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`sprintf`]|-|7.0.0|7.0.0|| -|[`sqflite`]|-|2.4.2|2.4.2|| -|[`sqflite_android`]|-|2.4.1|2.4.1|| -|[`sqflite_common`]|-|2.5.6|2.5.6|| -|[`sqflite_darwin`]|-|2.4.2|2.4.2|| -|[`sqflite_platform_interface`]|-|2.4.0|2.4.0|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`synchronized`]|-|3.4.0|3.4.0|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`typed_data`]|-|1.4.0|1.4.0|| -|[`uuid`]|-|4.5.1|4.5.1|| -|[`vector_math`]|-|2.2.0|2.2.0|| -|[`web`]|-|1.1.1|1.1.1|| -|[`xdg_directories`]|-|1.1.0|1.1.0|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`audio_service_platform_interface`]: https://pub.dev/packages/audio_service_platform_interface -[`audio_service_web`]: https://pub.dev/packages/audio_service_web -[`audio_session`]: https://pub.dev/packages/audio_session -[`clock`]: https://pub.dev/packages/clock -[`flutter_cache_manager`]: https://pub.dev/packages/flutter_cache_manager -[`js`]: https://pub.dev/packages/js -[`rxdart`]: https://pub.dev/packages/rxdart -[`async`]: https://pub.dev/packages/async -[`characters`]: https://pub.dev/packages/characters -[`collection`]: https://pub.dev/packages/collection -[`crypto`]: https://pub.dev/packages/crypto -[`ffi`]: https://pub.dev/packages/ffi -[`file`]: https://pub.dev/packages/file -[`fixnum`]: https://pub.dev/packages/fixnum -[`http`]: https://pub.dev/packages/http -[`http_parser`]: https://pub.dev/packages/http_parser -[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities -[`meta`]: https://pub.dev/packages/meta -[`path`]: https://pub.dev/packages/path -[`path_provider`]: https://pub.dev/packages/path_provider -[`path_provider_android`]: https://pub.dev/packages/path_provider_android -[`path_provider_foundation`]: https://pub.dev/packages/path_provider_foundation -[`path_provider_linux`]: https://pub.dev/packages/path_provider_linux -[`path_provider_platform_interface`]: https://pub.dev/packages/path_provider_platform_interface -[`path_provider_windows`]: https://pub.dev/packages/path_provider_windows -[`platform`]: https://pub.dev/packages/platform -[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface -[`source_span`]: https://pub.dev/packages/source_span -[`sprintf`]: https://pub.dev/packages/sprintf -[`sqflite`]: https://pub.dev/packages/sqflite -[`sqflite_android`]: https://pub.dev/packages/sqflite_android -[`sqflite_common`]: https://pub.dev/packages/sqflite_common -[`sqflite_darwin`]: https://pub.dev/packages/sqflite_darwin -[`sqflite_platform_interface`]: https://pub.dev/packages/sqflite_platform_interface -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`synchronized`]: https://pub.dev/packages/synchronized -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`typed_data`]: https://pub.dev/packages/typed_data -[`uuid`]: https://pub.dev/packages/uuid -[`vector_math`]: https://pub.dev/packages/vector_math -[`web`]: https://pub.dev/packages/web -[`xdg_directories`]: https://pub.dev/packages/xdg_directories - -
- -The constraint `^0.1.25` on audio_session does not support the stable version `0.2.0`. - - -Try running `dart pub upgrade --major-versions audio_session` to update the constraint. -
- -
- -The package has one or more discontinued direct dependencies. - -Discontinued packages are no longer maintained, and can end up being a -liability. - - - -Consider migrating away from these dependencies: - -* js. - -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/bulma_min-0.7.4.json_report.md b/test/goldens/end2end/bulma_min-0.7.4.json_report.md deleted file mode 100644 index 1dfcee0f3..000000000 --- a/test/goldens/end2end/bulma_min-0.7.4.json_report.md +++ /dev/null @@ -1,109 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 0/20 Platform support - -### [x] 0/20 points: Platform support detection failed - -
- -Could not determine supported platforms as package resolution failed. - - -Run `dart pub get` for more information. -
- - -## 0/50 Pass static analysis - -### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues - -* Running `dart pub outdated` failed with the following output: - -``` -The lower bound of "sdk: '>=1.0.0 <3.0.0'" must be 2.12.0' -or higher to enable null safety. -``` - - -## 0/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. - - -`pubspec.yaml:8:8` - -``` - ╷ -8 │ sdk: '>=1.0.0 <3.0.0' - │ ^^^^^^^^^^^^^^^^ - ╵ -``` - -
- -### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. - - -`pubspec.yaml:8:8` - -``` - ╷ -8 │ sdk: '>=1.0.0 <3.0.0' - │ ^^^^^^^^^^^^^^^^ - ╵ -``` - -Try widening the upper boundary of the constraint. -
- -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -`dart pub downgrade` failed with: - -``` -OUT: -Resolving dependencies... -ERR: -The lower bound of "sdk: '>=1.0.0 <3.0.0'" must be 2.12.0' -or higher to enable null safety. - -The current Dart SDK (3.9.0) only supports null safety. - -For details, see https://dart.dev/null-safety -``` - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/dnd-2.0.1.json_report.md b/test/goldens/end2end/dnd-2.0.1.json_report.md deleted file mode 100644 index 523798a7c..000000000 --- a/test/goldens/end2end/dnd-2.0.1.json_report.md +++ /dev/null @@ -1,154 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 20/20 Provide documentation - -### [*] 10/10 points: 20% or more of the public API has dartdoc comments - -70 out of 77 API elements (90.9 %) have documentation comments. - -Some symbols that are missing documentation: `dnd`, `dnd.Acceptor.Acceptor.new`, `dnd.AnimationHelper.AnimationHelper.new`, `dnd.CloneAvatarHandler.CloneAvatarHandler.new`, `dnd.DraggablesAcceptor.DraggablesAcceptor.new`. - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 1 of 6 possible platforms (iOS, Android, **Web**, Windows, macOS, Linux) - -* ✓ Web - - -These platforms are not supported: - -
- -Package not compatible with platform Android - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -
- -Package not compatible with platform iOS - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -
- -Package not compatible with platform Windows - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -
- -Package not compatible with platform Linux - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -
- -Package not compatible with platform macOS - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -### [x] 0/0 points: WASM compatibility - -
- -Package not compatible with runtime wasm - - -Because: -* `package:dnd/dnd.dart` that imports: -* `dart:js` -
- -This package is not compatible with runtime `wasm`, and will not be rewarded full points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - - -## 30/50 Pass static analysis - -### [x] 30/50 points: code has no errors, warnings, lints, or formatting issues - -Found 13 issues. Showing the first 2: - -
- -WARNING: Unnecessary type check; the result is always 'true'. - - -`lib/src/draggable_manager.dart:183:9` - -``` - ╷ -183 │ if (target is Element && - │ ^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/draggable_manager.dart` -
- -
- -INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead. - - -`lib/dnd.dart:3:1` - -``` - ╷ -3 │ import 'dart:html'; - │ ^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/dnd.dart` -
- - -## 40/40 Support up-to-date dependencies - -### [*] 10/10 points: All of the package dependencies are supported in the latest version - -No dependencies. - -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/gg-1.0.12.json_report.md b/test/goldens/end2end/gg-1.0.12.json_report.md deleted file mode 100644 index 2f5cc86db..000000000 --- a/test/goldens/end2end/gg-1.0.12.json_report.md +++ /dev/null @@ -1,204 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 10/10 Provide documentation - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 5 of 6 possible platforms (**iOS**, **Android**, Web, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - - -These platforms are not supported: - -
- -Package not compatible with platform Web - - -Because: -* `package:gg/gg.dart` that imports: -* `package:gg/src/tools/checks.dart` that imports: -* `package:gg_publish/gg_publish.dart` that imports: -* `package:gg_publish/src/commands/publish.dart` that imports: -* `package:gg_version/gg_version.dart` that imports: -* `package:gg_version/src/commands/published_version.dart` that imports: -* `package:gg_args/gg_args.dart` that imports: -* `package:gg_args/src/missing_sub_commands.dart` that imports: -* `dart:io` -
- - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -
- -INFO: The member 'get' overrides an inherited member but isn't annotated with '@override'. - - -`lib/src/tools/did_command.dart:59:16` - -``` - ╷ -59 │ Future get({ - │ ^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/tools/did_command.dart` -
- - -## 10/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`args`]|`^2.4.2`|2.7.0|2.7.0|| -|[`gg_args`]|`^1.1.10`|1.1.17|**2.0.4**|| -|[`gg_console_colors`]|`^2.0.1`|2.1.5|2.1.5|| -|[`gg_git`]|`^2.0.0`|2.5.9|**3.0.2**|| -|[`gg_is_flutter`]|`^1.0.3`|1.0.5|1.0.7|| -|[`gg_json`]|`^1.0.0`|1.0.6|**2.0.2**|**Discontinued**| -|[`gg_log`]|`^1.0.0`|1.0.6|1.0.6|| -|[`gg_process`]|`^1.0.6`|1.1.6|1.1.6|| -|[`gg_publish`]|`^2.0.0`|2.0.1|**3.0.18**|| -|[`gg_status_printer`]|`^1.1.0`|1.1.4|1.1.4|| -|[`gg_test`]|`^1.0.3`|1.0.11|1.1.7|| -|[`gg_version`]|`^1.0.0`|1.3.1|**4.0.4**|| -|[`meta`]|`^1.12.0`|1.17.0|1.17.0|| -|[`mocktail`]|`^1.0.3`|1.0.4|1.0.4|| -|[`path`]|`^1.8.0`|1.9.1|1.9.1|| -|[`pub_semver`]|`^2.1.4`|2.2.0|2.2.0|| -|[`recase`]|`^4.1.0`|4.1.0|4.1.0|| -|[`yaml`]|`^3.1.2`|3.1.3|3.1.3|| -|[`yaml_edit`]|`^2.2.0`|2.2.2|2.2.2|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`async`]|-|2.13.0|2.13.0|| -|[`boolean_selector`]|-|2.1.2|2.1.2|| -|[`checked_yaml`]|-|2.0.4|2.0.4|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`colorize`]|-|3.0.0|3.0.0|| -|[`gg_capture_print`]|-|1.0.9|1.0.9|| -|[`gg_hash`]|-|1.0.4|1.0.4|| -|[`gg_is_github`]|-|1.0.6|1.0.6|| -|[`gg_project_root`]|-|1.0.2|1.0.4|| -|[`http`]|-|1.5.0|1.5.0|| -|[`http_parser`]|-|4.1.2|4.1.2|| -|[`json_annotation`]|-|4.9.0|4.9.0|| -|[`matcher`]|-|0.12.17|0.12.17|| -|[`pubspec_parse`]|-|1.5.0|1.5.0|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`stack_trace`]|-|1.12.1|1.12.1|| -|[`stream_channel`]|-|2.1.4|2.1.4|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`test_api`]|-|0.7.7|0.7.7|| -|[`typed_data`]|-|1.4.0|1.4.0|| -|[`web`]|-|1.1.1|1.1.1|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`args`]: https://pub.dev/packages/args -[`gg_args`]: https://pub.dev/packages/gg_args -[`gg_console_colors`]: https://pub.dev/packages/gg_console_colors -[`gg_git`]: https://pub.dev/packages/gg_git -[`gg_is_flutter`]: https://pub.dev/packages/gg_is_flutter -[`gg_json`]: https://pub.dev/packages/gg_json -[`gg_log`]: https://pub.dev/packages/gg_log -[`gg_process`]: https://pub.dev/packages/gg_process -[`gg_publish`]: https://pub.dev/packages/gg_publish -[`gg_status_printer`]: https://pub.dev/packages/gg_status_printer -[`gg_test`]: https://pub.dev/packages/gg_test -[`gg_version`]: https://pub.dev/packages/gg_version -[`meta`]: https://pub.dev/packages/meta -[`mocktail`]: https://pub.dev/packages/mocktail -[`path`]: https://pub.dev/packages/path -[`pub_semver`]: https://pub.dev/packages/pub_semver -[`recase`]: https://pub.dev/packages/recase -[`yaml`]: https://pub.dev/packages/yaml -[`yaml_edit`]: https://pub.dev/packages/yaml_edit -[`async`]: https://pub.dev/packages/async -[`boolean_selector`]: https://pub.dev/packages/boolean_selector -[`checked_yaml`]: https://pub.dev/packages/checked_yaml -[`collection`]: https://pub.dev/packages/collection -[`colorize`]: https://pub.dev/packages/colorize -[`gg_capture_print`]: https://pub.dev/packages/gg_capture_print -[`gg_hash`]: https://pub.dev/packages/gg_hash -[`gg_is_github`]: https://pub.dev/packages/gg_is_github -[`gg_project_root`]: https://pub.dev/packages/gg_project_root -[`http`]: https://pub.dev/packages/http -[`http_parser`]: https://pub.dev/packages/http_parser -[`json_annotation`]: https://pub.dev/packages/json_annotation -[`matcher`]: https://pub.dev/packages/matcher -[`pubspec_parse`]: https://pub.dev/packages/pubspec_parse -[`source_span`]: https://pub.dev/packages/source_span -[`stack_trace`]: https://pub.dev/packages/stack_trace -[`stream_channel`]: https://pub.dev/packages/stream_channel -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`test_api`]: https://pub.dev/packages/test_api -[`typed_data`]: https://pub.dev/packages/typed_data -[`web`]: https://pub.dev/packages/web - -Found 6 issues. Showing the first 2: - -
- -The constraint `^1.1.10` on gg_args does not support the stable version `2.0.0`. - - -Try running `dart pub upgrade --major-versions gg_args` to update the constraint. -
- -
- -The constraint `^2.0.0` on gg_git does not support the stable version `3.0.0`. - - -Try running `dart pub upgrade --major-versions gg_git` to update the constraint. -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -downgrade analysis failed failed with 10 errors: - - - `UNDEFINED_CLASS` - `lib/src/commands/can/can_publish.dart:21:5` - Undefined class 'IsVersionPrepared'. - - `UNDEFINED_METHOD` - `lib/src/commands/can/can_publish.dart:25:34` - The method 'IsVersionPrepared' isn't defined for the type 'CanPublish'. - - `UNDEFINED_METHOD` - `lib/src/commands/check/analyze.dart:48:12` - The method 'ErrorInfoReader' isn't defined for the type 'Analyze'. - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/http-0.13.0.json_report.md b/test/goldens/end2end/http-0.13.0.json_report.md deleted file mode 100644 index f427fe899..000000000 --- a/test/goldens/end2end/http-0.13.0.json_report.md +++ /dev/null @@ -1,134 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `BSD-3-Clause`. - - -## 10/10 Provide documentation - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - -* ✓ Web - -### [*] 0/0 points: WASM compatibility - -This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -
- -INFO: Dangling library doc comment. - - -`lib/http.dart:5:1` - -``` - ╷ -5 │ /// A composable, [Future]-based library for making HTTP requests. - │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/http.dart` -
- -
- -INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead. - - -`lib/src/browser_client.dart:6:1` - -``` - ╷ -6 │ import 'dart:html'; - │ ^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/browser_client.dart` -
- - -## 30/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`http_parser`]|`^4.0.0`|4.1.2|4.1.2|| -|[`meta`]|`^1.3.0`|1.17.0|1.17.0|| -|[`path`]|`^1.8.0`|1.9.1|1.9.1|| -|[`pedantic`]|`^1.10.0`|1.11.1|1.11.1|**Discontinued**| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`collection`]|-|1.19.1|1.19.1|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`typed_data`]|-|1.4.0|1.4.0|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`http_parser`]: https://pub.dev/packages/http_parser -[`meta`]: https://pub.dev/packages/meta -[`path`]: https://pub.dev/packages/path -[`pedantic`]: https://pub.dev/packages/pedantic -[`collection`]: https://pub.dev/packages/collection -[`source_span`]: https://pub.dev/packages/source_span -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`typed_data`]: https://pub.dev/packages/typed_data - -
- -The package has one or more discontinued direct dependencies. - -Discontinued packages are no longer maintained, and can end up being a -liability. - - - -Consider migrating away from these dependencies: - -* pedantic. - -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/lints-1.0.0.json_report.md b/test/goldens/end2end/lints-1.0.0.json_report.md deleted file mode 100644 index 4c798d486..000000000 --- a/test/goldens/end2end/lints-1.0.0.json_report.md +++ /dev/null @@ -1,71 +0,0 @@ -## 20/30 Follow Dart file conventions - -### [x] 0/10 points: Provide a valid `pubspec.yaml` - -* `pubspec.yaml` doesn't have a `homepage` entry. - -* `pubspec.yaml` doesn't have a `repository` entry. - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `BSD-3-Clause`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 20/20 Platform support - -### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - -* ✓ Web - -### [*] 0/0 points: WASM compatibility - -This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - - -## 50/50 Pass static analysis - -### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues - - -## 40/40 Support up-to-date dependencies - -### [*] 10/10 points: All of the package dependencies are supported in the latest version - -No dependencies. - -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/mime_type-0.3.2.json_report.md b/test/goldens/end2end/mime_type-0.3.2.json_report.md deleted file mode 100644 index 1fc882b53..000000000 --- a/test/goldens/end2end/mime_type-0.3.2.json_report.md +++ /dev/null @@ -1,132 +0,0 @@ -## 15/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [x] 0/5 points: Provide a valid `README.md` - -
- -Links in `README.md` should be secure. 1 link is insecure. - - -`README.md:42:35` - -``` - ╷ -42 │

This library is licensed under MIT License.

- │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -Use `https` URLs instead. -
- -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [x] 0/10 points: Use an OSI-approved license - -
- -No license was recognized. - - -Consider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community. -
- - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 0/20 Platform support - -### [x] 0/20 points: Platform support detection failed - -
- -Could not determine supported platforms as package resolution failed. - - -Run `dart pub get` for more information. -
- - -## 0/50 Pass static analysis - -### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues - -* Running `dart pub outdated` failed with the following output: - -``` -The lower bound of "sdk: '>=0.8.10 <3.0.0'" must be 2.12.0' -or higher to enable null safety. -``` - - -## 0/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. - - -`pubspec.yaml:10:10` - -``` - ╷ -10 │ sdk: '>=0.8.10 <3.0.0' - │ ^^^^^^^^^^^^^^^^^ - ╵ -``` - -
- -### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. - - -`pubspec.yaml:10:10` - -``` - ╷ -10 │ sdk: '>=0.8.10 <3.0.0' - │ ^^^^^^^^^^^^^^^^^ - ╵ -``` - -Try widening the upper boundary of the constraint. -
- -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -`dart pub downgrade` failed with: - -``` -OUT: -Resolving dependencies... -ERR: -The lower bound of "sdk: '>=0.8.10 <3.0.0'" must be 2.12.0' -or higher to enable null safety. - -The current Dart SDK (3.9.0) only supports null safety. - -For details, see https://dart.dev/null-safety -``` - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/nsd_android-2.1.2.json_report.md b/test/goldens/end2end/nsd_android-2.1.2.json_report.md deleted file mode 100644 index 9cc510ceb..000000000 --- a/test/goldens/end2end/nsd_android-2.1.2.json_report.md +++ /dev/null @@ -1,116 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 20/20 Platform support - -### [*] 20/20 points: Supports 1 of 6 possible platforms (iOS, **Android**, Web, Windows, macOS, Linux) - -* ✓ Android - - -These platforms are not supported: - -
- -Package does not support platform `iOS`. - - -Because: -* `nsd_android` that declares support for platforms: `Android`. -
- -
- -Package does not support platform `Windows`. - - -Because: -* `nsd_android` that declares support for platforms: `Android`. -
- -
- -Package does not support platform `Linux`. - - -Because: -* `nsd_android` that declares support for platforms: `Android`. -
- -
- -Package does not support platform `macOS`. - - -Because: -* `nsd_android` that declares support for platforms: `Android`. -
- -
- -Package does not support platform `Web`. - - -Because: -* `nsd_android` that declares support for platforms: `Android`. -
- - -## 50/50 Pass static analysis - -### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues - - -## 40/40 Support up-to-date dependencies - -### [*] 10/10 points: All of the package dependencies are supported in the latest version - -No dependencies. - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`characters`]|-|1.4.0|1.4.1|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`material_color_utilities`]|-|0.11.1|0.13.0|| -|[`meta`]|-|1.16.0|1.17.0|| -|[`vector_math`]|-|2.2.0|2.2.0|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`characters`]: https://pub.dev/packages/characters -[`collection`]: https://pub.dev/packages/collection -[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities -[`meta`]: https://pub.dev/packages/meta -[`vector_math`]: https://pub.dev/packages/vector_math - -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/onepub-1.1.0.json_report.md b/test/goldens/end2end/onepub-1.1.0.json_report.md deleted file mode 100644 index ade3d4982..000000000 --- a/test/goldens/end2end/onepub-1.1.0.json_report.md +++ /dev/null @@ -1,242 +0,0 @@ -## 10/30 Follow Dart file conventions - -### [x] 0/10 points: Provide a valid `pubspec.yaml` - -
- -Failed to verify repository URL. - - -Please provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that: - - * `repository` can be cloned, - * a clone of the repository contains a `pubspec.yaml`, which:, - * contains `name: onepub`, - * contains a `version` property, and, - * does not contain a `publish_to` property. - -`pubspec.yaml` from the repository URL mismatch: expected `https://github.com/noojee/onepub.dev` but got `https://github.com/onepub-dev/onepub`. -
- -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [x] 0/10 points: Use an OSI-approved license - -
- -No license was recognized. - - -Consider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community. -
- - -## 10/20 Provide documentation - -### [*] 10/10 points: 20% or more of the public API has dartdoc comments - -0 out of 0 API elements (100.0 %) have documentation comments. - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 20/20 Platform support - -### [*] 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, **Windows**, **macOS**, **Linux**) - -* ✓ Linux - -* ✓ macOS - -* ✓ Windows - - -These platforms are not supported: - -
- -Android - - -Cannot assign Android automatically to a binary only package. -
- -
- -iOS - - -Cannot assign iOS automatically to a binary only package. -
- -
- -Web - - -Cannot assign Web automatically to a binary only package. -
- - -## 50/50 Pass static analysis - -### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues - - -## 30/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`dcli`]|`^1.15.5`|1.36.2|**7.0.5**|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`archive`]|-|3.6.1|4.0.7|| -|[`args`]|-|2.7.0|2.7.0|| -|[`async`]|-|2.13.0|2.13.0|| -|[`basic_utils`]|-|3.9.4|5.8.2|| -|[`boolean_selector`]|-|2.1.2|2.1.2|| -|[`characters`]|-|1.4.1|1.4.1|| -|[`chunked_stream`]|-|1.4.2|1.4.2|| -|[`circular_buffer`]|-|0.11.0|0.12.0|| -|[`clock`]|-|1.1.2|1.1.2|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`convert`]|-|3.1.2|3.1.2|| -|[`crypto`]|-|3.0.6|3.0.6|| -|[`csv`]|-|5.1.1|6.0.0|| -|[`dart_console2`]|-|2.0.1|3.1.1|**Discontinued**| -|[`dcli_core`]|-|1.36.2|7.0.3|| -|[`equatable`]|-|2.0.7|2.0.7|| -|[`ffi`]|-|2.1.4|2.1.4|| -|[`file`]|-|6.1.4|7.0.1|| -|[`file_utils`]|-|1.0.1|1.0.1|**Discontinued**| -|[`functional_data`]|-|1.2.0|1.2.0|| -|[`glob`]|-|2.1.3|2.1.3|| -|[`globbing`]|-|1.0.0|1.0.0|**Discontinued**| -|[`http`]|-|0.13.6|1.5.0|| -|[`http_parser`]|-|4.1.2|4.1.2|| -|[`ini`]|-|2.1.0|2.1.0|| -|[`intl`]|-|0.17.0|0.20.2|| -|[`js`]|-|0.7.2|0.7.2|**Discontinued**| -|[`json2yaml`]|-|3.0.1|3.0.1|| -|[`json_annotation`]|-|4.9.0|4.9.0|| -|[`logging`]|-|1.3.0|1.3.0|| -|[`matcher`]|-|0.12.17|0.12.17|| -|[`meta`]|-|1.17.0|1.17.0|| -|[`mime`]|-|1.0.6|2.0.0|| -|[`path`]|-|1.9.1|1.9.1|| -|[`pointycastle`]|-|3.9.1|4.0.0|| -|[`posix`]|-|4.1.0|6.0.3|| -|[`pub_semver`]|-|2.2.0|2.2.0|| -|[`pubspec2`]|-|2.4.2|4.0.0|**Discontinued**| -|[`pubspec_lock`]|-|3.0.2|3.0.2|| -|[`quiver`]|-|3.2.2|3.2.2|| -|[`random_string`]|-|2.3.1|2.3.1|| -|[`scope`]|-|3.0.0|5.1.0|| -|[`settings_yaml`]|-|4.0.1|8.3.1|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`stack_trace`]|-|1.12.1|1.12.1|| -|[`stacktrace_impl`]|-|2.3.0|2.3.0|**Discontinued**| -|[`stream_channel`]|-|2.1.4|2.1.4|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`sum_types`]|-|0.3.5|0.4.0|| -|[`system_info2`]|-|2.0.4|4.0.0|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`test_api`]|-|0.7.7|0.7.7|| -|[`typed_data`]|-|1.4.0|1.4.0|| -|[`uuid`]|-|3.0.7|4.5.1|| -|[`validators2`]|-|3.0.0|5.0.0|| -|[`vin_decoder`]|-|0.2.1-nullsafety|0.2.1-nullsafety|| -|[`win32`]|-|3.1.4|5.14.0|| -|[`yaml`]|-|3.1.3|3.1.3|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`dcli`]: https://pub.dev/packages/dcli -[`archive`]: https://pub.dev/packages/archive -[`args`]: https://pub.dev/packages/args -[`async`]: https://pub.dev/packages/async -[`basic_utils`]: https://pub.dev/packages/basic_utils -[`boolean_selector`]: https://pub.dev/packages/boolean_selector -[`characters`]: https://pub.dev/packages/characters -[`chunked_stream`]: https://pub.dev/packages/chunked_stream -[`circular_buffer`]: https://pub.dev/packages/circular_buffer -[`clock`]: https://pub.dev/packages/clock -[`collection`]: https://pub.dev/packages/collection -[`convert`]: https://pub.dev/packages/convert -[`crypto`]: https://pub.dev/packages/crypto -[`csv`]: https://pub.dev/packages/csv -[`dart_console2`]: https://pub.dev/packages/dart_console2 -[`dcli_core`]: https://pub.dev/packages/dcli_core -[`equatable`]: https://pub.dev/packages/equatable -[`ffi`]: https://pub.dev/packages/ffi -[`file`]: https://pub.dev/packages/file -[`file_utils`]: https://pub.dev/packages/file_utils -[`functional_data`]: https://pub.dev/packages/functional_data -[`glob`]: https://pub.dev/packages/glob -[`globbing`]: https://pub.dev/packages/globbing -[`http`]: https://pub.dev/packages/http -[`http_parser`]: https://pub.dev/packages/http_parser -[`ini`]: https://pub.dev/packages/ini -[`intl`]: https://pub.dev/packages/intl -[`js`]: https://pub.dev/packages/js -[`json2yaml`]: https://pub.dev/packages/json2yaml -[`json_annotation`]: https://pub.dev/packages/json_annotation -[`logging`]: https://pub.dev/packages/logging -[`matcher`]: https://pub.dev/packages/matcher -[`meta`]: https://pub.dev/packages/meta -[`mime`]: https://pub.dev/packages/mime -[`path`]: https://pub.dev/packages/path -[`pointycastle`]: https://pub.dev/packages/pointycastle -[`posix`]: https://pub.dev/packages/posix -[`pub_semver`]: https://pub.dev/packages/pub_semver -[`pubspec2`]: https://pub.dev/packages/pubspec2 -[`pubspec_lock`]: https://pub.dev/packages/pubspec_lock -[`quiver`]: https://pub.dev/packages/quiver -[`random_string`]: https://pub.dev/packages/random_string -[`scope`]: https://pub.dev/packages/scope -[`settings_yaml`]: https://pub.dev/packages/settings_yaml -[`source_span`]: https://pub.dev/packages/source_span -[`stack_trace`]: https://pub.dev/packages/stack_trace -[`stacktrace_impl`]: https://pub.dev/packages/stacktrace_impl -[`stream_channel`]: https://pub.dev/packages/stream_channel -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`sum_types`]: https://pub.dev/packages/sum_types -[`system_info2`]: https://pub.dev/packages/system_info2 -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`test_api`]: https://pub.dev/packages/test_api -[`typed_data`]: https://pub.dev/packages/typed_data -[`uuid`]: https://pub.dev/packages/uuid -[`validators2`]: https://pub.dev/packages/validators2 -[`vin_decoder`]: https://pub.dev/packages/vin_decoder -[`win32`]: https://pub.dev/packages/win32 -[`yaml`]: https://pub.dev/packages/yaml - -
- -The constraint `^1.15.5` on dcli does not support the stable version `2.0.1`. - - -Try running `dart pub upgrade --major-versions dcli` to update the constraint. -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/sdp_transform-0.2.0.json_report.md b/test/goldens/end2end/sdp_transform-0.2.0.json_report.md deleted file mode 100644 index 8cba4cd2e..000000000 --- a/test/goldens/end2end/sdp_transform-0.2.0.json_report.md +++ /dev/null @@ -1,122 +0,0 @@ -## 20/30 Follow Dart file conventions - -### [x] 0/10 points: Provide a valid `pubspec.yaml` - -
- -The package description is too short. - - -Add more detail to the `description` field of `pubspec.yaml`. Use 50 to 180 characters to describe the package, what it does, and its target use case. -
- -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 20/20 Platform support - -### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - -* ✓ Web - - -## 0/50 Pass static analysis - -### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues - -* Running `dart pub outdated` failed with the following output: - -``` -pubspec.yaml has no lower-bound SDK constraint. -You should edit pubspec.yaml to contain an SDK constraint: -``` - - -## 0/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. - - -`pubspec.yaml:10:8` - -``` - ╷ -10 │ sdk: '<3.0.0' - │ ^^^^^^^^ - ╵ -``` - -
- -### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs - -
- -Sdk constraint doesn't support current Dart version {{sdk-version}}. - - -`pubspec.yaml:10:8` - -``` - ╷ -10 │ sdk: '<3.0.0' - │ ^^^^^^^^ - ╵ -``` - -Try widening the upper boundary of the constraint. -
- -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -`dart pub downgrade` failed with: - -``` -OUT: -Resolving dependencies... -ERR: -pubspec.yaml has no lower-bound SDK constraint. -You should edit pubspec.yaml to contain an SDK constraint: - -environment: - sdk: '^3.9.0' - -See https://dart.dev/go/sdk-constraint -``` - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/skiplist-0.1.0.json_report.md b/test/goldens/end2end/skiplist-0.1.0.json_report.md deleted file mode 100644 index 2bc255755..000000000 --- a/test/goldens/end2end/skiplist-0.1.0.json_report.md +++ /dev/null @@ -1,95 +0,0 @@ -## 20/30 Follow Dart file conventions - -### [x] 0/10 points: Provide a valid `pubspec.yaml` - -
- -The package description is too short. - - -Add more detail to the `description` field of `pubspec.yaml`. Use 50 to 180 characters to describe the package, what it does, and its target use case. -
- -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 0/20 Platform support - -### [x] 0/20 points: Platform support detection failed - -
- -Could not determine supported platforms as package resolution failed. - - -Run `dart pub get` for more information. -
- - -## 0/50 Pass static analysis - -### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues - -* Running `dart pub outdated` failed with the following output: - -``` -pubspec.yaml has no lower-bound SDK constraint. -You should edit pubspec.yaml to contain an SDK constraint: -``` - - -## 0/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -* Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. - -### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs - -
- -Pubspec.yaml does not have an sdk version constraint. - - -Try adding an sdk constraint to your `pubspec.yaml` -
- -### [x] 0/20 points: Compatible with dependency constraint lower bounds - -`dart pub downgrade` failed with: - -``` -OUT: -Resolving dependencies... -ERR: -pubspec.yaml has no lower-bound SDK constraint. -You should edit pubspec.yaml to contain an SDK constraint: - -environment: - sdk: '^3.9.0' - -See https://dart.dev/go/sdk-constraint -``` - -Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. - -You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. diff --git a/test/goldens/end2end/steward-0.3.1.json_report.md b/test/goldens/end2end/steward-0.3.1.json_report.md deleted file mode 100644 index fb8efe84f..000000000 --- a/test/goldens/end2end/steward-0.3.1.json_report.md +++ /dev/null @@ -1,164 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `MIT`. - - -## 10/10 Provide documentation - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, **Windows**, **macOS**, **Linux**) - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - - -These platforms are not supported: - -
- -Package not compatible with platform Android - - -Because: -* `package:steward/steward.dart` that imports: -* `package:steward/app/app.dart` that imports: -* `package:steward/router/router.dart` that imports: -* `package:steward/controllers/route_utils.dart` that imports: -* `dart:mirrors` -
- -
- -Package not compatible with platform iOS - - -Because: -* `package:steward/steward.dart` that imports: -* `package:steward/app/app.dart` that imports: -* `package:steward/router/router.dart` that imports: -* `package:steward/controllers/route_utils.dart` that imports: -* `dart:mirrors` -
- -
- -Package not compatible with platform Web - - -Because: -* `package:steward/steward.dart` that imports: -* `package:steward/app/app.dart` that imports: -* `package:steward/config/config_reader.dart` that imports: -* `dart:io` -
- - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -Found 31 issues. Showing the first 2: - -
- -INFO: The variable name 'GetAnnotation' isn't a lowerCamelCase identifier. - - -`lib/controllers/route_utils.dart:79:7` - -``` - ╷ -79 │ final GetAnnotation = reflectClass(Get); - │ ^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/controllers/route_utils.dart` -
- -
- -INFO: The variable name 'PutAnnotation' isn't a lowerCamelCase identifier. - - -`lib/controllers/route_utils.dart:82:7` - -``` - ╷ -82 │ final PutAnnotation = reflectClass(Put); - │ ^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/controllers/route_utils.dart` -
- - -## 30/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`bosun`]|`^0.2.1`|0.2.2|0.2.2|| -|[`flat`]|`^0.4.0`|0.4.1|**0.5.0**|| -|[`mustache_template`]|`^2.0.0`|2.0.0|2.0.0|| -|[`path_to_regexp`]|`^0.4.0`|0.4.0|0.4.0|| -|[`recase`]|`^4.0.0`|4.1.0|4.1.0|| -|[`yaml`]|`^3.1.0`|3.1.3|3.1.3|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`collection`]|-|1.19.1|1.19.1|| -|[`path`]|-|1.9.1|1.9.1|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`tree_iterator`]|-|2.0.0|3.0.0|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`bosun`]: https://pub.dev/packages/bosun -[`flat`]: https://pub.dev/packages/flat -[`mustache_template`]: https://pub.dev/packages/mustache_template -[`path_to_regexp`]: https://pub.dev/packages/path_to_regexp -[`recase`]: https://pub.dev/packages/recase -[`yaml`]: https://pub.dev/packages/yaml -[`collection`]: https://pub.dev/packages/collection -[`path`]: https://pub.dev/packages/path -[`source_span`]: https://pub.dev/packages/source_span -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`tree_iterator`]: https://pub.dev/packages/tree_iterator - -
- -The constraint `^0.4.0` on flat does not support the stable version `0.5.0`. - - -Try running `dart pub upgrade --major-versions flat` to update the constraint. -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/url_launcher-6.3.1.json_report.md b/test/goldens/end2end/url_launcher-6.3.1.json_report.md deleted file mode 100644 index a7eeee188..000000000 --- a/test/goldens/end2end/url_launcher-6.3.1.json_report.md +++ /dev/null @@ -1,118 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `BSD-3-Clause`. - - -## 20/20 Provide documentation - -### [*] 10/10 points: 20% or more of the public API has dartdoc comments - -34 out of 37 API elements (91.9 %) have documentation comments. - -Some symbols that are missing documentation: `link`, `url_launcher`, `url_launcher_string`. - -### [*] 10/10 points: Package has an example - - -## 20/20 Platform support - -### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) - -* ✓ Android - -* ✓ iOS - -* ✓ Windows - -* ✓ Linux - -* ✓ macOS - -* ✓ Web - -### [*] 0/0 points: WASM compatibility - -This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. - -See https://dart.dev/web/wasm for details. - - -## 40/50 Pass static analysis - -### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues - -
- -INFO: 'launch' is deprecated and shouldn't be used. Use launchUrl instead. - - -`lib/src/legacy_api.dart:150:6` - -``` - ╷ -150 │ /// [launch] predates multi-window support, and it doesn't have enough context - │ ^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/src/legacy_api.dart` -
- - -## 40/40 Support up-to-date dependencies - -### [*] 10/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`url_launcher_android`]|`^6.3.0`|6.3.17|6.3.17|| -|[`url_launcher_ios`]|`^6.2.4`|6.3.3|6.3.3|| -|[`url_launcher_linux`]|`^3.1.0`|3.2.1|3.2.1|| -|[`url_launcher_macos`]|`^3.1.0`|3.2.2|3.2.2|| -|[`url_launcher_platform_interface`]|`^2.3.0`|2.3.2|2.3.2|| -|[`url_launcher_web`]|`^2.2.0`|2.4.1|2.4.1|| -|[`url_launcher_windows`]|`^3.1.0`|3.1.4|3.1.4|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`characters`]|-|1.4.0|1.4.1|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`material_color_utilities`]|-|0.11.1|0.13.0|| -|[`meta`]|-|1.16.0|1.17.0|| -|[`plugin_platform_interface`]|-|2.1.8|2.1.8|| -|[`vector_math`]|-|2.2.0|2.2.0|| -|[`web`]|-|1.1.1|1.1.1|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`url_launcher_android`]: https://pub.dev/packages/url_launcher_android -[`url_launcher_ios`]: https://pub.dev/packages/url_launcher_ios -[`url_launcher_linux`]: https://pub.dev/packages/url_launcher_linux -[`url_launcher_macos`]: https://pub.dev/packages/url_launcher_macos -[`url_launcher_platform_interface`]: https://pub.dev/packages/url_launcher_platform_interface -[`url_launcher_web`]: https://pub.dev/packages/url_launcher_web -[`url_launcher_windows`]: https://pub.dev/packages/url_launcher_windows -[`characters`]: https://pub.dev/packages/characters -[`collection`]: https://pub.dev/packages/collection -[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities -[`meta`]: https://pub.dev/packages/meta -[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface -[`vector_math`]: https://pub.dev/packages/vector_math -[`web`]: https://pub.dev/packages/web - -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/goldens/end2end/webdriver-3.0.0.json_report.md b/test/goldens/end2end/webdriver-3.0.0.json_report.md deleted file mode 100644 index aff79ef23..000000000 --- a/test/goldens/end2end/webdriver-3.0.0.json_report.md +++ /dev/null @@ -1,202 +0,0 @@ -## 30/30 Follow Dart file conventions - -### [*] 10/10 points: Provide a valid `pubspec.yaml` - -### [*] 5/5 points: Provide a valid `README.md` - -### [*] 5/5 points: Provide a valid `CHANGELOG.md` - -### [*] 10/10 points: Use an OSI-approved license - -Detected license: `Apache-2.0`. - - -## 0/10 Provide documentation - -### [x] 0/10 points: Package has an example - -
- -No example found. - - -See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. -
- - -## 0/20 Platform support - -### [x] 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux) - - -These platforms are not supported: - -
- -Package not compatible with platform Android - - -Because: -* `package:webdriver/async_html.dart` that imports: -* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: -* `dart:html` -
- -
- -Package not compatible with platform iOS - - -Because: -* `package:webdriver/async_html.dart` that imports: -* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: -* `dart:html` -
- -
- -Package not compatible with platform Windows - - -Because: -* `package:webdriver/async_html.dart` that imports: -* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: -* `dart:html` -
- -
- -Package not compatible with platform Linux - - -Because: -* `package:webdriver/async_html.dart` that imports: -* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: -* `dart:html` -
- -
- -Package not compatible with platform macOS - - -Because: -* `package:webdriver/async_html.dart` that imports: -* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: -* `dart:html` -
- -
- -Package not compatible with platform Web - - -Because: -* `package:webdriver/async_io.dart` that imports: -* `package:webdriver/src/request/async_io_request_client.dart` that imports: -* `dart:io` -
- - -## 30/50 Pass static analysis - -### [x] 30/50 points: code has no errors, warnings, lints, or formatting issues - -Found 27 issues. Showing the first 2: - -
- -WARNING: Unnecessary type check; the result is always 'true'. - - -`lib/src/async/web_element.dart:154:7` - -``` - ╷ -154 │ other is WebElement && other.driver == driver && other.id == id; - │ ^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/async/web_element.dart` -
- -
- -WARNING: Unnecessary type check; the result is always 'true'. - - -`lib/src/handler/json_wire/utils.dart:26:8` - -``` - ╷ -26 │ (responseBody is Map && - │ ^^^^^^^^^^^^^^^^^^^ - ╵ -``` - -To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/handler/json_wire/utils.dart` -
- - -## 30/40 Support up-to-date dependencies - -### [x] 0/10 points: All of the package dependencies are supported in the latest version - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`archive`]|`^3.0.0`|3.6.1|**4.0.7**|| -|[`matcher`]|`^0.12.10`|0.12.17|0.12.17|| -|[`path`]|`^1.8.0`|1.9.1|1.9.1|| -|[`stack_trace`]|`^1.10.0`|1.12.1|1.12.1|| -|[`sync_http`]|`^0.3.0`|0.3.1|0.3.1|| - -
Transitive dependencies - -|Package|Constraint|Compatible|Latest|Notes| -|:-|:-|:-|:-|:-| -|[`async`]|-|2.13.0|2.13.0|| -|[`boolean_selector`]|-|2.1.2|2.1.2|| -|[`collection`]|-|1.19.1|1.19.1|| -|[`crypto`]|-|3.0.6|3.0.6|| -|[`meta`]|-|1.17.0|1.17.0|| -|[`source_span`]|-|1.10.1|1.10.1|| -|[`stream_channel`]|-|2.1.4|2.1.4|| -|[`string_scanner`]|-|1.4.1|1.4.1|| -|[`term_glyph`]|-|1.2.2|1.2.2|| -|[`test_api`]|-|0.7.7|0.7.7|| -|[`typed_data`]|-|1.4.0|1.4.0|| -
- -To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. - -[`archive`]: https://pub.dev/packages/archive -[`matcher`]: https://pub.dev/packages/matcher -[`path`]: https://pub.dev/packages/path -[`stack_trace`]: https://pub.dev/packages/stack_trace -[`sync_http`]: https://pub.dev/packages/sync_http -[`async`]: https://pub.dev/packages/async -[`boolean_selector`]: https://pub.dev/packages/boolean_selector -[`collection`]: https://pub.dev/packages/collection -[`crypto`]: https://pub.dev/packages/crypto -[`meta`]: https://pub.dev/packages/meta -[`source_span`]: https://pub.dev/packages/source_span -[`stream_channel`]: https://pub.dev/packages/stream_channel -[`string_scanner`]: https://pub.dev/packages/string_scanner -[`term_glyph`]: https://pub.dev/packages/term_glyph -[`test_api`]: https://pub.dev/packages/test_api -[`typed_data`]: https://pub.dev/packages/typed_data - -
- -The constraint `^3.0.0` on archive does not support the stable version `4.0.0`. - - -Try running `dart pub upgrade --major-versions archive` to update the constraint. -
- -### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs - -### [*] 20/20 points: Compatible with dependency constraint lower bounds - -`pub downgrade` does not expose any static analysis error. diff --git a/test/testData/__timestamp.txt b/test/testData/__timestamp.txt new file mode 100644 index 000000000..3c7436ce0 --- /dev/null +++ b/test/testData/__timestamp.txt @@ -0,0 +1 @@ +2025-08-15T08:40:49.125539Z \ No newline at end of file diff --git a/test/goldens/end2end/__timestamp.txt b/test/testdata/__timestamp.txt similarity index 100% rename from test/goldens/end2end/__timestamp.txt rename to test/testdata/__timestamp.txt diff --git a/test/goldens/help.txt b/test/testdata/goldens/bin_pana_test/run with bad option shows help text. Help text is included in readme .txt similarity index 80% rename from test/goldens/help.txt rename to test/testdata/goldens/bin_pana_test/run with bad option shows help text. Help text is included in readme .txt index 25fc25c00..8147bf70a 100644 --- a/test/goldens/help.txt +++ b/test/testdata/goldens/bin_pana_test/run with bad option shows help text. Help text is included in readme .txt @@ -1,3 +1,10 @@ +# GENERATED BY: test/bin_pana_test.dart + +## Section 0 +Run $ dart run pana --monkey +Exit code: 64 +stdout: Could not find an option named "--monkey". + Usage: pana [] --hosted [] pana [] @@ -11,4 +18,5 @@ Options: --hosted Download and analyze a hosted package (from https://pub.dev). --[no-]dartdoc Run dartdoc and score the package on documentation coverage. (defaults to on) - --dartdoc-version The dartdoc version to use: `sdk`, `latest` (default) or ``. \ No newline at end of file + --dartdoc-version The dartdoc version to use: `sdk`, `latest` (default) or ``. +stderr: \ No newline at end of file diff --git a/test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json b/test/testdata/goldens/end2end_test/_dummy_pkg 1.0.0-null-safety.1 report.txt similarity index 62% rename from test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json rename to test/testdata/goldens/end2end_test/_dummy_pkg 1.0.0-null-safety.1 report.txt index e0770c58a..5ac560390 100644 --- a/test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json +++ b/test/testdata/goldens/end2end_test/_dummy_pkg 1.0.0-null-safety.1 report.txt @@ -1,3 +1,151 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 15/30 Follow Dart file conventions + +### [x] 0/10 points: Provide a valid `pubspec.yaml` + +
+ +Sdk-constraint doesn't allow future stable dart 2.x releases + + +`pubspec.yaml:6:8` + +``` + ╷ +6 │ sdk: ">=2.12.0-0 <2.12.0" + │ ^^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +
+ +
+ +Failed to verify repository URL. + + +Please provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that: + + * `repository` can be cloned, + * a clone of the repository contains a `pubspec.yaml`, which:, + * contains `name: _dummy_pkg`, + * contains a `version` property, and, + * does not contain a `publish_to` property. + +`pkg/pub_integration/test_data/_dummy_pkg/pubspec.yaml` from the repository has no `version`. +
+ +### [*] 5/5 points: Provide a valid `README.md` + +### [x] 0/5 points: Provide a valid `CHANGELOG.md` + +
+ +No `CHANGELOG.md` found. + + +Changelog entries help developers follow the progress of your package. Check out the Dart conventions for [Maintaining a package changelog](https://dart.dev/tools/pub/package-layout#changelog). +
+ +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `BSD-3-Clause`. + + +## 10/20 Provide documentation + +### [x] 0/10 points: 20% or more of the public API has dartdoc comments + +Dependency resolution failed, unable to run `dartdoc`. + +### [*] 10/10 points: Package has an example + + +## 0/20 Platform support + +### [x] 0/20 points: Platform support detection failed + +
+ +Could not determine supported platforms as package resolution failed. + + +Run `dart pub get` for more information. +
+ + +## 0/50 Pass static analysis + +### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues + +* Running `dart pub outdated` failed with the following output: + +``` +The current Dart SDK version is {{sdk-version}}. +Because _dummy_pkg requires SDK version >=2.12.0-0 <2.12.0, version solving failed. +``` + + +## 0/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. + + +`pubspec.yaml:6:8` + +``` + ╷ +6 │ sdk: ">=2.12.0-0 <2.12.0" + │ ^^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +
+ +### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. + + +`pubspec.yaml:6:8` + +``` + ╷ +6 │ sdk: ">=2.12.0-0 <2.12.0" + │ ^^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +Try widening the upper boundary of the constraint. +
+ +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +`dart pub downgrade` failed with: + +``` +OUT: +Resolving dependencies... +ERR: +The current Dart SDK version is {{sdk-version}}. + +Because _dummy_pkg requires SDK version >=2.12.0-0 <2.12.0, version solving failed. +``` + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/async-2.11.0.json b/test/testdata/goldens/end2end_test/async 2.11.0 report.txt similarity index 67% rename from test/goldens/end2end/async-2.11.0.json rename to test/testdata/goldens/end2end_test/async 2.11.0 report.txt index a053bc175..fb27457f6 100644 --- a/test/goldens/end2end/async-2.11.0.json +++ b/test/testdata/goldens/end2end_test/async 2.11.0 report.txt @@ -1,3 +1,105 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `BSD-3-Clause`. + + +## 10/20 Provide documentation + +### [*] 10/10 points: 20% or more of the public API has dartdoc comments + +246 out of 263 API elements (93.5 %) have documentation comments. + +Some symbols that are missing documentation: `async.AsyncMemoizer.AsyncMemoizer.new`, `async.ChunkedStreamReader.ChunkedStreamReader.new`, `async.DelegatingFuture.DelegatingFuture.new`, `async.DelegatingStream.DelegatingStream.new`, `async.ErrorResult.ErrorResult.new`. + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 20/20 Platform support + +### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + +* ✓ Web + +### [*] 0/0 points: WASM compatibility + +This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +
+ +INFO: 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead. + + +`lib/src/stream_group.dart:242:10` + +``` + ╷ +242 │ .whereNotNull() + │ ^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/stream_group.dart` +
+ + +## 40/40 Support up-to-date dependencies + +### [*] 10/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`collection`]|`^1.15.0`|1.19.1|1.19.1|| +|[`meta`]|`^1.1.7`|1.17.0|1.17.0|| + +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`collection`]: https://pub.dev/packages/collection +[`meta`]: https://pub.dev/packages/meta + +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/audio_service-0.18.17.json b/test/testdata/goldens/end2end_test/audio_service 0.18.17 report.txt similarity index 61% rename from test/goldens/end2end/audio_service-0.18.17.json rename to test/testdata/goldens/end2end_test/audio_service 0.18.17 report.txt index de40bae31..978d4a934 100644 --- a/test/goldens/end2end/audio_service-0.18.17.json +++ b/test/testdata/goldens/end2end_test/audio_service 0.18.17 report.txt @@ -1,3 +1,252 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 10/10 Provide documentation + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 4 of 6 possible platforms (**iOS**, **Android**, **Web**, Windows, **macOS**, Linux) + +* ✓ Android + +* ✓ iOS + +* ✓ macOS + +* ✓ Web + + +These platforms are not supported: + +
+ +Package does not support platform `Windows`. + + +Because: +* `package:audio_service/audio_service.dart` that declares support for platforms: `Android`, `iOS`, `macOS`, `Web`. +
+ +
+ +Package does not support platform `Linux`. + + +Because: +* `package:audio_service/audio_service.dart` that declares support for platforms: `Android`, `iOS`, `macOS`, `Web`. +
+ + +These issues are present but do not affect the score, because they may not originate in your package: + +
+ +Package does not support platform `Web`. + + +Because: +* `package:audio_service/audio_service.dart` that imports: +* `package:flutter_cache_manager/flutter_cache_manager.dart` that imports: +* `package:flutter_cache_manager/src/storage/file_system/file_system.dart` that imports: +* `package:flutter_cache_manager/src/storage/file_system/file_system_io.dart` that imports: +* `package:path_provider/path_provider.dart` that declares support for platforms: `Android`, `iOS`, `Windows`, `Linux`, `macOS`. +
+ +### [x] 0/0 points: WASM compatibility + +
+ +Package not compatible with runtime wasm + + +Because: +* `package:audio_service/audio_service.dart` that imports: +* `package:flutter_cache_manager/flutter_cache_manager.dart` that imports: +* `package:flutter_cache_manager/src/web/web_helper.dart` that imports: +* `package:flutter_cache_manager/src/cache_store.dart` that imports: +* `dart:io` +
+ +This package is not compatible with runtime `wasm`, and will not be rewarded full points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + +### [*] 0/0 points: Swift Package Manager support + +This iOS or macOS plugin supports the Swift Package Manager. It will be rewarded additional points in a future version of the scoring model. + +See https://docs.flutter.dev/to/spm for details. + + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +
+ +INFO: The parameter name 'newQueue' doesn't match the name 'queue' in the overridden method. + + +`lib/audio_service.dart:3321:44` + +``` + ╷ +3321 │ Future updateQueue(List newQueue) async { + │ ^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart` +
+ + +## 30/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`audio_service_platform_interface`]|`^0.1.3`|0.1.3|0.1.3|| +|[`audio_service_web`]|`^0.1.4`|0.1.4|0.1.4|| +|[`audio_session`]|`^0.1.25`|0.1.25|**0.2.2**|| +|[`clock`]|`^1.1.0`|1.1.2|1.1.2|| +|[`flutter_cache_manager`]|`^3.3.1`|3.4.1|3.4.1|| +|[`js`]|`>=0.6.3 <0.8.0`|0.7.2|0.7.2|**Discontinued**| +|[`rxdart`]|`>=0.26.0 <0.29.0`|0.28.0|0.28.0|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`async`]|-|2.13.0|2.13.0|| +|[`characters`]|-|1.4.0|1.4.1|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`crypto`]|-|3.0.6|3.0.6|| +|[`ffi`]|-|2.1.4|2.1.4|| +|[`file`]|-|7.0.1|7.0.1|| +|[`fixnum`]|-|1.1.1|1.1.1|| +|[`http`]|-|1.5.0|1.5.0|| +|[`http_parser`]|-|4.1.2|4.1.2|| +|[`material_color_utilities`]|-|0.11.1|0.13.0|| +|[`meta`]|-|1.16.0|1.17.0|| +|[`path`]|-|1.9.1|1.9.1|| +|[`path_provider`]|-|2.1.5|2.1.5|| +|[`path_provider_android`]|-|2.2.17|2.2.17|| +|[`path_provider_foundation`]|-|2.4.1|2.4.1|| +|[`path_provider_linux`]|-|2.2.1|2.2.1|| +|[`path_provider_platform_interface`]|-|2.1.2|2.1.2|| +|[`path_provider_windows`]|-|2.3.0|2.3.0|| +|[`platform`]|-|3.1.6|3.1.6|| +|[`plugin_platform_interface`]|-|2.1.8|2.1.8|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`sprintf`]|-|7.0.0|7.0.0|| +|[`sqflite`]|-|2.4.2|2.4.2|| +|[`sqflite_android`]|-|2.4.1|2.4.1|| +|[`sqflite_common`]|-|2.5.6|2.5.6|| +|[`sqflite_darwin`]|-|2.4.2|2.4.2|| +|[`sqflite_platform_interface`]|-|2.4.0|2.4.0|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`synchronized`]|-|3.4.0|3.4.0|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`typed_data`]|-|1.4.0|1.4.0|| +|[`uuid`]|-|4.5.1|4.5.1|| +|[`vector_math`]|-|2.2.0|2.2.0|| +|[`web`]|-|1.1.1|1.1.1|| +|[`xdg_directories`]|-|1.1.0|1.1.0|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`audio_service_platform_interface`]: https://pub.dev/packages/audio_service_platform_interface +[`audio_service_web`]: https://pub.dev/packages/audio_service_web +[`audio_session`]: https://pub.dev/packages/audio_session +[`clock`]: https://pub.dev/packages/clock +[`flutter_cache_manager`]: https://pub.dev/packages/flutter_cache_manager +[`js`]: https://pub.dev/packages/js +[`rxdart`]: https://pub.dev/packages/rxdart +[`async`]: https://pub.dev/packages/async +[`characters`]: https://pub.dev/packages/characters +[`collection`]: https://pub.dev/packages/collection +[`crypto`]: https://pub.dev/packages/crypto +[`ffi`]: https://pub.dev/packages/ffi +[`file`]: https://pub.dev/packages/file +[`fixnum`]: https://pub.dev/packages/fixnum +[`http`]: https://pub.dev/packages/http +[`http_parser`]: https://pub.dev/packages/http_parser +[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities +[`meta`]: https://pub.dev/packages/meta +[`path`]: https://pub.dev/packages/path +[`path_provider`]: https://pub.dev/packages/path_provider +[`path_provider_android`]: https://pub.dev/packages/path_provider_android +[`path_provider_foundation`]: https://pub.dev/packages/path_provider_foundation +[`path_provider_linux`]: https://pub.dev/packages/path_provider_linux +[`path_provider_platform_interface`]: https://pub.dev/packages/path_provider_platform_interface +[`path_provider_windows`]: https://pub.dev/packages/path_provider_windows +[`platform`]: https://pub.dev/packages/platform +[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface +[`source_span`]: https://pub.dev/packages/source_span +[`sprintf`]: https://pub.dev/packages/sprintf +[`sqflite`]: https://pub.dev/packages/sqflite +[`sqflite_android`]: https://pub.dev/packages/sqflite_android +[`sqflite_common`]: https://pub.dev/packages/sqflite_common +[`sqflite_darwin`]: https://pub.dev/packages/sqflite_darwin +[`sqflite_platform_interface`]: https://pub.dev/packages/sqflite_platform_interface +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`synchronized`]: https://pub.dev/packages/synchronized +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`typed_data`]: https://pub.dev/packages/typed_data +[`uuid`]: https://pub.dev/packages/uuid +[`vector_math`]: https://pub.dev/packages/vector_math +[`web`]: https://pub.dev/packages/web +[`xdg_directories`]: https://pub.dev/packages/xdg_directories + +
+ +The constraint `^0.1.25` on audio_session does not support the stable version `0.2.0`. + + +Try running `dart pub upgrade --major-versions audio_session` to update the constraint. +
+ +
+ +The package has one or more discontinued direct dependencies. + +Discontinued packages are no longer maintained, and can end up being a +liability. + + + +Consider migrating away from these dependencies: + +* js. + +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/bulma_min-0.7.4.json b/test/testdata/goldens/end2end_test/bulma_min 0.7.4 report.txt similarity index 65% rename from test/goldens/end2end/bulma_min-0.7.4.json rename to test/testdata/goldens/end2end_test/bulma_min 0.7.4 report.txt index 834e0a8f9..00eea8ab4 100644 --- a/test/goldens/end2end/bulma_min-0.7.4.json +++ b/test/testdata/goldens/end2end_test/bulma_min 0.7.4 report.txt @@ -1,3 +1,118 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 0/20 Platform support + +### [x] 0/20 points: Platform support detection failed + +
+ +Could not determine supported platforms as package resolution failed. + + +Run `dart pub get` for more information. +
+ + +## 0/50 Pass static analysis + +### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues + +* Running `dart pub outdated` failed with the following output: + +``` +The lower bound of "sdk: '>=1.0.0 <3.0.0'" must be 2.12.0' +or higher to enable null safety. +``` + + +## 0/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. + + +`pubspec.yaml:8:8` + +``` + ╷ +8 │ sdk: '>=1.0.0 <3.0.0' + │ ^^^^^^^^^^^^^^^^ + ╵ +``` + +
+ +### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. + + +`pubspec.yaml:8:8` + +``` + ╷ +8 │ sdk: '>=1.0.0 <3.0.0' + │ ^^^^^^^^^^^^^^^^ + ╵ +``` + +Try widening the upper boundary of the constraint. +
+ +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +`dart pub downgrade` failed with: + +``` +OUT: +Resolving dependencies... +ERR: +The lower bound of "sdk: '>=1.0.0 <3.0.0'" must be 2.12.0' +or higher to enable null safety. + +The current Dart SDK (3.9.0) only supports null safety. + +For details, see https://dart.dev/null-safety +``` + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/dnd-2.0.1.json b/test/testdata/goldens/end2end_test/dnd 2.0.1 report.txt similarity index 63% rename from test/goldens/end2end/dnd-2.0.1.json rename to test/testdata/goldens/end2end_test/dnd 2.0.1 report.txt index 2a5eb0ba0..ca703007d 100644 --- a/test/goldens/end2end/dnd-2.0.1.json +++ b/test/testdata/goldens/end2end_test/dnd 2.0.1 report.txt @@ -1,3 +1,163 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 20/20 Provide documentation + +### [*] 10/10 points: 20% or more of the public API has dartdoc comments + +70 out of 77 API elements (90.9 %) have documentation comments. + +Some symbols that are missing documentation: `dnd`, `dnd.Acceptor.Acceptor.new`, `dnd.AnimationHelper.AnimationHelper.new`, `dnd.CloneAvatarHandler.CloneAvatarHandler.new`, `dnd.DraggablesAcceptor.DraggablesAcceptor.new`. + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 1 of 6 possible platforms (iOS, Android, **Web**, Windows, macOS, Linux) + +* ✓ Web + + +These platforms are not supported: + +
+ +Package not compatible with platform Android + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +
+ +Package not compatible with platform iOS + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +
+ +Package not compatible with platform Windows + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +
+ +Package not compatible with platform Linux + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +
+ +Package not compatible with platform macOS + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +### [x] 0/0 points: WASM compatibility + +
+ +Package not compatible with runtime wasm + + +Because: +* `package:dnd/dnd.dart` that imports: +* `dart:js` +
+ +This package is not compatible with runtime `wasm`, and will not be rewarded full points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + + +## 30/50 Pass static analysis + +### [x] 30/50 points: code has no errors, warnings, lints, or formatting issues + +Found 13 issues. Showing the first 2: + +
+ +WARNING: Unnecessary type check; the result is always 'true'. + + +`lib/src/draggable_manager.dart:183:9` + +``` + ╷ +183 │ if (target is Element && + │ ^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/draggable_manager.dart` +
+ +
+ +INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead. + + +`lib/dnd.dart:3:1` + +``` + ╷ +3 │ import 'dart:html'; + │ ^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/dnd.dart` +
+ + +## 40/40 Support up-to-date dependencies + +### [*] 10/10 points: All of the package dependencies are supported in the latest version + +No dependencies. + +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/gg-1.0.12.json b/test/testdata/goldens/end2end_test/gg 1.0.12 report.txt similarity index 61% rename from test/goldens/end2end/gg-1.0.12.json rename to test/testdata/goldens/end2end_test/gg 1.0.12 report.txt index f52de4b61..f40329576 100644 --- a/test/goldens/end2end/gg-1.0.12.json +++ b/test/testdata/goldens/end2end_test/gg 1.0.12 report.txt @@ -1,3 +1,213 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 10/10 Provide documentation + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 5 of 6 possible platforms (**iOS**, **Android**, Web, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + + +These platforms are not supported: + +
+ +Package not compatible with platform Web + + +Because: +* `package:gg/gg.dart` that imports: +* `package:gg/src/tools/checks.dart` that imports: +* `package:gg_publish/gg_publish.dart` that imports: +* `package:gg_publish/src/commands/publish.dart` that imports: +* `package:gg_version/gg_version.dart` that imports: +* `package:gg_version/src/commands/published_version.dart` that imports: +* `package:gg_args/gg_args.dart` that imports: +* `package:gg_args/src/missing_sub_commands.dart` that imports: +* `dart:io` +
+ + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +
+ +INFO: The member 'get' overrides an inherited member but isn't annotated with '@override'. + + +`lib/src/tools/did_command.dart:59:16` + +``` + ╷ +59 │ Future get({ + │ ^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/tools/did_command.dart` +
+ + +## 10/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`args`]|`^2.4.2`|2.7.0|2.7.0|| +|[`gg_args`]|`^1.1.10`|1.1.17|**2.0.4**|| +|[`gg_console_colors`]|`^2.0.1`|2.1.5|2.1.5|| +|[`gg_git`]|`^2.0.0`|2.5.9|**3.0.2**|| +|[`gg_is_flutter`]|`^1.0.3`|1.0.5|1.0.7|| +|[`gg_json`]|`^1.0.0`|1.0.6|**2.0.2**|**Discontinued**| +|[`gg_log`]|`^1.0.0`|1.0.6|1.0.6|| +|[`gg_process`]|`^1.0.6`|1.1.6|1.1.6|| +|[`gg_publish`]|`^2.0.0`|2.0.1|**3.0.18**|| +|[`gg_status_printer`]|`^1.1.0`|1.1.4|1.1.4|| +|[`gg_test`]|`^1.0.3`|1.0.11|1.1.7|| +|[`gg_version`]|`^1.0.0`|1.3.1|**4.0.4**|| +|[`meta`]|`^1.12.0`|1.17.0|1.17.0|| +|[`mocktail`]|`^1.0.3`|1.0.4|1.0.4|| +|[`path`]|`^1.8.0`|1.9.1|1.9.1|| +|[`pub_semver`]|`^2.1.4`|2.2.0|2.2.0|| +|[`recase`]|`^4.1.0`|4.1.0|4.1.0|| +|[`yaml`]|`^3.1.2`|3.1.3|3.1.3|| +|[`yaml_edit`]|`^2.2.0`|2.2.2|2.2.2|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`async`]|-|2.13.0|2.13.0|| +|[`boolean_selector`]|-|2.1.2|2.1.2|| +|[`checked_yaml`]|-|2.0.4|2.0.4|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`colorize`]|-|3.0.0|3.0.0|| +|[`gg_capture_print`]|-|1.0.9|1.0.9|| +|[`gg_hash`]|-|1.0.4|1.0.4|| +|[`gg_is_github`]|-|1.0.6|1.0.6|| +|[`gg_project_root`]|-|1.0.2|1.0.4|| +|[`http`]|-|1.5.0|1.5.0|| +|[`http_parser`]|-|4.1.2|4.1.2|| +|[`json_annotation`]|-|4.9.0|4.9.0|| +|[`matcher`]|-|0.12.17|0.12.17|| +|[`pubspec_parse`]|-|1.5.0|1.5.0|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`stack_trace`]|-|1.12.1|1.12.1|| +|[`stream_channel`]|-|2.1.4|2.1.4|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`test_api`]|-|0.7.7|0.7.7|| +|[`typed_data`]|-|1.4.0|1.4.0|| +|[`web`]|-|1.1.1|1.1.1|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`args`]: https://pub.dev/packages/args +[`gg_args`]: https://pub.dev/packages/gg_args +[`gg_console_colors`]: https://pub.dev/packages/gg_console_colors +[`gg_git`]: https://pub.dev/packages/gg_git +[`gg_is_flutter`]: https://pub.dev/packages/gg_is_flutter +[`gg_json`]: https://pub.dev/packages/gg_json +[`gg_log`]: https://pub.dev/packages/gg_log +[`gg_process`]: https://pub.dev/packages/gg_process +[`gg_publish`]: https://pub.dev/packages/gg_publish +[`gg_status_printer`]: https://pub.dev/packages/gg_status_printer +[`gg_test`]: https://pub.dev/packages/gg_test +[`gg_version`]: https://pub.dev/packages/gg_version +[`meta`]: https://pub.dev/packages/meta +[`mocktail`]: https://pub.dev/packages/mocktail +[`path`]: https://pub.dev/packages/path +[`pub_semver`]: https://pub.dev/packages/pub_semver +[`recase`]: https://pub.dev/packages/recase +[`yaml`]: https://pub.dev/packages/yaml +[`yaml_edit`]: https://pub.dev/packages/yaml_edit +[`async`]: https://pub.dev/packages/async +[`boolean_selector`]: https://pub.dev/packages/boolean_selector +[`checked_yaml`]: https://pub.dev/packages/checked_yaml +[`collection`]: https://pub.dev/packages/collection +[`colorize`]: https://pub.dev/packages/colorize +[`gg_capture_print`]: https://pub.dev/packages/gg_capture_print +[`gg_hash`]: https://pub.dev/packages/gg_hash +[`gg_is_github`]: https://pub.dev/packages/gg_is_github +[`gg_project_root`]: https://pub.dev/packages/gg_project_root +[`http`]: https://pub.dev/packages/http +[`http_parser`]: https://pub.dev/packages/http_parser +[`json_annotation`]: https://pub.dev/packages/json_annotation +[`matcher`]: https://pub.dev/packages/matcher +[`pubspec_parse`]: https://pub.dev/packages/pubspec_parse +[`source_span`]: https://pub.dev/packages/source_span +[`stack_trace`]: https://pub.dev/packages/stack_trace +[`stream_channel`]: https://pub.dev/packages/stream_channel +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`test_api`]: https://pub.dev/packages/test_api +[`typed_data`]: https://pub.dev/packages/typed_data +[`web`]: https://pub.dev/packages/web + +Found 6 issues. Showing the first 2: + +
+ +The constraint `^1.1.10` on gg_args does not support the stable version `2.0.0`. + + +Try running `dart pub upgrade --major-versions gg_args` to update the constraint. +
+ +
+ +The constraint `^2.0.0` on gg_git does not support the stable version `3.0.0`. + + +Try running `dart pub upgrade --major-versions gg_git` to update the constraint. +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +downgrade analysis failed failed with 10 errors: + + - `UNDEFINED_CLASS` - `lib/src/commands/can/can_publish.dart:21:5` - Undefined class 'IsVersionPrepared'. + - `UNDEFINED_METHOD` - `lib/src/commands/can/can_publish.dart:25:34` - The method 'IsVersionPrepared' isn't defined for the type 'CanPublish'. + - `UNDEFINED_METHOD` - `lib/src/commands/check/analyze.dart:48:12` - The method 'ErrorInfoReader' isn't defined for the type 'Analyze'. + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/http-0.13.0.json b/test/testdata/goldens/end2end_test/http 0.13.0 report.txt similarity index 65% rename from test/goldens/end2end/http-0.13.0.json rename to test/testdata/goldens/end2end_test/http 0.13.0 report.txt index b469c0360..42abe51f4 100644 --- a/test/goldens/end2end/http-0.13.0.json +++ b/test/testdata/goldens/end2end_test/http 0.13.0 report.txt @@ -1,3 +1,143 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `BSD-3-Clause`. + + +## 10/10 Provide documentation + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + +* ✓ Web + +### [*] 0/0 points: WASM compatibility + +This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +
+ +INFO: Dangling library doc comment. + + +`lib/http.dart:5:1` + +``` + ╷ +5 │ /// A composable, [Future]-based library for making HTTP requests. + │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/http.dart` +
+ +
+ +INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead. + + +`lib/src/browser_client.dart:6:1` + +``` + ╷ +6 │ import 'dart:html'; + │ ^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/browser_client.dart` +
+ + +## 30/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`http_parser`]|`^4.0.0`|4.1.2|4.1.2|| +|[`meta`]|`^1.3.0`|1.17.0|1.17.0|| +|[`path`]|`^1.8.0`|1.9.1|1.9.1|| +|[`pedantic`]|`^1.10.0`|1.11.1|1.11.1|**Discontinued**| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`collection`]|-|1.19.1|1.19.1|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`typed_data`]|-|1.4.0|1.4.0|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`http_parser`]: https://pub.dev/packages/http_parser +[`meta`]: https://pub.dev/packages/meta +[`path`]: https://pub.dev/packages/path +[`pedantic`]: https://pub.dev/packages/pedantic +[`collection`]: https://pub.dev/packages/collection +[`source_span`]: https://pub.dev/packages/source_span +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`typed_data`]: https://pub.dev/packages/typed_data + +
+ +The package has one or more discontinued direct dependencies. + +Discontinued packages are no longer maintained, and can end up being a +liability. + + + +Consider migrating away from these dependencies: + +* pedantic. + +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/lints-1.0.0.json b/test/testdata/goldens/end2end_test/lints 1.0.0 report.txt similarity index 68% rename from test/goldens/end2end/lints-1.0.0.json rename to test/testdata/goldens/end2end_test/lints 1.0.0 report.txt index 950f25487..2878cddb0 100644 --- a/test/goldens/end2end/lints-1.0.0.json +++ b/test/testdata/goldens/end2end_test/lints 1.0.0 report.txt @@ -1,3 +1,80 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 20/30 Follow Dart file conventions + +### [x] 0/10 points: Provide a valid `pubspec.yaml` + +* `pubspec.yaml` doesn't have a `homepage` entry. + +* `pubspec.yaml` doesn't have a `repository` entry. + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `BSD-3-Clause`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 20/20 Platform support + +### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + +* ✓ Web + +### [*] 0/0 points: WASM compatibility + +This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + + +## 50/50 Pass static analysis + +### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues + + +## 40/40 Support up-to-date dependencies + +### [*] 10/10 points: All of the package dependencies are supported in the latest version + +No dependencies. + +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/mime_type-0.3.2.json b/test/testdata/goldens/end2end_test/mime_type 0.3.2 report.txt similarity index 62% rename from test/goldens/end2end/mime_type-0.3.2.json rename to test/testdata/goldens/end2end_test/mime_type 0.3.2 report.txt index 8935d87d3..25d8f2cce 100644 --- a/test/goldens/end2end/mime_type-0.3.2.json +++ b/test/testdata/goldens/end2end_test/mime_type 0.3.2 report.txt @@ -1,3 +1,141 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 15/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [x] 0/5 points: Provide a valid `README.md` + +
+ +Links in `README.md` should be secure. 1 link is insecure. + + +`README.md:42:35` + +``` + ╷ +42 │

This library is licensed under MIT License.

+ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +Use `https` URLs instead. +
+ +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [x] 0/10 points: Use an OSI-approved license + +
+ +No license was recognized. + + +Consider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community. +
+ + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 0/20 Platform support + +### [x] 0/20 points: Platform support detection failed + +
+ +Could not determine supported platforms as package resolution failed. + + +Run `dart pub get` for more information. +
+ + +## 0/50 Pass static analysis + +### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues + +* Running `dart pub outdated` failed with the following output: + +``` +The lower bound of "sdk: '>=0.8.10 <3.0.0'" must be 2.12.0' +or higher to enable null safety. +``` + + +## 0/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. + + +`pubspec.yaml:10:10` + +``` + ╷ +10 │ sdk: '>=0.8.10 <3.0.0' + │ ^^^^^^^^^^^^^^^^^ + ╵ +``` + +
+ +### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. + + +`pubspec.yaml:10:10` + +``` + ╷ +10 │ sdk: '>=0.8.10 <3.0.0' + │ ^^^^^^^^^^^^^^^^^ + ╵ +``` + +Try widening the upper boundary of the constraint. +
+ +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +`dart pub downgrade` failed with: + +``` +OUT: +Resolving dependencies... +ERR: +The lower bound of "sdk: '>=0.8.10 <3.0.0'" must be 2.12.0' +or higher to enable null safety. + +The current Dart SDK (3.9.0) only supports null safety. + +For details, see https://dart.dev/null-safety +``` + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/nsd_android-2.1.2.json b/test/testdata/goldens/end2end_test/nsd_android 2.1.2 report.txt similarity index 66% rename from test/goldens/end2end/nsd_android-2.1.2.json rename to test/testdata/goldens/end2end_test/nsd_android 2.1.2 report.txt index 437f02e85..522a18e3f 100644 --- a/test/goldens/end2end/nsd_android-2.1.2.json +++ b/test/testdata/goldens/end2end_test/nsd_android 2.1.2 report.txt @@ -1,3 +1,125 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 20/20 Platform support + +### [*] 20/20 points: Supports 1 of 6 possible platforms (iOS, **Android**, Web, Windows, macOS, Linux) + +* ✓ Android + + +These platforms are not supported: + +
+ +Package does not support platform `iOS`. + + +Because: +* `nsd_android` that declares support for platforms: `Android`. +
+ +
+ +Package does not support platform `Windows`. + + +Because: +* `nsd_android` that declares support for platforms: `Android`. +
+ +
+ +Package does not support platform `Linux`. + + +Because: +* `nsd_android` that declares support for platforms: `Android`. +
+ +
+ +Package does not support platform `macOS`. + + +Because: +* `nsd_android` that declares support for platforms: `Android`. +
+ +
+ +Package does not support platform `Web`. + + +Because: +* `nsd_android` that declares support for platforms: `Android`. +
+ + +## 50/50 Pass static analysis + +### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues + + +## 40/40 Support up-to-date dependencies + +### [*] 10/10 points: All of the package dependencies are supported in the latest version + +No dependencies. + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`characters`]|-|1.4.0|1.4.1|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`material_color_utilities`]|-|0.11.1|0.13.0|| +|[`meta`]|-|1.16.0|1.17.0|| +|[`vector_math`]|-|2.2.0|2.2.0|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`characters`]: https://pub.dev/packages/characters +[`collection`]: https://pub.dev/packages/collection +[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities +[`meta`]: https://pub.dev/packages/meta +[`vector_math`]: https://pub.dev/packages/vector_math + +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/onepub-1.1.0.json b/test/testdata/goldens/end2end_test/onepub 1.1.0 report.txt similarity index 58% rename from test/goldens/end2end/onepub-1.1.0.json rename to test/testdata/goldens/end2end_test/onepub 1.1.0 report.txt index 09ba591dd..2fcf9f7ed 100644 --- a/test/goldens/end2end/onepub-1.1.0.json +++ b/test/testdata/goldens/end2end_test/onepub 1.1.0 report.txt @@ -1,3 +1,251 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 10/30 Follow Dart file conventions + +### [x] 0/10 points: Provide a valid `pubspec.yaml` + +
+ +Failed to verify repository URL. + + +Please provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that: + + * `repository` can be cloned, + * a clone of the repository contains a `pubspec.yaml`, which:, + * contains `name: onepub`, + * contains a `version` property, and, + * does not contain a `publish_to` property. + +`pubspec.yaml` from the repository URL mismatch: expected `https://github.com/noojee/onepub.dev` but got `https://github.com/onepub-dev/onepub`. +
+ +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [x] 0/10 points: Use an OSI-approved license + +
+ +No license was recognized. + + +Consider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community. +
+ + +## 10/20 Provide documentation + +### [*] 10/10 points: 20% or more of the public API has dartdoc comments + +0 out of 0 API elements (100.0 %) have documentation comments. + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 20/20 Platform support + +### [*] 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, **Windows**, **macOS**, **Linux**) + +* ✓ Linux + +* ✓ macOS + +* ✓ Windows + + +These platforms are not supported: + +
+ +Android + + +Cannot assign Android automatically to a binary only package. +
+ +
+ +iOS + + +Cannot assign iOS automatically to a binary only package. +
+ +
+ +Web + + +Cannot assign Web automatically to a binary only package. +
+ + +## 50/50 Pass static analysis + +### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues + + +## 30/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`dcli`]|`^1.15.5`|1.36.2|**7.0.5**|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`archive`]|-|3.6.1|4.0.7|| +|[`args`]|-|2.7.0|2.7.0|| +|[`async`]|-|2.13.0|2.13.0|| +|[`basic_utils`]|-|3.9.4|5.8.2|| +|[`boolean_selector`]|-|2.1.2|2.1.2|| +|[`characters`]|-|1.4.1|1.4.1|| +|[`chunked_stream`]|-|1.4.2|1.4.2|| +|[`circular_buffer`]|-|0.11.0|0.12.0|| +|[`clock`]|-|1.1.2|1.1.2|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`convert`]|-|3.1.2|3.1.2|| +|[`crypto`]|-|3.0.6|3.0.6|| +|[`csv`]|-|5.1.1|6.0.0|| +|[`dart_console2`]|-|2.0.1|3.1.1|**Discontinued**| +|[`dcli_core`]|-|1.36.2|7.0.3|| +|[`equatable`]|-|2.0.7|2.0.7|| +|[`ffi`]|-|2.1.4|2.1.4|| +|[`file`]|-|6.1.4|7.0.1|| +|[`file_utils`]|-|1.0.1|1.0.1|**Discontinued**| +|[`functional_data`]|-|1.2.0|1.2.0|| +|[`glob`]|-|2.1.3|2.1.3|| +|[`globbing`]|-|1.0.0|1.0.0|**Discontinued**| +|[`http`]|-|0.13.6|1.5.0|| +|[`http_parser`]|-|4.1.2|4.1.2|| +|[`ini`]|-|2.1.0|2.1.0|| +|[`intl`]|-|0.17.0|0.20.2|| +|[`js`]|-|0.7.2|0.7.2|**Discontinued**| +|[`json2yaml`]|-|3.0.1|3.0.1|| +|[`json_annotation`]|-|4.9.0|4.9.0|| +|[`logging`]|-|1.3.0|1.3.0|| +|[`matcher`]|-|0.12.17|0.12.17|| +|[`meta`]|-|1.17.0|1.17.0|| +|[`mime`]|-|1.0.6|2.0.0|| +|[`path`]|-|1.9.1|1.9.1|| +|[`pointycastle`]|-|3.9.1|4.0.0|| +|[`posix`]|-|4.1.0|6.0.3|| +|[`pub_semver`]|-|2.2.0|2.2.0|| +|[`pubspec2`]|-|2.4.2|4.0.0|**Discontinued**| +|[`pubspec_lock`]|-|3.0.2|3.0.2|| +|[`quiver`]|-|3.2.2|3.2.2|| +|[`random_string`]|-|2.3.1|2.3.1|| +|[`scope`]|-|3.0.0|5.1.0|| +|[`settings_yaml`]|-|4.0.1|8.3.1|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`stack_trace`]|-|1.12.1|1.12.1|| +|[`stacktrace_impl`]|-|2.3.0|2.3.0|**Discontinued**| +|[`stream_channel`]|-|2.1.4|2.1.4|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`sum_types`]|-|0.3.5|0.4.0|| +|[`system_info2`]|-|2.0.4|4.0.0|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`test_api`]|-|0.7.7|0.7.7|| +|[`typed_data`]|-|1.4.0|1.4.0|| +|[`uuid`]|-|3.0.7|4.5.1|| +|[`validators2`]|-|3.0.0|5.0.0|| +|[`vin_decoder`]|-|0.2.1-nullsafety|0.2.1-nullsafety|| +|[`win32`]|-|3.1.4|5.14.0|| +|[`yaml`]|-|3.1.3|3.1.3|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`dcli`]: https://pub.dev/packages/dcli +[`archive`]: https://pub.dev/packages/archive +[`args`]: https://pub.dev/packages/args +[`async`]: https://pub.dev/packages/async +[`basic_utils`]: https://pub.dev/packages/basic_utils +[`boolean_selector`]: https://pub.dev/packages/boolean_selector +[`characters`]: https://pub.dev/packages/characters +[`chunked_stream`]: https://pub.dev/packages/chunked_stream +[`circular_buffer`]: https://pub.dev/packages/circular_buffer +[`clock`]: https://pub.dev/packages/clock +[`collection`]: https://pub.dev/packages/collection +[`convert`]: https://pub.dev/packages/convert +[`crypto`]: https://pub.dev/packages/crypto +[`csv`]: https://pub.dev/packages/csv +[`dart_console2`]: https://pub.dev/packages/dart_console2 +[`dcli_core`]: https://pub.dev/packages/dcli_core +[`equatable`]: https://pub.dev/packages/equatable +[`ffi`]: https://pub.dev/packages/ffi +[`file`]: https://pub.dev/packages/file +[`file_utils`]: https://pub.dev/packages/file_utils +[`functional_data`]: https://pub.dev/packages/functional_data +[`glob`]: https://pub.dev/packages/glob +[`globbing`]: https://pub.dev/packages/globbing +[`http`]: https://pub.dev/packages/http +[`http_parser`]: https://pub.dev/packages/http_parser +[`ini`]: https://pub.dev/packages/ini +[`intl`]: https://pub.dev/packages/intl +[`js`]: https://pub.dev/packages/js +[`json2yaml`]: https://pub.dev/packages/json2yaml +[`json_annotation`]: https://pub.dev/packages/json_annotation +[`logging`]: https://pub.dev/packages/logging +[`matcher`]: https://pub.dev/packages/matcher +[`meta`]: https://pub.dev/packages/meta +[`mime`]: https://pub.dev/packages/mime +[`path`]: https://pub.dev/packages/path +[`pointycastle`]: https://pub.dev/packages/pointycastle +[`posix`]: https://pub.dev/packages/posix +[`pub_semver`]: https://pub.dev/packages/pub_semver +[`pubspec2`]: https://pub.dev/packages/pubspec2 +[`pubspec_lock`]: https://pub.dev/packages/pubspec_lock +[`quiver`]: https://pub.dev/packages/quiver +[`random_string`]: https://pub.dev/packages/random_string +[`scope`]: https://pub.dev/packages/scope +[`settings_yaml`]: https://pub.dev/packages/settings_yaml +[`source_span`]: https://pub.dev/packages/source_span +[`stack_trace`]: https://pub.dev/packages/stack_trace +[`stacktrace_impl`]: https://pub.dev/packages/stacktrace_impl +[`stream_channel`]: https://pub.dev/packages/stream_channel +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`sum_types`]: https://pub.dev/packages/sum_types +[`system_info2`]: https://pub.dev/packages/system_info2 +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`test_api`]: https://pub.dev/packages/test_api +[`typed_data`]: https://pub.dev/packages/typed_data +[`uuid`]: https://pub.dev/packages/uuid +[`validators2`]: https://pub.dev/packages/validators2 +[`vin_decoder`]: https://pub.dev/packages/vin_decoder +[`win32`]: https://pub.dev/packages/win32 +[`yaml`]: https://pub.dev/packages/yaml + +
+ +The constraint `^1.15.5` on dcli does not support the stable version `2.0.1`. + + +Try running `dart pub upgrade --major-versions dcli` to update the constraint. +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/sdp_transform-0.2.0.json b/test/testdata/goldens/end2end_test/sdp_transform 0.2.0 report.txt similarity index 65% rename from test/goldens/end2end/sdp_transform-0.2.0.json rename to test/testdata/goldens/end2end_test/sdp_transform 0.2.0 report.txt index 482d5252a..0bbdb7322 100644 --- a/test/goldens/end2end/sdp_transform-0.2.0.json +++ b/test/testdata/goldens/end2end_test/sdp_transform 0.2.0 report.txt @@ -1,3 +1,131 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 20/30 Follow Dart file conventions + +### [x] 0/10 points: Provide a valid `pubspec.yaml` + +
+ +The package description is too short. + + +Add more detail to the `description` field of `pubspec.yaml`. Use 50 to 180 characters to describe the package, what it does, and its target use case. +
+ +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 20/20 Platform support + +### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + +* ✓ Web + + +## 0/50 Pass static analysis + +### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues + +* Running `dart pub outdated` failed with the following output: + +``` +pubspec.yaml has no lower-bound SDK constraint. +You should edit pubspec.yaml to contain an SDK constraint: +``` + + +## 0/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. + + +`pubspec.yaml:10:8` + +``` + ╷ +10 │ sdk: '<3.0.0' + │ ^^^^^^^^ + ╵ +``` + +
+ +### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs + +
+ +Sdk constraint doesn't support current Dart version {{sdk-version}}. + + +`pubspec.yaml:10:8` + +``` + ╷ +10 │ sdk: '<3.0.0' + │ ^^^^^^^^ + ╵ +``` + +Try widening the upper boundary of the constraint. +
+ +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +`dart pub downgrade` failed with: + +``` +OUT: +Resolving dependencies... +ERR: +pubspec.yaml has no lower-bound SDK constraint. +You should edit pubspec.yaml to contain an SDK constraint: + +environment: + sdk: '^3.9.0' + +See https://dart.dev/go/sdk-constraint +``` + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/skiplist-0.1.0.json b/test/testdata/goldens/end2end_test/skiplist 0.1.0 report.txt similarity index 66% rename from test/goldens/end2end/skiplist-0.1.0.json rename to test/testdata/goldens/end2end_test/skiplist 0.1.0 report.txt index b0d6eeb46..d3274f1da 100644 --- a/test/goldens/end2end/skiplist-0.1.0.json +++ b/test/testdata/goldens/end2end_test/skiplist 0.1.0 report.txt @@ -1,3 +1,104 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 20/30 Follow Dart file conventions + +### [x] 0/10 points: Provide a valid `pubspec.yaml` + +
+ +The package description is too short. + + +Add more detail to the `description` field of `pubspec.yaml`. Use 50 to 180 characters to describe the package, what it does, and its target use case. +
+ +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 0/20 Platform support + +### [x] 0/20 points: Platform support detection failed + +
+ +Could not determine supported platforms as package resolution failed. + + +Run `dart pub get` for more information. +
+ + +## 0/50 Pass static analysis + +### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues + +* Running `dart pub outdated` failed with the following output: + +``` +pubspec.yaml has no lower-bound SDK constraint. +You should edit pubspec.yaml to contain an SDK constraint: +``` + + +## 0/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +* Sdk constraint doesn't support current Dart version {{sdk-version}}. Cannot run `dart pub outdated`. + +### [x] 0/10 points: Package supports latest stable Dart and Flutter SDKs + +
+ +Pubspec.yaml does not have an sdk version constraint. + + +Try adding an sdk constraint to your `pubspec.yaml` +
+ +### [x] 0/20 points: Compatible with dependency constraint lower bounds + +`dart pub downgrade` failed with: + +``` +OUT: +Resolving dependencies... +ERR: +pubspec.yaml has no lower-bound SDK constraint. +You should edit pubspec.yaml to contain an SDK constraint: + +environment: + sdk: '^3.9.0' + +See https://dart.dev/go/sdk-constraint +``` + +Run `dart pub downgrade` and then `dart analyze` to reproduce the above problem. + +You may run `dart pub upgrade --tighten` to update your dependency constraints, see [dart.dev/go/downgrade-testing](https://dart.dev/go/downgrade-testing) for details. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/steward-0.3.1.json b/test/testdata/goldens/end2end_test/steward 0.3.1 report.txt similarity index 62% rename from test/goldens/end2end/steward-0.3.1.json rename to test/testdata/goldens/end2end_test/steward 0.3.1 report.txt index 2f9064940..9e6fbb2c7 100644 --- a/test/goldens/end2end/steward-0.3.1.json +++ b/test/testdata/goldens/end2end_test/steward 0.3.1 report.txt @@ -1,3 +1,173 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `MIT`. + + +## 10/10 Provide documentation + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, **Windows**, **macOS**, **Linux**) + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + + +These platforms are not supported: + +
+ +Package not compatible with platform Android + + +Because: +* `package:steward/steward.dart` that imports: +* `package:steward/app/app.dart` that imports: +* `package:steward/router/router.dart` that imports: +* `package:steward/controllers/route_utils.dart` that imports: +* `dart:mirrors` +
+ +
+ +Package not compatible with platform iOS + + +Because: +* `package:steward/steward.dart` that imports: +* `package:steward/app/app.dart` that imports: +* `package:steward/router/router.dart` that imports: +* `package:steward/controllers/route_utils.dart` that imports: +* `dart:mirrors` +
+ +
+ +Package not compatible with platform Web + + +Because: +* `package:steward/steward.dart` that imports: +* `package:steward/app/app.dart` that imports: +* `package:steward/config/config_reader.dart` that imports: +* `dart:io` +
+ + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +Found 31 issues. Showing the first 2: + +
+ +INFO: The variable name 'GetAnnotation' isn't a lowerCamelCase identifier. + + +`lib/controllers/route_utils.dart:79:7` + +``` + ╷ +79 │ final GetAnnotation = reflectClass(Get); + │ ^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/controllers/route_utils.dart` +
+ +
+ +INFO: The variable name 'PutAnnotation' isn't a lowerCamelCase identifier. + + +`lib/controllers/route_utils.dart:82:7` + +``` + ╷ +82 │ final PutAnnotation = reflectClass(Put); + │ ^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/controllers/route_utils.dart` +
+ + +## 30/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`bosun`]|`^0.2.1`|0.2.2|0.2.2|| +|[`flat`]|`^0.4.0`|0.4.1|**0.5.0**|| +|[`mustache_template`]|`^2.0.0`|2.0.0|2.0.0|| +|[`path_to_regexp`]|`^0.4.0`|0.4.0|0.4.0|| +|[`recase`]|`^4.0.0`|4.1.0|4.1.0|| +|[`yaml`]|`^3.1.0`|3.1.3|3.1.3|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`collection`]|-|1.19.1|1.19.1|| +|[`path`]|-|1.9.1|1.9.1|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`tree_iterator`]|-|2.0.0|3.0.0|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`bosun`]: https://pub.dev/packages/bosun +[`flat`]: https://pub.dev/packages/flat +[`mustache_template`]: https://pub.dev/packages/mustache_template +[`path_to_regexp`]: https://pub.dev/packages/path_to_regexp +[`recase`]: https://pub.dev/packages/recase +[`yaml`]: https://pub.dev/packages/yaml +[`collection`]: https://pub.dev/packages/collection +[`path`]: https://pub.dev/packages/path +[`source_span`]: https://pub.dev/packages/source_span +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`tree_iterator`]: https://pub.dev/packages/tree_iterator + +
+ +The constraint `^0.4.0` on flat does not support the stable version `0.5.0`. + + +Try running `dart pub upgrade --major-versions flat` to update the constraint. +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/url_launcher-6.3.1.json b/test/testdata/goldens/end2end_test/url_launcher 6.3.1 report.txt similarity index 68% rename from test/goldens/end2end/url_launcher-6.3.1.json rename to test/testdata/goldens/end2end_test/url_launcher 6.3.1 report.txt index 7faf0c8f1..6db245446 100644 --- a/test/goldens/end2end/url_launcher-6.3.1.json +++ b/test/testdata/goldens/end2end_test/url_launcher 6.3.1 report.txt @@ -1,3 +1,127 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `BSD-3-Clause`. + + +## 20/20 Provide documentation + +### [*] 10/10 points: 20% or more of the public API has dartdoc comments + +34 out of 37 API elements (91.9 %) have documentation comments. + +Some symbols that are missing documentation: `link`, `url_launcher`, `url_launcher_string`. + +### [*] 10/10 points: Package has an example + + +## 20/20 Platform support + +### [*] 20/20 points: Supports 6 of 6 possible platforms (**iOS**, **Android**, **Web**, **Windows**, **macOS**, **Linux**) + +* ✓ Android + +* ✓ iOS + +* ✓ Windows + +* ✓ Linux + +* ✓ macOS + +* ✓ Web + +### [*] 0/0 points: WASM compatibility + +This package is compatible with runtime `wasm`, and will be rewarded additional points in a future version of the scoring model. + +See https://dart.dev/web/wasm for details. + + +## 40/50 Pass static analysis + +### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues + +
+ +INFO: 'launch' is deprecated and shouldn't be used. Use launchUrl instead. + + +`lib/src/legacy_api.dart:150:6` + +``` + ╷ +150 │ /// [launch] predates multi-window support, and it doesn't have enough context + │ ^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/src/legacy_api.dart` +
+ + +## 40/40 Support up-to-date dependencies + +### [*] 10/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`url_launcher_android`]|`^6.3.0`|6.3.17|6.3.17|| +|[`url_launcher_ios`]|`^6.2.4`|6.3.3|6.3.3|| +|[`url_launcher_linux`]|`^3.1.0`|3.2.1|3.2.1|| +|[`url_launcher_macos`]|`^3.1.0`|3.2.2|3.2.2|| +|[`url_launcher_platform_interface`]|`^2.3.0`|2.3.2|2.3.2|| +|[`url_launcher_web`]|`^2.2.0`|2.4.1|2.4.1|| +|[`url_launcher_windows`]|`^3.1.0`|3.1.4|3.1.4|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`characters`]|-|1.4.0|1.4.1|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`material_color_utilities`]|-|0.11.1|0.13.0|| +|[`meta`]|-|1.16.0|1.17.0|| +|[`plugin_platform_interface`]|-|2.1.8|2.1.8|| +|[`vector_math`]|-|2.2.0|2.2.0|| +|[`web`]|-|1.1.1|1.1.1|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`url_launcher_android`]: https://pub.dev/packages/url_launcher_android +[`url_launcher_ios`]: https://pub.dev/packages/url_launcher_ios +[`url_launcher_linux`]: https://pub.dev/packages/url_launcher_linux +[`url_launcher_macos`]: https://pub.dev/packages/url_launcher_macos +[`url_launcher_platform_interface`]: https://pub.dev/packages/url_launcher_platform_interface +[`url_launcher_web`]: https://pub.dev/packages/url_launcher_web +[`url_launcher_windows`]: https://pub.dev/packages/url_launcher_windows +[`characters`]: https://pub.dev/packages/characters +[`collection`]: https://pub.dev/packages/collection +[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities +[`meta`]: https://pub.dev/packages/meta +[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface +[`vector_math`]: https://pub.dev/packages/vector_math +[`web`]: https://pub.dev/packages/web + +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": { diff --git a/test/goldens/end2end/webdriver-3.0.0.json b/test/testdata/goldens/end2end_test/webdriver 3.0.0 report.txt similarity index 60% rename from test/goldens/end2end/webdriver-3.0.0.json rename to test/testdata/goldens/end2end_test/webdriver 3.0.0 report.txt index 238bbabbc..4b08d25ac 100644 --- a/test/goldens/end2end/webdriver-3.0.0.json +++ b/test/testdata/goldens/end2end_test/webdriver 3.0.0 report.txt @@ -1,3 +1,211 @@ +# GENERATED BY: test/end2end_test.dart + +## Section rendered report +## 30/30 Follow Dart file conventions + +### [*] 10/10 points: Provide a valid `pubspec.yaml` + +### [*] 5/5 points: Provide a valid `README.md` + +### [*] 5/5 points: Provide a valid `CHANGELOG.md` + +### [*] 10/10 points: Use an OSI-approved license + +Detected license: `Apache-2.0`. + + +## 0/10 Provide documentation + +### [x] 0/10 points: Package has an example + +
+ +No example found. + + +See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example. +
+ + +## 0/20 Platform support + +### [x] 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux) + + +These platforms are not supported: + +
+ +Package not compatible with platform Android + + +Because: +* `package:webdriver/async_html.dart` that imports: +* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: +* `dart:html` +
+ +
+ +Package not compatible with platform iOS + + +Because: +* `package:webdriver/async_html.dart` that imports: +* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: +* `dart:html` +
+ +
+ +Package not compatible with platform Windows + + +Because: +* `package:webdriver/async_html.dart` that imports: +* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: +* `dart:html` +
+ +
+ +Package not compatible with platform Linux + + +Because: +* `package:webdriver/async_html.dart` that imports: +* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: +* `dart:html` +
+ +
+ +Package not compatible with platform macOS + + +Because: +* `package:webdriver/async_html.dart` that imports: +* `package:webdriver/src/request/async_xhr_request_client.dart` that imports: +* `dart:html` +
+ +
+ +Package not compatible with platform Web + + +Because: +* `package:webdriver/async_io.dart` that imports: +* `package:webdriver/src/request/async_io_request_client.dart` that imports: +* `dart:io` +
+ + +## 30/50 Pass static analysis + +### [x] 30/50 points: code has no errors, warnings, lints, or formatting issues + +Found 27 issues. Showing the first 2: + +
+ +WARNING: Unnecessary type check; the result is always 'true'. + + +`lib/src/async/web_element.dart:154:7` + +``` + ╷ +154 │ other is WebElement && other.driver == driver && other.id == id; + │ ^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/async/web_element.dart` +
+ +
+ +WARNING: Unnecessary type check; the result is always 'true'. + + +`lib/src/handler/json_wire/utils.dart:26:8` + +``` + ╷ +26 │ (responseBody is Map && + │ ^^^^^^^^^^^^^^^^^^^ + ╵ +``` + +To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/handler/json_wire/utils.dart` +
+ + +## 30/40 Support up-to-date dependencies + +### [x] 0/10 points: All of the package dependencies are supported in the latest version + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`archive`]|`^3.0.0`|3.6.1|**4.0.7**|| +|[`matcher`]|`^0.12.10`|0.12.17|0.12.17|| +|[`path`]|`^1.8.0`|1.9.1|1.9.1|| +|[`stack_trace`]|`^1.10.0`|1.12.1|1.12.1|| +|[`sync_http`]|`^0.3.0`|0.3.1|0.3.1|| + +
Transitive dependencies + +|Package|Constraint|Compatible|Latest|Notes| +|:-|:-|:-|:-|:-| +|[`async`]|-|2.13.0|2.13.0|| +|[`boolean_selector`]|-|2.1.2|2.1.2|| +|[`collection`]|-|1.19.1|1.19.1|| +|[`crypto`]|-|3.0.6|3.0.6|| +|[`meta`]|-|1.17.0|1.17.0|| +|[`source_span`]|-|1.10.1|1.10.1|| +|[`stream_channel`]|-|2.1.4|2.1.4|| +|[`string_scanner`]|-|1.4.1|1.4.1|| +|[`term_glyph`]|-|1.2.2|1.2.2|| +|[`test_api`]|-|0.7.7|0.7.7|| +|[`typed_data`]|-|1.4.0|1.4.0|| +
+ +To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`. + +[`archive`]: https://pub.dev/packages/archive +[`matcher`]: https://pub.dev/packages/matcher +[`path`]: https://pub.dev/packages/path +[`stack_trace`]: https://pub.dev/packages/stack_trace +[`sync_http`]: https://pub.dev/packages/sync_http +[`async`]: https://pub.dev/packages/async +[`boolean_selector`]: https://pub.dev/packages/boolean_selector +[`collection`]: https://pub.dev/packages/collection +[`crypto`]: https://pub.dev/packages/crypto +[`meta`]: https://pub.dev/packages/meta +[`source_span`]: https://pub.dev/packages/source_span +[`stream_channel`]: https://pub.dev/packages/stream_channel +[`string_scanner`]: https://pub.dev/packages/string_scanner +[`term_glyph`]: https://pub.dev/packages/term_glyph +[`test_api`]: https://pub.dev/packages/test_api +[`typed_data`]: https://pub.dev/packages/typed_data + +
+ +The constraint `^3.0.0` on archive does not support the stable version `4.0.0`. + + +Try running `dart pub upgrade --major-versions archive` to update the constraint. +
+ +### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs + +### [*] 20/20 points: Compatible with dependency constraint lower bounds + +`pub downgrade` does not expose any static analysis error. +-------------------------------- END OF OUTPUT --------------------------------- + +## Section json report { "createdAt": "2022-11-23T11:09:00.000Z", "runtimeInfo": {