vorteil/vorteil

View on GitHub
pkg/gcparchive/gcparchive.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Writer.writeHeader has 5 return statements (exceeds 4 allowed).
Open

func (w *Writer) writeHeader() error {
    header := new(gcpTarPosixHeader)
    copy(header.Name[:], []byte("disk.raw")) // gcp requires the file is called disk.raw
    octal := strconv.FormatUint(uint64(w.length), 8)

Severity: Major
Found in pkg/gcparchive/gcparchive.go - About 35 mins to fix

    TODO found
    Open

        // TODO user/group info
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by fixme

    exported method Writer.Seek should have comment or be unexported
    Open

    func (w *Writer) Seek(offset int64, whence int) (int64, error) {
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by golint

    exported type Writer should have comment or be unexported
    Open

    type Writer struct {
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by golint

    exported method Writer.Close should have comment or be unexported
    Open

    func (w *Writer) Close() error {
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by golint

    exported function NewWriter should have comment or be unexported
    Open

    func NewWriter(w io.Writer, h Sizer) (*Writer, error) {
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by golint

    exported type Sizer should have comment or be unexported
    Open

    type Sizer interface {
    Severity: Minor
    Found in pkg/gcparchive/gcparchive.go by golint

    There are no issues that match your filters.

    Category
    Status