Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/report/template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ Future<ReportSection> followsTemplate(PackageContext context) async {
Issue(
'Failed to verify repository URL.',
suggestion:
'*${repository.verificationFailure ?? 'See logs for further details.'}*\n\n'
'Please provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that:\n\n'
' * `repository` can be cloned,\n'
' * a clone of the repository contains a `pubspec.yaml`, which:,\n'
' * contains `name: ${pubspec.name}`,\n'
' * contains a `version` property, and,\n'
' * does not contain a `publish_to` property.\n\n'
'${repository.verificationFailure ?? 'status: `${repositoryStatus.name}`'}',
' * does not contain a `publish_to` property.',
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion test/end2end_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void main() {
}

// generic, cross-platform package
verifyPackage('async', '2.11.0');
verifyPackage('async', '2.13.0');

// cross-platform package with platform-specific code
verifyPackage('http', '0.13.0', skipDartdoc: true);
Expand Down
2 changes: 1 addition & 1 deletion test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"grantedPoints": 15,
"maxPoints": 30,
"status": "failed",
"summary": "### [x] 0/10 points: Provide a valid `pubspec.yaml`\n\n<details>\n<summary>\nSdk-constraint doesn't allow future stable dart 2.x releases\n</summary>\n\n`pubspec.yaml:6:8`\n\n```\n ╷\n6 │ sdk: \">=2.12.0-0 <2.12.0\"\n │ ^^^^^^^^^^^^^^^^^^^^\n ╵\n```\n\n</details>\n\n<details>\n<summary>\nFailed to verify repository URL.\n</summary>\n\nPlease provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that:\n\n * `repository` can be cloned,\n * a clone of the repository contains a `pubspec.yaml`, which:,\n * contains `name: _dummy_pkg`,\n * contains a `version` property, and,\n * does not contain a `publish_to` property.\n\n`pkg/pub_integration/test_data/_dummy_pkg/pubspec.yaml` from the repository has no `version`.\n</details>\n\n### [*] 5/5 points: Provide a valid `README.md`\n\n### [x] 0/5 points: Provide a valid `CHANGELOG.md`\n\n<details>\n<summary>\nNo `CHANGELOG.md` found.\n</summary>\n\nChangelog 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).\n</details>\n\n### [*] 10/10 points: Use an OSI-approved license\n\nDetected license: `BSD-3-Clause`.\n"
"summary": "### [x] 0/10 points: Provide a valid `pubspec.yaml`\n\n<details>\n<summary>\nSdk-constraint doesn't allow future stable dart 2.x releases\n</summary>\n\n`pubspec.yaml:6:8`\n\n```\n ╷\n6 │ sdk: \">=2.12.0-0 <2.12.0\"\n │ ^^^^^^^^^^^^^^^^^^^^\n ╵\n```\n\n</details>\n\n<details>\n<summary>\nFailed to verify repository URL.\n</summary>\n\n*`pkg/pub_integration/test_data/_dummy_pkg/pubspec.yaml` from the repository has no `version`.*\n\nPlease provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that:\n\n * `repository` can be cloned,\n * a clone of the repository contains a `pubspec.yaml`, which:,\n * contains `name: _dummy_pkg`,\n * contains a `version` property, and,\n * does not contain a `publish_to` property.\n</details>\n\n### [*] 5/5 points: Provide a valid `README.md`\n\n### [x] 0/5 points: Provide a valid `CHANGELOG.md`\n\n<details>\n<summary>\nNo `CHANGELOG.md` found.\n</summary>\n\nChangelog 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).\n</details>\n\n### [*] 10/10 points: Use an OSI-approved license\n\nDetected license: `BSD-3-Clause`.\n"
},
{
"id": "documentation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Sdk-constraint doesn't allow future stable dart 2.x releases
Failed to verify repository URL.
</summary>

*`pkg/pub_integration/test_data/_dummy_pkg/pubspec.yaml` from the repository has no `version`.*

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`.
</details>

### [*] 5/5 points: Provide a valid `README.md`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,34 @@
"flutterVersions": {}
},
"packageName": "async",
"packageVersion": "2.11.0",
"packageVersion": "2.13.0",
"pubspec": {
"name": "async",
"version": "2.11.0",
"version": "2.13.0",
"description": "Utility functions and classes related to the 'dart:async' library.",
"repository": "https://github.com/dart-lang/async",
"repository": "https://github.com/dart-lang/core/tree/main/pkgs/async",
"issue_tracker": "https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aasync",
"topics": [
"async"
],
"environment": {
"sdk": ">=2.18.0 <3.0.0"
"sdk": "^3.4.0"
},
"dependencies": {
"collection": "^1.15.0",
"meta": "^1.1.7"
"meta": "^1.3.0"
},
"dev_dependencies": {
"dart_flutter_team_lints": "^3.0.0",
"fake_async": "^1.2.0",
"lints": "^2.0.0",
"stack_trace": "^1.10.0",
"test": "^1.16.0"
"test": "^1.16.6"
}
},
"allDependencies": [
"collection",
"dart_flutter_team_lints",
"fake_async",
"lints",
"meta",
"stack_trace",
"test"
Expand All @@ -51,7 +55,8 @@
"is:dart3-compatible",
"license:bsd-3-clause",
"license:fsf-libre",
"license:osi-approved"
"license:osi-approved",
"topic:async"
],
"report": {
"sections": [
Expand Down Expand Up @@ -82,33 +87,34 @@
{
"id": "analysis",
"title": "Pass static analysis",
"grantedPoints": 40,
"grantedPoints": 50,
"maxPoints": 50,
"status": "partial",
"summary": "### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues\n\n<details>\n<summary>\nINFO: 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead.\n</summary>\n\n`lib/src/stream_group.dart:242:10`\n\n```\n ╷\n242 │ .whereNotNull()\n │ ^^^^^^^^^^^^\n ╵\n```\n\nTo reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/stream_group.dart`\n</details>\n"
"status": "passed",
"summary": "### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues\n"
},
{
"id": "dependency",
"title": "Support up-to-date dependencies",
"grantedPoints": 40,
"maxPoints": 40,
"status": "passed",
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|Notes|\n|:-|:-|:-|:-|:-|\n|[`collection`]|`^1.15.0`|1.19.1|1.19.1||\n|[`meta`]|`^1.1.7`|1.17.0|1.17.0||\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`collection`]: https://pub.dev/packages/collection\n[`meta`]: https://pub.dev/packages/meta\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n\n### [*] 20/20 points: Compatible with dependency constraint lower bounds\n\n`pub downgrade` does not expose any static analysis error.\n"
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|Notes|\n|:-|:-|:-|:-|:-|\n|[`collection`]|`^1.15.0`|1.19.1|1.19.1||\n|[`meta`]|`^1.3.0`|1.17.0|1.17.0||\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`collection`]: https://pub.dev/packages/collection\n[`meta`]: https://pub.dev/packages/meta\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n\n### [*] 20/20 points: Compatible with dependency constraint lower bounds\n\n`pub downgrade` does not expose any static analysis error.\n"
}
]
},
"screenshots": [],
"result": {
"repositoryUrl": "https://github.com/dart-lang/async",
"issueTrackerUrl": "https://github.com/dart-lang/async/issues",
"repositoryUrl": "https://github.com/dart-lang/core/tree/main/pkgs/async",
"issueTrackerUrl": "https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aasync",
"repositoryStatus": "verified",
"repository": {
"provider": "github",
"host": "github.com",
"repository": "dart-lang/async",
"branch": "master"
"repository": "dart-lang/core",
"branch": "main",
"path": "pkgs/async"
},
"contributingUrl": "https://github.com/dart-lang/async/blob/master/CONTRIBUTING.md",
"contributingUrl": "https://github.com/dart-lang/core/blob/main/CONTRIBUTING.md",
"licenses": [
{
"spdxIdentifier": "BSD-3-Clause",
Expand All @@ -133,7 +139,7 @@
]
}
],
"grantedPoints": 140,
"grantedPoints": 150,
"maxPoints": 160
},
"urlProblems": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,9 @@ This package is compatible with runtime `wasm`, and will be rewarded additional
See https://dart.dev/web/wasm for details.


