barreler 1.1.4 copy "barreler: ^1.1.4" to clipboard
barreler: ^1.1.4 copied to clipboard

A library for generating barrel files.

1
likes
110/ 160
pub points
1.09k
downloads

We analyzed this package 17 hours ago, and awarded it 110 pub points (of a possible 160):

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.

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.

OK
Provide documentation
20 / 20trigger folding of the section

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

162 out of 268 API elements (60.4 %) have documentation comments.

Some symbols that are missing documentation: barreler, barreler.AnyArgParser, barreler.AnyArgParser.AnyArgParser, barreler.AnyArgParser.getDefault, barreler.AnyArgResults.

10/10 points: Package has an example

failed
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 does not support platform `Web`.

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/ffi/terminal.dart that imports:
  • package:mason_logger/src/ffi/windows_terminal.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/ffi/terminal.dart that imports:
  • package:mason_logger/src/ffi/windows_terminal.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/ffi/terminal.dart that imports:
  • package:mason_logger/src/ffi/windows_terminal.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `Linux`.

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/ffi/terminal.dart that imports:
  • package:mason_logger/src/ffi/windows_terminal.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/ffi/terminal.dart that imports:
  • package:mason_logger/src/ffi/windows_terminal.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:barreler/barreler.dart that imports:
  • package:barreler/src/key_press_listener.dart that imports:
  • package:mason_logger/mason_logger.dart that imports:
  • package:mason_logger/src/mason_logger.dart that imports:
  • package:mason_logger/src/terminal_overrides.dart that imports:
  • package:mason_logger/src/io.dart that imports:
  • package:io/io.dart that imports:
  • package:io/src/shared_stdin.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.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

INFO: Uses 'await' on an instance of 'bool', which is not a subtype of 'Future'.

lib/commands/example_command.dart:109:25

    ╷
109 │       final eraseFile = await logger.confirm(
    │                         ^^^^^
    ╵

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

INFO: Uses 'await' on an instance of 'List

lib/handlers/build_handler.dart:37:11

   ╷
37 │           await Glob(dir.dirPath).listFileSystemSync(fs, followLinks: false);
   │           ^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest
args >=2.5.0 <3.0.0 2.6.0 2.6.0
autoequal >=0.0.1 <1.0.0 0.9.1 0.9.1
checked_yaml >=2.0.0 <3.0.0 2.0.3 2.0.3
dart_style >=2.0.0 <3.0.0 2.3.7 3.0.1
equatable >=2.0.0 <3.0.0 2.0.7 2.0.7
file >=6.1.4 <8.0.0 7.0.1 7.0.1
glob >=2.0.0 <3.0.0 2.1.2 2.1.2
json2yaml >=3.0.0 <4.0.0 3.0.1 3.0.1
json_annotation >=4.0.0 <5.0.0 4.9.0 4.9.0
mason_logger >=0.0.1 <1.0.0 0.3.1 0.3.1
path >=1.0.0 <2.0.0 1.9.1 1.9.1
pub_updater ^0.4.0 0.4.0 0.5.0
yaml >=3.0.0 <4.0.0 3.1.3 3.1.3
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 76.0.0 78.0.0
_macros - 0.3.3 0.3.3
analyzer - 6.11.0 7.1.0
async - 2.12.0 2.12.0
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
ffi - 2.1.3 2.1.3
http - 1.2.2 1.2.2
http_parser - 4.1.1 4.1.1
io - 1.0.5 1.0.5
macros - 0.1.3-main.0 0.1.3-main.0
meta - 1.16.0 1.16.0
package_config - 2.1.1 2.1.1
platform - 3.1.6 3.1.6
process - 5.0.3 5.0.3
pub_semver - 2.1.5 2.1.5
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
watcher - 1.1.1 1.1.1
web - 1.1.0 1.1.0
win32 - 5.9.0 5.9.0

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

The constraint `>=2.0.0 <3.0.0` on dart_style does not support the stable version `3.0.0`, that was published 18 days ago.

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

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

The constraint `^0.4.0` on pub_updater does not support the stable version `0.5.0`.

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 8 errors:

  • UNDEFINED_ANNOTATION - lib/src/barrel.dart:24:3 - Undefined name 'ignore' used as an annotation.
  • UNDEFINED_ANNOTATION - lib/src/barrel.dart:26:3 - Undefined name 'ignore' used as an annotation.
  • UNDEFINED_NAMED_PARAMETER - lib/src/settings/directory_settings.dart:70:12 - The named parameter 'readValue' isn't defined.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.