[CK][Linter Rule] Add CKRenderLayout component to Component Kit Conventional Superclass

Reviewed By: kfirapps, ddino

Differential Revision: D13590155

fbshipit-source-id: 1a9f4ba15
master
Fabio Milano 6 years ago committed by Facebook Github Bot
parent 322066d248
commit 28c3ed50de

@ -227,6 +227,7 @@ let component_with_unconventional_superclass_advice context an =
; ckcomponentcontroller_cl ; ckcomponentcontroller_cl
; "CKCompositeComponent" ; "CKCompositeComponent"
; "CKRenderComponent" ; "CKRenderComponent"
; "CKRenderLayoutComponent"
; "CKRenderWithChildrenComponent" ; "CKRenderWithChildrenComponent"
; "CKStatefulViewComponent" ; "CKStatefulViewComponent"
; "CKStatefulViewComponentController" ; "CKStatefulViewComponentController"

@ -66,3 +66,7 @@ class CKComponentScope {
// Mimic importing CKRenderWithChildrenComponent // Mimic importing CKRenderWithChildrenComponent
@interface CKRenderWithChildrenComponent : CKComponent @interface CKRenderWithChildrenComponent : CKComponent
@end @end
// Mimic importing CKRenderLayoutComponent
@interface CKRenderLayoutComponent : CKComponent
@end

@ -26,3 +26,6 @@
@interface RenderWithChildrenFooComponent : CKRenderWithChildrenComponent // good @interface RenderWithChildrenFooComponent : CKRenderWithChildrenComponent // good
@end @end
@interface RenderLayoutFooComponent : CKRenderLayoutComponent // good
@end

@ -23,3 +23,6 @@
@implementation RenderWithChildrenFooComponent @implementation RenderWithChildrenFooComponent
@end @end
@implementation RenderLayoutFooComponent
@end

Loading…
Cancel
Save