## 40/50 Pass static analysis
## 50/50 Pass static analysis

### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues

<details>
<summary>
INFO: 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead.
</summary>

`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`
</details>
### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues


## 40/40 Support up-to-date dependencies
Expand All @@ -82,7 +65,7 @@ To reproduce make sure you are using the [lints_core](https://pub.dev/packages/l
|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||
|[`meta`]|`^1.3.0`|1.17.0|1.17.0||

To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.

Expand Down
2 changes: 1 addition & 1 deletion test/goldens/end2end/onepub-1.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"grantedPoints": 10,
"maxPoints": 30,
"status": "failed",
"summary": "### [x] 0/10 points: Provide a valid `pubspec.yaml`\n\n<details>\n<summary>\nFailed to verify repository URL.\n</summary>\n\nPlease provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that:\n\n * `repository` can be cloned,\n * a clone of the repository contains a `pubspec.yaml`, which:,\n * contains `name: onepub`,\n * contains a `version` property, and,\n * does not contain a `publish_to` property.\n\n`pubspec.yaml` from the repository URL mismatch: expected `https://github.com/noojee/onepub.dev` but got `https://github.com/onepub-dev/onepub`.\n</details>\n\n### [*] 5/5 points: Provide a valid `README.md`\n\n### [*] 5/5 points: Provide a valid `CHANGELOG.md`\n\n### [x] 0/10 points: Use an OSI-approved license\n\n<details>\n<summary>\nNo license was recognized.\n</summary>\n\nConsider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community.\n</details>\n"
"summary": "### [x] 0/10 points: Provide a valid `pubspec.yaml`\n\n<details>\n<summary>\nFailed to verify repository URL.\n</summary>\n\n*`pubspec.yaml` from the repository URL mismatch: expected `https://github.com/noojee/onepub.dev` but got `https://github.com/onepub-dev/onepub`.*\n\nPlease provide a valid [`repository`](https://dart.dev/tools/pub/pubspec#repository) URL in `pubspec.yaml`, such that:\n\n * `repository` can be cloned,\n * a clone of the repository contains a `pubspec.yaml`, which:,\n * contains `name: onepub`,\n * contains a `version` property, and,\n * does not contain a `publish_to` property.\n</details>\n\n### [*] 5/5 points: Provide a valid `README.md`\n\n### [*] 5/5 points: Provide a valid `CHANGELOG.md`\n\n### [x] 0/10 points: Use an OSI-approved license\n\n<details>\n<summary>\nNo license was recognized.\n</summary>\n\nConsider using an [OSI-approved license](https://opensource.org/licenses) in the `LICENSE` file to make it more accessible to the community.\n</details>\n"
},
{
"id": "documentation",
Expand Down
4 changes: 2 additions & 2 deletions test/goldens/end2end/onepub-1.1.0.json_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
Failed to verify repository URL.
</summary>

*`pubspec.yaml` from the repository URL mismatch: expected `https://github.com/noojee/onepub.dev` but got `https://github.com/onepub-dev/onepub`.*

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`.
</details>

### [*] 5/5 points: Provide a valid `README.md`
Expand Down