flutter_ast 0.0.4+3 icon indicating copy to clipboard operation
flutter_ast: ^0.0.4+3 copied to clipboard

A Pure Dart File to Ast Serializer/Deserializer.

4
likes
80/ 140
pub points
36%
popularity

We analyzed this package 7 hours ago, and awarded it 80 pub points (of a possible 140):

icon indicating section status
Follow Dart file conventions
20 / 30icon to trigger 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.

icon indicating section status
Provide documentation
0 / 20icon to trigger folding of the section

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

  • 0 out of 63 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.

icon indicating section status
Platform support
20 / 20icon to trigger 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
icon indicating section status
Pass static analysis
10 / 30icon to trigger folding of the section

10/30 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

icon indicating section status
Support up-to-date dependencies
10 / 20icon to trigger 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 61.0.0
analyzer ^5.4.0 5.4.0 5.13.0
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.8.3 1.8.3
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.17.2 1.17.2
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
file - 7.0.0 7.0.0
freezed_annotation - 2.2.0 2.2.0
glob - 2.1.2 2.1.2
json_annotation - 4.8.1 4.8.1
meta - 1.9.1 1.9.1
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.

10/10 points: Package supports latest stable Dart and Flutter SDKs

icon indicating section status
Dart 3 compatibility
20 / 20icon to trigger folding of the section

20/20 points: Package is Dart 3 compatible!

Analysed with Pana 0.21.32, Dart 3.0.2.