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
125/ 160
pub points
116
downloads

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

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 53 API elements (26.4 %) 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.

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 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

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:code_coverage/code_coverage.dart that imports:
  • package:code_coverage/src/components/coverage_report_factory.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 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
30 / 40trigger 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.3 2.0.3
args ^2.0.0 2.6.0 2.6.0
coverage ^1.0.2 1.11.1 1.11.1
path ^1.7.0 1.9.1 1.9.1
process_run ^0.12.1+1 0.12.5+3 1.2.2+1
yaml ^3.1.0 3.1.3 3.1.3
Transitive dependencies
Package Constraint Compatible Latest
async - 2.12.0 2.12.0
charcode - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
file - 7.0.1 7.0.1
glob - 2.1.2 2.1.2
logging - 1.3.0 1.3.0
meta - 1.16.0 1.16.0
package_config - 2.1.1 2.1.1
pub_semver - 2.1.5 2.1.5
source_maps - 0.10.13 0.10.13
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
string_scanner - 1.4.1 1.4.1
synchronized - 3.3.0+3 3.3.0+3
term_glyph - 1.2.2 1.2.2
vm_service - 15.0.0 15.0.0

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.

6
likes
125
points
116
downloads

Publisher

verified publishergustavohill.dev

Weekly Downloads

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