flutter_ast 0.0.4+3 copy "flutter_ast: ^0.0.4+3" to clipboard
flutter_ast: ^0.0.4+3 copied to clipboard

A Pure Dart File to Ast Serializer/Deserializer.

5
likes
90/ 140
pub points
45%
popularity

We analyzed this package 4 days ago, and awarded it 90 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

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 60 to 180 characters to describe the package, what it does, and its target use case.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/gridaco/flutter-support/tree/main/flutter_ast/ was unreachable. Make sure that the website is reachable via HEAD requests.

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.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

3021 out of 3369 API elements (89.7 %) have documentation comments.

Some symbols that are missing documentation: flutter_ast, flutter_ast.AnalysisErrorUtils, flutter_ast.AnalysisErrorUtils.toJson, flutter_ast.ArgumentListImpl.correspondingStaticParameters, flutter_ast.AssignedVariablePatternImpl.computePatternSchema.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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:flutter_ast/flutter_ast.dart that imports:
  • package:flutter_ast/src/index.dart that imports:
  • package:flutter_ast/src/method.dart that imports:
  • package:flutter_ast/src/core.dart that imports:
  • package:flutter_ast/src/analyzer.dart that imports:
  • package:analyzer/dart/analysis/results.dart that imports:
  • package:analyzer/src/generated/source.dart that imports:
  • package:analyzer/src/generated/sdk.dart that imports:
  • package:analyzer/dart/ast/visitor.dart that imports:
  • package:analyzer/dart/ast/ast.dart that imports:
  • package:analyzer/dart/element/type.dart that imports:
  • package:analyzer/dart/element/element.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/macro.dart that imports:
  • package:analyzer/src/summary2/kernel_compilation_service.dart that imports:
  • package:_fe_analyzer_shared/src/macros/compiler/request_channel.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 23 issues. Showing the first 2:

WARNING: The receiver can't be null, so the null-aware operator '?.' is unnecessary.

lib/cli/generator.dart:130:12

    ╷
130 │   if (_base?.classes != null && _base.classes.isNotEmpty) {
    │            ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/cli/generator.dart

WARNING: The receiver can't be null, so the null-aware operator '?.' is unnecessary.

lib/cli/generator.dart:157:36

    ╷
157 │     final _comments = item.comments?.map((e) => e.comment)?.toList() ?? [];
    │                                    ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/cli/generator.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
_fe_analyzer_shared ^52.0.0 52.0.0 67.0.0
analyzer ^5.4.0 5.4.0 6.4.1
build_cli_annotations ^2.1.0 2.1.0 2.1.0
console ^4.1.0 4.1.0 4.1.0
flutter_ast_core ^0.0.4+3 0.0.4+3 0.0.4+3
mustache_template ^2.0.0 2.0.0 2.0.0
path ^1.8.3 1.9.0 1.9.0
recase ^4.1.0 4.1.0 4.1.0
Transitive dependencies
Package Constraint Compatible Latest
args - 2.4.2 2.4.2
async - 2.11.0 2.11.0
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
file - 7.0.0 7.0.0
freezed_annotation - 2.4.1 2.4.1
glob - 2.1.2 2.1.2
json_annotation - 4.8.1 4.8.1
meta - 1.12.0 1.12.0
package_config - 2.1.0 2.1.0
pub_semver - 2.1.4 2.1.4
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
watcher - 1.1.0 1.1.0
yaml - 3.1.2 3.1.2

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

The constraint `^52.0.0` on _fe_analyzer_shared does not support the stable version `53.0.0`.

Try running dart pub upgrade --major-versions _fe_analyzer_shared to update the constraint.

The constraint `^5.4.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

Analyzed with Pana 0.22.2, Dart 3.3.0.

Check the analysis log for details.