File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -718,6 +718,30 @@ export default class SharedOpsUtil extends SharedUtil
718718 "text" : "use `op.log`, not `console.log` "
719719 } ) ;
720720
721+ if ( code . includes ( "patch.cgl" ) || code . includes ( "CGL." ) )
722+ {
723+ if ( ! info . coreLibs || ! info . coreLibs . includes ( "cgl" ) )
724+ {
725+ srcWarnings . push ( {
726+ "type" : "corelibs" ,
727+ "id" : "missing_cgl" ,
728+ "text" : "op uses CGL/patch.cgl, add cgl corelib"
729+ } ) ;
730+ }
731+ }
732+
733+ if ( code . includes ( "patch.cgp" ) || code . includes ( "CGP." ) )
734+ {
735+ if ( ! info . coreLibs || ! info . coreLibs . includes ( "cgp" ) )
736+ {
737+ srcWarnings . push ( {
738+ "type" : "corelibs" ,
739+ "id" : "missing_cgp" ,
740+ "text" : "op uses CGP/patch.cgp, add cgp corelib"
741+ } ) ;
742+ }
743+ }
744+
721745 const atts = this . getAttachmentFiles ( opName ) ;
722746
723747 for ( let i = 0 ; i < atts . length ; i ++ )
You can’t perform that action at this time.
0 commit comments