string_scanner 1.0.5

Dart native js
Flutter Android iOS web

A class for parsing strings using a sequence of patterns.

34
likes
90 / 110
pub points
100 %
popularity

We analyzed this package on Jul 31, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
10 / 20

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

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/example.dart

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

  • 46 out of 53 API elements (86.8 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 61 issues. Showing the first 2:

INFO: Only use double quotes for strings containing single quotes.

lib/src/eager_span_scanner.dart:14:31

   ╷
14 │ final _newlineRegExp = RegExp(r"\r\n?|\n");
   │                               ^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/eager_span_scanner.dart

INFO: Annotate overridden members.

lib/src/eager_span_scanner.dart:18:11

   ╷
18 │   int get line => _line;
   │           ^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/eager_span_scanner.dart

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
charcode^1.1.01.1.31.1.3
meta^1.1.01.2.21.2.2
source_span^1.4.01.7.01.7.0
Transitive dependencies
PackageConstraintCompatibleLatest
collection-1.14.131.14.13
path-1.7.01.7.0
term_glyph-1.1.01.1.0

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

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

34
likes
90
pub points
100%
popularity

Publisher

dart.dev

A class for parsing strings using a sequence of patterns.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

charcode, meta, source_span

More

Packages that depend on string_scanner