tree_sitter 0.1.2 copy "tree_sitter: ^0.1.2" to clipboard
tree_sitter: ^0.1.2 copied to clipboard

A tree sitter parsing library

1
likes
105/ 140
pub points
0%
popularity

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

failed
Follow Dart file conventions
15 / 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.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:2:48

  ╷
2 │ <p>This library provides Dart bindings for the <a href="http://tree-sitter.github.io/tree-sitter/">Tree Sitter</a> c parsing library. It allows parsing source code into a syntax tree that you can traverse and query.</p>
  │                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

105 out of 282 API elements (37.2 %) have documentation comments.

Some symbols that are missing documentation: tree_sitter.CancelToken, tree_sitter.CancelToken.CancelToken, tree_sitter.CancelToken.cancel, tree_sitter.CancelToken.CancelToken.fromToken, tree_sitter.Parser.cancellationFlag.

10/10 points: Package has 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:tree_sitter/tree_sitter.dart that imports:
  • package:tree_sitter/src/generated_bindings.dart that imports:
  • dart:ffi
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 9 issues. Showing the first 2:

WARNING: The value of the local variable 'output' isn't used.

bin/gen_grammar.dart:46:9

   ╷
46 │   final output =
   │         ^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/gen_grammar.dart

WARNING: The parameter type of '==' operators should be non-nullable.

bin/gen_grammar.freezed.dart:206:17

    ╷
206 │   bool operator ==(dynamic other) {
    │                 ^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/gen_grammar.freezed.dart

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

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

Package Constraint Compatible Latest
args ^2.4.1 2.5.0 2.5.0
dylib ^0.3.3 0.3.3 0.3.3
ffi ^2.0.1 2.1.2 2.1.2
freezed_annotation ^2.2.0 2.4.1 2.4.1
json_annotation ^4.8.1 4.9.0 4.9.0
path ^1.8.3 1.9.0 1.9.0
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.18.0 1.18.0
meta - 1.14.0 1.14.0
platform - 3.1.4 3.1.4

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

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

1
likes
105
pub points
0%
popularity

Publisher

unverified uploader

A tree sitter parsing library

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

args, dylib, ffi, freezed_annotation, json_annotation, path

More

Packages that depend on tree_sitter