It appears that the LINT4002 bslint rule incorrectly scans for the component name anywhere in the CreateObject call. Instead, it should only look for them directly following a "roSGNode".
? createObject("Parent") 'bslint should NOT consider this valid usage of the `Parent` component
? createObject("roSGNode", "Parent") ' THIS is the proper usage of `Parent` component
It appears that the
LINT4002
bslint rule incorrectly scans for the component name anywhere in theCreateObject
call. Instead, it should only look for them directly following a "roSGNode".