vorteil/vorteil

View on GitHub
pkg/vproj/util.go

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Function handleFile has 6 return statements (exceeds 4 allowed).
Open

func handleFile(args *handleFileArgs) (*tar.Header, error) {

    header, err := tar.FileInfoHeader(vio.Info(args.f), args.link)
    if err != nil {
        return nil, err
Severity: Major
Found in pkg/vproj/util.go - About 40 mins to fix

    Function handleIcon has 6 return statements (exceeds 4 allowed).
    Open

    func handleIcon(iconName string, ico vio.File, tw *tar.Writer, iconFile *os.File) error {
        if ico.Size() == 0 {
            return nil
        }
        _, err := iconFile.Seek(0, 0)
    Severity: Major
    Found in pkg/vproj/util.go - About 40 mins to fix

      Function walkFilesystem has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func walkFilesystem(pkg vpkg.Reader, files []string, tw *tar.Writer, vprjIncluded bool, vprj ProjectData) error {
      Severity: Minor
      Found in pkg/vproj/util.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status