better_protoc_plugin 1.2.1 copy "better_protoc_plugin: ^1.2.1" to clipboard
better_protoc_plugin: ^1.2.1 copied to clipboard

An opinionated, "new and improved" protobuf protoc compiler plugin used to generate Dart code with real Dart enums, message interfaces, automatic DateTime/Duration conversion, etc.

2
likes
130/ 160
pub points
33
downloads

We analyzed this package 19 days ago, and awarded it 130 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

151 out of 351 API elements (43.0 %) have documentation comments.

Some symbols that are missing documentation: const_generator, indenting_writer, indenting_writer.ImportWriter.ImportWriter.new, indenting_writer.IndentingWriter.IndentingWriter.new, indenting_writer.IndentingWriter.addAnnotatedBlock.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:better_protoc_plugin/protoc.dart that imports:
  • package:better_protoc_plugin/src/shared.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:better_protoc_plugin/protoc.dart that imports:
  • package:better_protoc_plugin/src/shared.dart that 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.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

Found 19 issues. Showing the first 2:

WARNING: This default clause is covered by the previous cases.

lib/src/base_type.dart:166:7

    ╷
166 │       default:
    │       ^^^^^^^
    ╵

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

WARNING: This default clause is covered by the previous cases.

lib/src/protobuf_field.dart:437:7

    ╷
437 │       default:
    │       ^^^^^^^
    ╵

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
collection ^1.15.0 1.19.1 1.19.1
fixnum ^1.0.0 1.1.1 1.1.1
path ^1.8.0 1.9.1 1.9.1
protobuf ^3.1.0 3.1.0 4.0.0
Transitive dependencies
Package Constraint Compatible Latest Notes
meta - 1.16.0 1.16.0

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

The constraint `^3.1.0` on protobuf does not support the stable version `4.0.0`, that was published 6 days ago.

When protobuf is 30 days old, this package will no longer be awarded points in this category.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
130
points
33
downloads

Publisher

verified publisherdra11y.com

Weekly Downloads

An opinionated, "new and improved" protobuf protoc compiler plugin used to generate Dart code with real Dart enums, message interfaces, automatic DateTime/Duration conversion, etc.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, fixnum, path, protobuf

More

Packages that depend on better_protoc_plugin