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

A library for generating barrel files.

1
likes
110/ 160
pub points
0%
popularity

We analyzed this package 5 days 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 2.3.7
equatable >=2.0.0 <3.0.0 2.0.5 2.0.5
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.2 3.1.2
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 73.0.0 76.0.0
_macros - 0.3.2 0.3.2
analyzer - 6.8.0 6.11.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.4 1.0.4
macros - 0.1.2-main.4 0.1.3-main.0
meta - 1.16.0 1.16.0
package_config - 2.1.0 2.1.0
platform - 3.1.6 3.1.6
process - 5.0.3 5.0.3
pub_semver - 2.1.4 2.1.4
source_span - 1.10.0 1.10.0
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
watcher - 1.1.0 1.1.0
web - 1.1.0 1.1.0
win32 - 5.8.0 5.8.0

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

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.15, Dart 3.5.4.

Check the analysis log for details.