kujenga/goml

View on GitHub
idx/idx.go

Summary

Maintainability
A
45 mins
Test Coverage
A
100%

Function Read has 7 return statements (exceeds 4 allowed).
Open

func Read(rdr io.Reader) (*IDX, error) {
    // Read in the "magic number" which provides us with information about
    // the format of the data in this IDX file.
    magic := make([]byte, 4)
    n, err := rdr.Read(magic)
Severity: Major
Found in idx/idx.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status