brightdigit/MistKit

View on GitHub
Sources/MistKit/Models/MKAsset.swift

Summary

Maintainability
A
0 mins
Test Coverage

All declarations should specify Access Control Level keywords explicitly.
Open

  let wrappingKey: Data

All declarations should specify Access Control Level keywords explicitly.
Open

  let downloadURL: URLBase?

All declarations should specify Access Control Level keywords explicitly.
Open

    let baseURL: URL

All declarations should specify Access Control Level keywords explicitly.
Open

  let fileChecksum: Data

All declarations should specify Access Control Level keywords explicitly.
Open

  let size: Int64

All declarations should specify Access Control Level keywords explicitly.
Open

  let receipt: Data?

All declarations should specify Access Control Level keywords explicitly.
Open

    func url(withFileName fileName: String) -> URL {

All declarations should specify Access Control Level keywords explicitly.
Open

  let referenceChecksum: Data

Function should have at least one blank line after it
Open

    }
Severity: Minor
Found in Sources/MistKit/Models/MKAsset.swift by tailor

function-whitespace

Every function and method declaration should have one blank line before and after itself. An exception to this rule are functions that are declared at the start of a file (only need one blank line after their declaration) or at the end of a file (only need one blank line before their declaration). Comments immediately before a function declaration (no blank lines between them and the function) are considered to be part of the declaration.

Preferred

func function1() {
  var text = 1
  var text = 2
}

function1()

// a comment
func function2() {
  // something goes here
}

struct SomeStruct {

  func function3() {
    // something goes here
  }

  func function4() {
    // something else goes here
  };

}

func function5() {
  // something goes here
}

Not Preferred

func function1() {
  var text = 1
  var text = 2
}
function1()
// a comment
func function2() {
  // something goes here
}

struct SomeStruct {
  func function3() {
    // something goes here
  }

  func function4() {
    // something else goes here
  };
}
func function5() {
  // something goes here
}

There are no issues that match your filters.

Category
Status