ali2210/WizDwarf

View on GitHub
other/bucket/storj_bucket/storj_bucket.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method BucketObject.StoreObject has 8 return statements (exceeds 4 allowed).
Open

func (bo *BucketObject) StoreObject(user_phrase string, salt, filename, filetype string, passphrase ...string) *bucket.Bucket_Error {

    if reflect.DeepEqual(bo.NodeCredentials, &uplink.Access{}) {
        return &bucket.Bucket_Error{Bucket: bucket.Bucket_Error_Category_Error}
    }
Severity: Major
Found in other/bucket/storj_bucket/storj_bucket.go - About 50 mins to fix

    Method BucketObject.DownloadObject has 5 return statements (exceeds 4 allowed).
    Open

    func (boj *BucketObject) DownloadObject(project *uplink.Project) *bucket.Bucket_Error {
    
        downObj, err := project.StatObject(boj.Ctx, boj.Bucket, boj.Key)
        if err != nil {
    
    
    Severity: Major
    Found in other/bucket/storj_bucket/storj_bucket.go - About 35 mins to fix

      Method BucketObject.StoreJCredentials has 5 return statements (exceeds 4 allowed).
      Open

      func (boj *BucketObject) StoreJCredentials(user_phrase string, passphrase ...string) (*bucket.Bucket_Error, *uplink.Access) {
      
          const api_key string = "1dfJiTZDDGnTZ9gCmZDAFDp1gLCBSsijs838VhzgskptVYifaWwwDwE51cAqTwATc1L7wwfaQ8Jz723JMLjEvFntG6ZccHwgm7GpvaqCABtFMh4rtU2K"
          const address string = "12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs@eu1.storj.io:7777"
      
      
      Severity: Major
      Found in other/bucket/storj_bucket/storj_bucket.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status