emmercm/igir

View on GitHub
src/types/files/fileChecksums.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function hashStream has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static async hashStream(stream: Stream, checksumBitmask: number): Promise<ChecksumProps> {
    // Not calculating any checksums, do nothing
    if (!checksumBitmask) {
      // WARN(cemmer): this may leave the stream un-drained and therefore some file handles open!
      return {};
Severity: Minor
Found in src/types/files/fileChecksums.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status