code_coverage 1.4.0 copy "code_coverage: ^1.4.0" to clipboard
code_coverage: ^1.4.0 copied to clipboard

A CLI tool and package useful for reporting code coverage of a given dart package

6
likes
105/ 140
pub points
54%
popularity

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

failed
Follow Dart file conventions
25 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

`README.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
10 / 20trigger folding of the section

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

14 out of 54 API elements (25.9 %) have documentation comments.

Some symbols that are missing documentation: code_coverage, code_coverage.CodeCoverageExtractor.coverageReportFactory, code_coverage.CodeCoverageExtractor.hasTestDirectory, code_coverage.CodeCoverageExtractor.hitmapReader, code_coverage.CodeCoverageExtractor.processRunner.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
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 not compatible with platform Web

Because:

  • package:code_coverage/code_coverage.dart that imports:
  • package:code_coverage/src/components/coverage_report_factory.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 5 issues. Showing the first 2:

INFO: The import of 'package:code_coverage/src/models/coverage_report.dart' is unnecessary because all of the used elements are also provided by the import of 'package:code_coverage/code_coverage.dart'.

bin/table_formatter.dart:2:8

  ╷
2 │ import 'package:code_coverage/src/models/coverage_report.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/table_formatter.dart

INFO: An uninitialized variable should have an explicit type annotation.

bin/utils.dart:7:7

  ╷
7 │   var sequenceStart;
  │       ^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze bin/utils.dart

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

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

Package Constraint Compatible Latest
ansicolor ^2.0.1 2.0.2 2.0.2
args ^2.0.0 2.5.0 2.5.0
coverage ^1.0.2 1.7.2 1.7.2
path ^1.7.0 1.9.0 1.9.0
process_run ^0.12.1+1 0.12.5+3 0.14.2
yaml ^3.1.0 3.1.2 3.1.2
Transitive dependencies
Package Constraint Compatible Latest
charcode - 1.3.1 1.3.1
collection - 1.18.0 1.18.0
logging - 1.2.0 1.2.0
meta - 1.14.0 1.14.0
package_config - 2.1.0 2.1.0
pub_semver - 2.1.4 2.1.4
source_maps - 0.10.12 0.10.12
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
string_scanner - 1.2.0 1.2.0
synchronized - 3.1.0+1 3.1.0+1
term_glyph - 1.2.1 1.2.1
vm_service - 14.2.1 14.2.1

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

The constraint `^0.12.1+1` on process_run does not support the stable version `0.13.0`.

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

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

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

6
likes
105
pub points
54%
popularity

Publisher

verified publishergustavohill.dev

A CLI tool and package useful for reporting code coverage of a given dart package

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

ansicolor, args, coverage, path, process_run, yaml

More

Packages that depend on code_coverage