sample_dart_package 0.5.1
sample_dart_package: ^0.5.1 copied to clipboard
Sample Dart package with GitHub action to publish a new release on new commit on release branch
We analyzed this package 2 days ago, and awarded it 65 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
Homepage URL doesn't exist.
At the time of the analysis https://github.com/alexrintt/sample-dart-package was unreachable. Make sure that the website is reachable via HEAD requests.
Repository URL doesn't exist.
At the time of the analysis https://github.com/alexrintt/sample-dart-package was unreachable. Make sure that the website is reachable via HEAD requests.
Issue tracker URL doesn't exist.
At the time of the analysis https://github.com/alexrintt/sample-dart-package/issues was unreachable. Make sure that the website is reachable via HEAD requests.
Documentation URL doesn't exist.
At the time of the analysis https://github.com/alexrintt/sample-dart-package was unreachable. Make sure that the website is reachable via HEAD requests.
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("0.5.1").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 3 API elements (0.0 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: sample_dart_package, sample_dart_package.multiply, sample_dart_package.sum.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/50 points: code has no errors, warnings, lints, or formatting issues
ERROR: A value of type 'num' can't be returned from the function 'sum' because it has a return type of 'void'.
lib/sample_dart_package.dart:2:10
╷
2 │ return x + y;
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/sample_dart_package.dart
ERROR: A value of type 'num' can't be returned from the function 'multiply' because it has a return type of 'void'.
lib/sample_dart_package.dart:6:10
╷
6 │ return x + y;
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/sample_dart_package.dart
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
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 2 errors:
RETURN_OF_INVALID_TYPE-lib/sample_dart_package.dart:2:10- A value of type 'num' can't be returned from the function 'sum' because it has a return type of 'void'.RETURN_OF_INVALID_TYPE-lib/sample_dart_package.dart:6:10- A value of type 'num' can't be returned from the function 'multiply' because it has a return type of 'void'.
Run flutter pub downgrade and then flutter analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.8, Dart 3.10.7.
Check the analysis log for details.