Showing 4 of 4 files from the diff.
@@ -76,8 +76,8 @@
Loading
76 | 76 | /// - vector: The vector to be multiplied |
|
77 | 77 | /// - scalar: The scale by which the vector will be multiplied |
|
78 | 78 | static func *= (vector: inout CGVector, scalar: CGFloat) { |
|
79 | - | // swiftlint:disable:next shorthand_operator |
|
80 | - | vector = vector * scalar |
|
79 | + | vector.dx *= scalar |
|
80 | + | vector.dy *= scalar |
|
81 | 81 | } |
|
82 | 82 | ||
83 | 83 | /// SwifterSwift: Negates the vector. The direction is reversed, but magnitude remains the same. |
@@ -65,8 +65,8 @@
Loading
65 | 65 | /// - lhs: self |
|
66 | 66 | /// - rhs: CGPoint to add. |
|
67 | 67 | static func += (lhs: inout CGPoint, rhs: CGPoint) { |
|
68 | - | // swiftlint:disable:next shorthand_operator |
|
69 | - | lhs = lhs + rhs |
|
68 | + | lhs.x += rhs.x |
|
69 | + | lhs.y += rhs.y |
|
70 | 70 | } |
|
71 | 71 | ||
72 | 72 | /// SwifterSwift: Subtract two CGPoints. |
@@ -95,8 +95,8 @@
Loading
95 | 95 | /// - lhs: self |
|
96 | 96 | /// - rhs: CGPoint to subtract. |
|
97 | 97 | static func -= (lhs: inout CGPoint, rhs: CGPoint) { |
|
98 | - | // swiftlint:disable:next shorthand_operator |
|
99 | - | lhs = lhs - rhs |
|
98 | + | lhs.x -= rhs.x |
|
99 | + | lhs.y -= rhs.y |
|
100 | 100 | } |
|
101 | 101 | ||
102 | 102 | /// SwifterSwift: Multiply a CGPoint with a scalar |
@@ -124,8 +124,8 @@
Loading
124 | 124 | /// - scalar: scalar value. |
|
125 | 125 | /// - Returns: result of multiplication of the given CGPoint with the scalar. |
|
126 | 126 | static func *= (point: inout CGPoint, scalar: CGFloat) { |
|
127 | - | // swiftlint:disable:next shorthand_operator |
|
128 | - | point = point * scalar |
|
127 | + | point.x *= scalar |
|
128 | + | point.y *= scalar |
|
129 | 129 | } |
|
130 | 130 | ||
131 | 131 | /// SwifterSwift: Multiply a CGPoint with a scalar |
@@ -256,7 +256,7 @@
Loading
256 | 256 | /// |
|
257 | 257 | /// - Parameters: |
|
258 | 258 | /// - lhs: dictionary |
|
259 | - | /// - rhs: array with the keys to be removed. |
|
259 | + | /// - keys: array with the keys to be removed. |
|
260 | 260 | /// - Returns: a new dictionary with keys removed. |
|
261 | 261 | static func - <S: Sequence>(lhs: [Key: Value], keys: S) -> [Key: Value] where S.Element == Key { |
|
262 | 262 | var result = lhs |
@@ -274,7 +274,7 @@
Loading
274 | 274 | /// |
|
275 | 275 | /// - Parameters: |
|
276 | 276 | /// - lhs: dictionary |
|
277 | - | /// - rhs: array with the keys to be removed. |
|
277 | + | /// - keys: array with the keys to be removed. |
|
278 | 278 | static func -= <S: Sequence>(lhs: inout [Key: Value], keys: S) where S.Element == Key { |
|
279 | 279 | lhs.removeAll(keys: keys) |
|
280 | 280 | } |
@@ -63,8 +63,9 @@
Loading
63 | 63 | /// - lhs: self |
|
64 | 64 | /// - rhs: SCNVector3 to add. |
|
65 | 65 | static func += (lhs: inout SCNVector3, rhs: SCNVector3) { |
|
66 | - | // swiftlint:disable:next shorthand_operator |
|
67 | - | lhs = lhs + rhs |
|
66 | + | lhs.x += rhs.x |
|
67 | + | lhs.y += rhs.y |
|
68 | + | lhs.z += rhs.z |
|
68 | 69 | } |
|
69 | 70 | ||
70 | 71 | /// SwifterSwift: Subtract two SCNVector3s. |
@@ -87,8 +88,9 @@
Loading
87 | 88 | /// - lhs: self |
|
88 | 89 | /// - rhs: SCNVector3 to subtract. |
|
89 | 90 | static func -= (lhs: inout SCNVector3, rhs: SCNVector3) { |
|
90 | - | // swiftlint:disable:next shorthand_operator |
|
91 | - | lhs = lhs - rhs |
|
91 | + | lhs.x -= rhs.x |
|
92 | + | lhs.y -= rhs.y |
|
93 | + | lhs.z -= rhs.z |
|
92 | 94 | } |
|
93 | 95 | ||
94 | 96 | /// SwifterSwift: Multiply a SCNVector3 with a scalar |
@@ -112,8 +114,9 @@
Loading
112 | 114 | /// - scalar: scalar value. |
|
113 | 115 | /// - Returns: result of multiplication of the given CGPoint with the scalar. |
|
114 | 116 | static func *= (vector: inout SCNVector3, scalar: SceneKitFloat) { |
|
115 | - | // swiftlint:disable:next shorthand_operator |
|
116 | - | vector = vector * scalar |
|
117 | + | vector.x *= scalar |
|
118 | + | vector.y *= scalar |
|
119 | + | vector.z *= scalar |
|
117 | 120 | } |
|
118 | 121 | ||
119 | 122 | /// SwifterSwift: Multiply a scalar with a SCNVector3 |
Files | Coverage |
---|---|
Sources/SwifterSwift | 95.41% |
Project Totals (100 files) | 95.41% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.