linting 1.5.0
linting: ^1.5.0 copied to clipboard
linting is a framework for creating custom linters using the analyzer_plugin and cli.
We analyzed this package 14 hours ago, and awarded it 80 pub points (of a possible 160):
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 points: 20% or more of the public API has dartdoc comments
86 out of 199 API elements (43.2 %) have documentation comments.
Some symbols that are missing documentation: analyzer_plugin
, analyzer_plugin.AnalyzeCommand
, analyzer_plugin.AnalyzeCommand.AnalyzeCommand.new
, analyzer_plugin.AnalyzeCommand.runCommand
, analyzer_plugin.AnalyzeCommandContext
.
10/10 points: Package has 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:linting/analyzer_plugin.dart
that imports:package:linting/src/analyzer_plugin/commands/analyze_command.dart
that imports:package:linting/foundation.dart
that imports:package:linting/src/foundation/analyzer/model/rule.dart
that imports:package:linting/src/foundation/analyzer/model/internal_resolved_unit_result.dart
that imports:package:analyzer/dart/ast/ast.dart
that imports:package:analyzer/src/generated/source.dart
that imports:package:analyzer/src/generated/engine.dart
that imports:package:analyzer/error/listener.dart
that imports:package:analyzer/error/error.dart
that imports:package:analyzer/src/error/error_code_values.g.dart
that imports:package:analyzer/src/generated/parser.dart
that imports:package:analyzer/src/fasta/ast_builder.dart
that imports:package:analyzer/src/generated/utilities_dart.dart
that imports:package:analyzer/src/dart/element/element.dart
that imports:package:analyzer/src/summary2/reference.dart
that imports:package:analyzer/dart/element/element.dart
that imports:package:analyzer/src/dart/resolver/scope.dart
that imports:package:analyzer/src/dart/element/type.dart
that imports:package:analyzer/src/dart/element/type_system.dart
that imports:package:analyzer/src/dart/element/well_bounded.dart
that imports:package:analyzer/src/dart/element/type_algebra.dart
that imports:package:analyzer/src/summary2/record_type_builder.dart
that imports:package:analyzer/src/dart/element/type_visitor.dart
that imports:package:analyzer/src/summary2/named_type_builder.dart
that imports:package:analyzer/src/summary2/link.dart
that imports:package:analyzer/src/summary2/variance_builder.dart
that imports:package:analyzer/src/summary2/function_type_builder.dart
that imports:package:analyzer/src/dart/ast/extensions.dart
that imports:package:analyzer/src/dart/ast/ast.dart
that imports:package:analyzer/src/generated/resolver.dart
that imports:package:analyzer/src/generated/static_type_analyzer.dart
that imports:package:analyzer/src/dart/resolver/invocation_inference_helper.dart
that imports:package:analyzer/src/dart/resolver/invocation_inferrer.dart
that imports:package:analyzer/src/dart/element/member.dart
that imports:package:analyzer/dart/analysis/session.dart
that imports:package:analyzer/file_system/file_system.dart
that imports:package:analyzer/src/file_system/file_system.dart
that imports:package:analyzer/src/util/uri.dart
that imports:package:analyzer/src/summary/package_bundle_reader.dart
that imports:dart:io
0/0 points: WASM compatibility
Unable to detect compatibility with runtime wasm
, and this package will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 6 issues. Showing the first 2:
ERROR: Missing concrete implementation of 'abstract class ServerPlugin.analyzeFile'.
lib/src/analyzer_plugin/analyzer_plugin.dart:17:7
╷
17 │ class LintingAnalyzerPlugin extends ServerPlugin {
│ ^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/analyzer_plugin/analyzer_plugin.dart
ERROR: The named parameter 'resourceProvider' is required, but there's no corresponding argument.
lib/src/analyzer_plugin/analyzer_plugin.dart:42:8
╷
42 │ }) : super(PhysicalResourceProvider.INSTANCE);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/analyzer_plugin/analyzer_plugin.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
analyzer |
>=2.7.0 <6.0.0 |
5.13.0 | 7.5.4 | |
analyzer_plugin |
>=0.8.0 <1.0.0 |
0.11.2 | 0.13.4 | |
args |
^2.3.0 |
2.7.0 | 2.7.0 | |
glob |
^2.0.2 |
2.1.3 | 2.1.3 | |
path |
^1.8.0 |
1.9.1 | 1.9.1 | |
source_span |
^1.8.1 |
1.10.1 | 1.10.1 | |
test |
^1.16.8 |
1.25.8 | 1.26.2 | |
yaml |
^3.1.0 |
3.1.3 | 3.1.3 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
_fe_analyzer_shared |
- | 61.0.0 | 85.0.0 | |
async |
- | 2.13.0 | 2.13.0 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
cli_config |
- | 0.2.0 | 0.2.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
coverage |
- | 1.14.1 | 1.14.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
dart_style |
- | 2.3.2 | 3.1.0 | |
file |
- | 7.0.1 | 7.0.1 | |
frontend_server_client |
- | 4.0.0 | 4.0.0 | |
http_multi_server |
- | 3.2.2 | 3.2.2 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
io |
- | 1.0.5 | 1.0.5 | |
js |
- | 0.7.2 | 0.7.2 | Discontinued |
logging |
- | 1.3.0 | 1.3.0 | |
matcher |
- | 0.12.16+1 | 0.12.17 | |
meta |
- | 1.17.0 | 1.17.0 | |
mime |
- | 2.0.0 | 2.0.0 | |
node_preamble |
- | 2.0.2 | 2.0.2 | |
package_config |
- | 2.2.0 | 2.2.0 | |
pool |
- | 1.5.1 | 1.5.1 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
shelf |
- | 1.4.2 | 1.4.2 | |
shelf_packages_handler |
- | 3.0.2 | 3.0.2 | |
shelf_static |
- | 1.1.3 | 1.1.3 | |
shelf_web_socket |
- | 2.0.1 | 3.0.0 | |
source_map_stack_trace |
- | 2.1.2 | 2.1.2 | |
source_maps |
- | 0.10.13 | 0.10.13 | |
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.3 | 0.7.6 | |
test_core |
- | 0.6.5 | 0.6.11 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vm_service |
- | 14.3.1 | 15.0.2 | |
watcher |
- | 1.1.2 | 1.1.2 | |
web |
- | 1.1.1 | 1.1.1 | |
web_socket |
- | 1.0.1 | 1.0.1 | |
web_socket_channel |
- | 3.0.3 | 3.0.3 | |
webkit_inspection_protocol |
- | 1.2.1 | 1.2.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `>=2.7.0 <6.0.0` on analyzer does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions analyzer
to update the constraint.
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 1 error:
UNDEFINED_METHOD
-lib/src/analyzer_plugin/analyzer_plugin.dart:76:24
- The method 'getResult' isn't defined for the type 'AnalysisDriver'.
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 for details.
Analyzed with Pana 0.22.21
, Dart 3.8.1
.
Check the analysis log for details.