vorteil/direktiv

View on GitHub
pkg/filestore/filestoresql/file_query.go

Summary

Maintainability
A
1 hr
Test Coverage

Method FileQuery.SetPath has 9 return statements (exceeds 4 allowed).
Open

func (q *FileQuery) SetPath(ctx context.Context, path string) error {
    path, err := filestore.SanitizePath(path)
    if err != nil {
        return fmt.Errorf("%w: %w", filestore.ErrInvalidPathParameter, err)
    }
Severity: Major
Found in pkg/filestore/filestoresql/file_query.go - About 55 mins to fix

    Method FileQuery.SetData has 5 return statements (exceeds 4 allowed).
    Open

    func (q *FileQuery) SetData(ctx context.Context, data []byte) (string, error) {
        if q.file.Typ == filestore.FileTypeDirectory {
            return "", filestore.ErrFileTypeIsDirectory
        }
    
    
    Severity: Major
    Found in pkg/filestore/filestoresql/file_query.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status