Skip to content

Commit 143f2d9

Browse files
committed
Disable some SwiftLint rules on Linux
Signed-off-by: Robert Vojta <[email protected]>
1 parent 21acd79 commit 143f2d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/InterposeKit/InterposeKit.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,11 @@ public struct IMP: Equatable {}
311311
public struct Method {}
312312
func NSSelectorFromString(_ aSelectorName: String) -> Selector { Selector() }
313313
func class_getInstanceMethod(_ cls: AnyClass?, _ name: Selector) -> Method? { return nil }
314+
// swiftlint:disable:next line_length
314315
func class_replaceMethod(_ cls: AnyClass?, _ name: Selector, _ imp: IMP, _ types: UnsafePointer<Int8>?) -> IMP? { IMP() }
316+
// swiftlint:disable:next identifier_name
315317
func method_getTypeEncoding(_ m: Method) -> UnsafePointer<Int8>? { return nil }
318+
// swiftlint:disable:next identifier_name
316319
func _dyld_register_func_for_add_image(_ func: (@convention(c) (UnsafePointer<Int8>?, Int) -> Void)!) {}
317320
func imp_implementationWithBlock(_ block: Any) -> IMP { IMP() }
318321
#endif

0 commit comments

Comments
 (0)