singleton_macro 0.0.3-dev.1 copy "singleton_macro: ^0.0.3-dev.1" to clipboard
singleton_macro: ^0.0.3-dev.1 copied to clipboard

A Dart package that provides a `Singleton` macro to transform classes into singletons automatically.

6
likes
140/ 160
pub points
28
downloads

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

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

Failed check 0/10 points: Provide a valid pubspec.yaml

Unknown SDKs in `pubspec.yaml`.

The following unknown SDKs are in pubspec.yaml: {dart}.

pana doesn’t recognize them; please remove the sdk entry.

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: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

1 out of 3 API elements (33.3 %) have documentation comments.

Some symbols that are missing documentation: singleton_macro, singleton_macro.Singleton.buildDeclarationsForClass.

Passed check 10/10 points: Package has an example and has no issues with screenshots

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

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

  • Running dart format failed:
Formatted 2 files (0 changed) in 0.30 seconds.
Could not format because the source could not be parsed:

line 48, column 1 of ../../pana_QUESLC/lib/src/singleton_macro_base.dart: This requires the 'macros' language feature to be enabled.
   ╷
48 │ macro class Singleton implements ClassDeclarationsMacro {
   │ ^^^^^
   ╵```
copied to clipboard
Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

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

Package Constraint Compatible Latest
_macros dart 0.3.3 0.3.3

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

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.18, Dart 3.7.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
May 23Jun 20Jul 18Aug 15Sep 12Oct 10Nov 7Dec 5Jan 2Jan 30020406080100120>=0.0.0-0 <1.0.0
6
likes
140
points
28
downloads
screenshot

Publisher

verified publishertakeitall.news

Weekly Downloads

2024.08.08 - 2025.02.20

A Dart package that provides a `Singleton` macro to transform classes into singletons automatically.

Homepage
Repository (GitHub)
View/report issues

Topics

#dart #macros #singleton #design-patterns #utilities

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

_macros

More

Packages that depend on singleton_macro