globbing 0.2.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 41

globbing #

Globbing is a library for pattern matching based on wildcard characters.

Real examples of practical usage of globbing package can be found in file_utils package.

0.2.0 #

  • Adaptation to Dart 2.0

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  globbing: ^0.2.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:globbing/globbing.dart';
  
Version Uploaded Documentation Archive
0.2.0 Aug 13, 2018 Go to the documentation of globbing 0.2.0 Download globbing 0.2.0 archive
0.1.20 Sep 11, 2014 Go to the documentation of globbing 0.1.20 Download globbing 0.1.20 archive
0.1.19 Jul 30, 2014 Go to the documentation of globbing 0.1.19 Download globbing 0.1.19 archive
0.1.18 May 27, 2014 Go to the documentation of globbing 0.1.18 Download globbing 0.1.18 archive
0.1.17 May 8, 2014 Go to the documentation of globbing 0.1.17 Download globbing 0.1.17 archive
0.1.16 May 8, 2014 Go to the documentation of globbing 0.1.16 Download globbing 0.1.16 archive
0.1.15 May 7, 2014 Go to the documentation of globbing 0.1.15 Download globbing 0.1.15 archive
0.1.14 May 7, 2014 Go to the documentation of globbing 0.1.14 Download globbing 0.1.14 archive
0.1.12 May 6, 2014 Go to the documentation of globbing 0.1.12 Download globbing 0.1.12 archive
0.1.11 May 5, 2014 Go to the documentation of globbing 0.1.11 Download globbing 0.1.11 archive

All 27 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
2
Health:
Code health derived from static analysis. [more]
71
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
41
Learn more about scoring.

We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:globbing/globbing.dart.

Health issues and suggestions

Fix lib/src/glob_parser.dart. (-25.75 points)

Analysis of lib/src/glob_parser.dart failed with 1 error, 2 hints:

line 276 col 3: 'GlobNodeSegments._nodes=' ('(List<GlobNodeSegment>) → void') isn't a valid override of 'GlobNodeCollection._nodes=' ('(List<GlobNode>) → void').

line 421 col 11: Use isNotEmpty for Iterables and Maps.

line 619 col 9: The value of the local variable 'position' isn't used.

Fix lib/src/globbing.dart. (-2.48 points)

Analysis of lib/src/globbing.dart reported 5 hints:

line 31 col 41: Use = to separate a named parameter from its default value.

line 67 col 12: Use isNotEmpty for Iterables and Maps.

line 149 col 12: Use isNotEmpty for Iterables and Maps.

line 188 col 64: Use = to separate a named parameter from its default value.

line 573 col 10: The method '_lookup' isn't used.

Fix lib/src/glob_lister.dart. (-1 points)

Analysis of lib/src/glob_lister.dart reported 2 hints:

line 57 col 23: Use = to separate a named parameter from its default value.

line 101 col 9: Use isNotEmpty for Iterables and Maps.

Fix lib/src/glob_filter.dart. (-0.50 points)

Analysis of lib/src/glob_filter.dart reported 1 hint:

line 57 col 9: Use isNotEmpty for Iterables and Maps.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and globbing.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
path ^1.6.2 1.6.2
Dev dependencies
test any