Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Swift 4 #28

Merged
merged 19 commits into from Nov 23, 2017
Merged

Use Swift 4 #28

merged 19 commits into from Nov 23, 2017

Conversation

nakajijapan
Copy link
Owner

No description provided.

@@ -50,3 +66,4 @@ public extension ShariCompatible {

extension UINavigationController: ShariCompatible { }
extension UITabBarController: ShariCompatible { }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)

return (sourceViewController, destinationViewController)
}
}

public extension ShariCompatible {

public static var si: Shari<Self>.Type {
get {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implicit Getter Violation: Computed read-only properties should avoid using the get keyword. (implicit_getter)

if ShouldTransformScaleDown {
transform = CATransform3DScale(transform, 0.95, 0.95, 1.0);
if ShariSettings.shouldTransformScaleDown {
transform = CATransform3DScale(transform, 0.90, 0.90, 1.0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Semicolon Violation: Lines should not have trailing semicolons. (trailing_semicolon)

}



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 2. (vertical_whitespace)

Repository owner deleted a comment from houndci-bot Nov 23, 2017
Repository owner deleted a comment from houndci-bot Nov 23, 2017
Repository owner deleted a comment from houndci-bot Nov 23, 2017
Repository owner deleted a comment from houndci-bot Nov 23, 2017
Repository owner deleted a comment from houndci-bot Nov 23, 2017
Repository owner deleted a comment from houndci-bot Nov 23, 2017
return (sourceViewController, destinationViewController)
}
}

public extension ShariCompatible {

public static var si: Shari<Self>.Type {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier Name Violation: Variable name should be between 3 and 40 characters long: 'si' (identifier_name)

var si: CompatibleType { get }

static var si: Shari<CompatibleType>.Type { get }
var si: Shari<CompatibleType> { get }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier Name Violation: Variable name should be between 3 and 40 characters long: 'si' (identifier_name)


public protocol ShariCompatible {
associatedtype CompatibleType
var si: CompatibleType { get }

static var si: Shari<CompatibleType>.Type { get }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier Name Violation: Variable name should be between 3 and 40 characters long: 'si' (identifier_name)

public var BackgroundColorOfOverlayView: UIColor = { fatalError() }()

@available(*, unavailable, renamed: "ShariSettings.shouldTransformScaleDown")
public var ShouldTransformScaleDown: Bool = { fatalError() }()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier Name Violation: Variable name should start with a lowercase character: 'ShouldTransformScaleDown' (identifier_name)

public var BackgroundColorOfOverlayView = UIColor(red: 0, green: 0, blue: 0, alpha: 1.0)
public var ShouldTransformScaleDown = true
@available(*, unavailable, renamed: "ShariSettings.backgroundColorOfOverlayView")
public var BackgroundColorOfOverlayView: UIColor = { fatalError() }()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifier Name Violation: Variable name should start with a lowercase character: 'BackgroundColorOfOverlayView' (identifier_name)

return;
}

let screenShotView = ModalAnimator.screenShotView(overlayView: overlayView)
let scale = self.map(value: location.y, inMin: 0, inMax: UIScreen.main.bounds.height, outMin: 0.9, outMax: 1.0)
let scale = self.map(value: location.y, inMin: 0, inMax: UIScreen.main.bounds.height, outMin: 0.7757, outMax: 1.0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 122 characters (line_length)

@nakajijapan nakajijapan merged commit d697670 into master Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants