Skip to content

Commit

Permalink
Recognize new example files in bin/ (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Jun 11, 2024
1 parent 08a3ca2 commit 41e9520
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.22.6

- New recognized example files in the `example/bin` directory.

## 0.22.5

- Updated text and link on downgrade analysis.
Expand Down
4 changes: 4 additions & 0 deletions lib/src/maintenance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ List<String> exampleFileCandidates(String package) {
return <String>[
'example/example.md',
'example/lib/main.dart',
'example/bin/main.dart',
'example/main.dart',
'example/lib/$package.dart',
'example/bin/$package.dart',
'example/$package.dart',
'example/lib/${package}_example.dart',
'example/bin/${package}_example.dart',
'example/${package}_example.dart',
'example/lib/example.dart',
'example/bin/example.dart',
'example/example.dart',
'example/README.md',
];
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pana
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
version: 0.22.5
version: 0.22.6-dev
repository: https://github.com/dart-lang/pana
topics:
- tool
Expand Down
6 changes: 3 additions & 3 deletions test/goldens/end2end/_dummy_pkg-1.0.0-null-safety.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
{
"id": "documentation",
"title": "Provide documentation",
"grantedPoints": 0,
"grantedPoints": 10,
"maxPoints": 20,
"status": "failed",
"summary": "### [x] 0/10 points: 20% or more of the public API has dartdoc comments\n\nDependency resolution failed, unable to run `dartdoc`.\n\n### [x] 0/10 points: Package has an example\n\n<details>\n<summary>\nNo example found.\n</summary>\n\nSee [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example.\n</details>"
"summary": "### [x] 0/10 points: 20% or more of the public API has dartdoc comments\n\nDependency resolution failed, unable to run `dartdoc`.\n\n### [*] 10/10 points: Package has an example\n"
},
{
"id": "platform",
Expand Down Expand Up @@ -80,7 +80,7 @@
"screenshots": [],
"result": {
"homepageUrl": "https://github.com/dart-lang/pub-dev",
"grantedPoints": 15,
"grantedPoints": 25,
"maxPoints": 160
},
"urlProblems": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,14 @@ Changelog entries help developers follow the progress of your package. Check out

Detected license: `BSD-3-Clause`.

## 0/20 Provide documentation
## 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`.

### [x] 0/10 points: Package has an example
### [*] 10/10 points: Package has an example

<details>
<summary>
No example found.
</summary>

See [package layout](https://dart.dev/tools/pub/package-layout#examples) guidelines on how to add an example.
</details>

## 0/20 Platform support

Expand Down

0 comments on commit 41e9520

Please sign in to comment.