leancode_lint 20.0.0-dev.5
leancode_lint: ^20.0.0-dev.5 copied to clipboard
Robust, high-quality lint rules used at LeanCode.
We analyzed this package 2 hours ago, and awarded it 120 pub points (of a possible 160):
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: Apache-2.0.
10/10 points: 20% or more of the public API has dartdoc comments
460 out of 700 API elements (65.7 %) have documentation comments.
Some symbols that are missing documentation: add_cubit_suffix_for_cubits, add_cubit_suffix_for_cubits.AddCubitSuffixForYourCubits.AddCubitSuffixForYourCubits.new, avoid_conditional_hooks, avoid_conditional_hooks.AvoidConditionalHooks.AvoidConditionalHooks.new, avoid_single_child_in_multi_child_widget.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
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:leancode_lint/assists/convert_iterable_map_to_collection_for.dartthat imports:package:leancode_lint/type_checker.dartthat imports:package:analyzer/dart/element/type.dartthat imports:package:analyzer/src/dart/element/type.dartthat imports:package:analyzer/src/utilities/extensions/element.dartthat imports:package:analyzer/src/dart/element/member.dartthat imports:package:analyzer/src/generated/utilities_dart.dartthat imports:package:analyzer/src/dart/element/element.dartthat imports:package:analyzer/src/summary2/linked_element_factory.dartthat imports:package:analyzer/src/summary2/export.dartthat imports:package:analyzer/src/summary2/library_builder.dartthat imports:package:analyzer/src/summary2/types_builder.dartthat imports:package:analyzer/src/summary2/link.dartthat imports:package:analyzer/src/summary2/variance_builder.dartthat imports:package:analyzer/src/summary2/record_type_builder.dartthat imports:package:analyzer/src/dart/element/type_visitor.dartthat imports:package:analyzer/src/summary2/named_type_builder.dartthat imports:package:analyzer/src/dart/element/type_system.dartthat imports:package:analyzer/src/generated/inference_log.dartthat imports:package:analyzer/src/generated/resolver.dartthat imports:package:analyzer/src/util/ast_data_extractor.dartthat imports:package:analyzer/dart/element/element.dartthat imports:package:analyzer/src/dart/resolver/scope.dartthat imports:package:analyzer/src/generated/engine.dartthat imports:package:analyzer/src/dart/analysis/analysis_options.dartthat imports:package:analyzer/src/lint/registry.dartthat imports:package:analyzer/src/analysis_rule/rule_context.dartthat imports:package:analyzer/analysis_rule/analysis_rule.dartthat imports:package:analyzer/src/lint/pub.dartthat imports:package:analyzer/source/file_source.dartthat imports:package:analyzer/file_system/file_system.dartthat imports:package:watcher/watcher.dartthat imports:package:watcher/src/file_watcher/polling.dartthat imports:package:watcher/src/stat.dartthat imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:leancode_lint/assists/convert_iterable_map_to_collection_for.dartthat imports:package:leancode_lint/type_checker.dartthat imports:package:analyzer/dart/element/type.dartthat imports:package:analyzer/src/dart/element/type.dartthat imports:package:analyzer/src/utilities/extensions/element.dartthat imports:package:analyzer/src/dart/element/member.dartthat imports:package:analyzer/src/generated/utilities_dart.dartthat imports:package:analyzer/src/dart/element/element.dartthat imports:package:analyzer/src/summary2/linked_element_factory.dartthat imports:package:analyzer/src/summary2/export.dartthat imports:package:analyzer/src/summary2/library_builder.dartthat imports:package:analyzer/src/summary2/types_builder.dartthat imports:package:analyzer/src/summary2/link.dartthat imports:package:analyzer/src/summary2/variance_builder.dartthat imports:package:analyzer/src/summary2/record_type_builder.dartthat imports:package:analyzer/src/dart/element/type_visitor.dartthat imports:package:analyzer/src/summary2/named_type_builder.dartthat imports:package:analyzer/src/dart/element/type_system.dartthat imports:package:analyzer/src/generated/inference_log.dartthat imports:package:analyzer/src/generated/resolver.dartthat imports:package:analyzer/src/util/ast_data_extractor.dartthat imports:package:analyzer/dart/element/element.dartthat imports:package:analyzer/src/dart/resolver/scope.dartthat imports:package:analyzer/src/generated/engine.dartthat imports:package:analyzer/src/dart/analysis/analysis_options.dartthat imports:package:analyzer/src/lint/registry.dartthat imports:package:analyzer/src/analysis_rule/rule_context.dartthat imports:package:analyzer/analysis_rule/analysis_rule.dartthat imports:package:analyzer/src/lint/pub.dartthat imports:package:analyzer/source/file_source.dartthat imports:package:analyzer/file_system/file_system.dartthat imports:package:watcher/watcher.dartthat imports:package:watcher/src/file_watcher/polling.dartthat imports:package:watcher/src/stat.dartthat 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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
WARNING: Import of a library in the 'lib/src' directory of another package.
lib/config.dart:3:8
╷
3 │ import 'package:analyzer/src/workspace/pub.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/config.dart
WARNING: Import of a library in the 'lib/src' directory of another package.
lib/helpers.dart:3:8
╷
3 │ import 'package:analysis_server_plugin/src/correction/fix_generators.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/helpers.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_fe_analyzer_shared |
^91.0.0 |
91.0.0 | 92.0.0 | |
analysis_server_plugin |
^0.3.3 |
0.3.3 | 0.3.4 | |
analyzer |
^8.4.0 |
8.4.0 | 9.0.0 | |
analyzer_plugin |
^0.13.10 |
0.13.10 | 0.13.11 | |
collection |
^1.19.1 |
1.19.1 | 1.19.1 | |
meta |
^1.16.0 |
1.17.0 | 1.17.0 | |
path |
^1.9.1 |
1.9.1 | 1.9.1 | |
source_span |
^1.10.1 |
1.10.1 | 1.10.1 | |
yaml |
^3.1.3 |
3.1.3 | 3.1.3 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.6 | 3.0.6 | |
dart_style |
- | 3.1.2 | 3.1.2 | |
file |
- | 7.0.1 | 7.0.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
package_config |
- | 2.2.0 | 2.2.0 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
watcher |
- | 1.1.4 | 1.1.4 | |
yaml_edit |
- | 2.2.2 | 2.2.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^91.0.0` on _fe_analyzer_shared does not support the stable version `92.0.0`, that was published 5 days ago.
When _fe_analyzer_shared is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions _fe_analyzer_shared to update the constraint.
The constraint `^8.4.0` on analyzer does not support the stable version `9.0.0`, that was published 5 days ago.
When analyzer is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions analyzer 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.
Analyzed with Pana 0.23.0, Dart 3.9.4.
Check the analysis log for details.