Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
This report summarizes scanner evidence for cocos/cocos-engine, a C++ project with 9,897 GitHub stars. SynthScan examined 1,001,138 lines of code across 4462 source files, recording 1277 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 1.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 1239 finding(s).
Are imports declared and package/API names verified? 27 finding(s).
Are wrappers, guards, and repeated structures necessary? 296 finding(s).
Which changes need focused human review? 1277 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1277 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/CMakeLists.txt | 1741 | ##### lights | COMMENT |
| LOW | …ive/tools/simulator/libsimulator/lib/SimulatorExport.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …ive/tools/simulator/libsimulator/lib/SimulatorExport.h | 41 | #endif | COMMENT |
| LOW | …tive/tools/simulator/libsimulator/lib/CustomAppEvent.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …tive/tools/simulator/libsimulator/lib/PlayerProtocol.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m | 1 | // | COMMENT |
| LOW | …r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m | 41 | // to selectively compile this file as non-ARC, do as follows: | COMMENT |
| LOW | …r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m | 121 | // _openUDID = [[UIDevice currentDevice] uniqueIdentifier]; | COMMENT |
| LOW | …lator/libsimulator/lib/platform/win32/SimulatorWin.cpp | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …bsimulator/lib/platform/win32/PlayerTaskServiceWin.cpp | 61 | } | COMMENT |
| LOW | …ols/simulator/libsimulator/lib/network/CCHTTPRequest.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …ols/simulator/libsimulator/lib/network/CCHTTPRequest.h | 41 | #endif | COMMENT |
| LOW | …/tools/simulator/libsimulator/lib/runtime/FileServer.h | 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | COMMENT |
| LOW | …/tools/simulator/libsimulator/lib/runtime/FileServer.h | 41 | #include <WS2tcpip.h> | COMMENT |
| LOW | …ools/simulator/libsimulator/lib/runtime/FileServer.cpp | 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | COMMENT |
| LOW | …e/tools/simulator/libsimulator/lib/runtime/Protos.pb.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …e/tools/simulator/libsimulator/lib/runtime/Protos.pb.h | 41 | #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | COMMENT |
| LOW | …e/tools/simulator/libsimulator/lib/runtime/Runtime.cpp | 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | COMMENT |
| LOW | …lator/libsimulator/lib/ProjectConfig/ProjectConfig.cpp | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …mulator/libsimulator/lib/ProjectConfig/ProjectConfig.h | 41 | #define kCCRuntimeDebuggerStudio 3 | COMMENT |
| LOW | …ools/simulator/libsimulator/lib/protobuf-lite/config.h | 181 | # define _ALL_SOURCE 1 | COMMENT |
| LOW | native/tools/simulator/libsimulator/proj.win32/stdafx.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | native/tools/simulator/libsimulator/proj.win32/stdafx.h | 41 | #include <malloc.h> | COMMENT |
| LOW | …ools/simulator/frameworks/runtime-src/Classes/Game.cpp | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …orks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …orks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp | 41 | COMMENT | |
| LOW | …rameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm | 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | COMMENT |
| LOW | …s/simulator/frameworks/runtime-src/proj.win32/stdafx.h | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …s/simulator/frameworks/runtime-src/proj.win32/stdafx.h | 41 | #include <malloc.h> | COMMENT |
| LOW | …simulator/frameworks/runtime-src/proj.win32/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …simulator/frameworks/runtime-src/proj.win32/resource.h | 21 | #define ID_TEST_RESET 32782 | COMMENT |
| LOW | …tor/frameworks/runtime-src/proj.win32/SimulatorApp.cpp | 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | COMMENT |
| LOW | …tor/frameworks/runtime-src/proj.win32/SimulatorApp.cpp | 41 | #include <stdlib.h> | COMMENT |
| LOW | native/tools/bindings-generator/clang/cindex.py | 41 | Objects representing information about the input source. | COMMENT |
| LOW | native/tools/bindings-generator/clang/cindex.py | 841 | CursorKind.OBJC_PROTOCOL_REF = CursorKind(41) | COMMENT |
| LOW | native/tools/bindings-generator/clang/cindex.py | 981 | # C++'s static_cast<> expression. | COMMENT |
| LOW | native/tools/bindings-generator/clang/cindex.py | 1041 | CursorKind.OBJC_PROTOCOL_EXPR = CursorKind(140) | COMMENT |
| LOW | native/tools/bindings-generator/clang/cindex.py | 1061 | COMMENT | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 1301 | COMMENT | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 2741 | PARSE_INCOMPLETE = 2 | COMMENT |
| LOW | …generator/targets/spidermonkey/templates/layout_foot.c | 21 | \#if $jsclass.module_config[0] | COMMENT |
| LOW | …gs-generator/targets/spidermonkey/templates/register.c | 1 | #set has_constructor = False | COMMENT |
| LOW | …gs-generator/targets/spidermonkey/templates/register.c | 61 | #for m in public_fields | COMMENT |
| LOW | …gs-generator/targets/spidermonkey/templates/register.c | 81 | cls->defineFunction("${current_class.rename_destructor}", _SE(js_${current_class.underlined_class_name}_${current_cl | COMMENT |
| LOW | …rator/targets/spidermonkey/templates/ctor_overloaded.c | 41 | "is_persistent": $is_persistent, | COMMENT |
| LOW | …s-generator/targets/spidermonkey/templates/ifunction.c | 1 | ## ===== instance function implementation template | COMMENT |
| LOW | …s-generator/targets/spidermonkey/templates/ifunction.c | 21 | if (argc == ${arg_idx}) { | COMMENT |
| LOW | …s-generator/targets/spidermonkey/templates/ifunction.c | 41 | "context" : "s.thisObject()", \ | COMMENT |
| LOW | …s-generator/targets/spidermonkey/templates/ifunction.c | 101 | #if $current_class.is_getter_attribute($func_name) | COMMENT |
| LOW | …/targets/spidermonkey/templates/sfunction_overloaded.c | 1 | ## ===== static function implementation template - for overloaded functions | COMMENT |
| LOW | …ndings-generator/targets/spidermonkey/templates/ctor.c | 1 | ## ===== ctor function implementation template | COMMENT |
| LOW | …ndings-generator/targets/spidermonkey/templates/ctor.c | 21 | #if $arg.is_numeric | COMMENT |
| LOW | …ndings-generator/targets/spidermonkey/templates/ctor.c | 41 | "class_name": $class_name, | COMMENT |
| LOW | …argets/spidermonkey/templates/constructor_overloaded.c | 21 | #set arg_list = "" | COMMENT |
| LOW | …argets/spidermonkey/templates/constructor_overloaded.c | 41 | "out_value": "arg" + str(count), | COMMENT |
| LOW | …generator/targets/spidermonkey/templates/layout_foot.h | 1 | #if $macro_judgement | COMMENT |
| LOW | …/targets/spidermonkey/templates/ifunction_overloaded.c | 1 | ## ===== instance function implementation template - for overloaded functions | COMMENT |
| LOW | …/targets/spidermonkey/templates/ifunction_overloaded.c | 21 | #set arg_array = [] | COMMENT |
| LOW | …/targets/spidermonkey/templates/ifunction_overloaded.c | 101 | SE_BIND_FUNC_AS_PROP_SET(${signature_name}) | COMMENT |
| LOW | …generator/targets/spidermonkey/templates/layout_head.c | 1 | COMMENT | |
| 846 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/tools/bindings-generator/generator.py | 173 | def normalize_type_name_by_sections(sections): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 194 | def normalize_std_function_by_sections(sections): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 382 | def get_namespaced_class_name(declaration_cursor): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1334 | def generate_struct_constructor(self): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1360 | def _add_temp_override_method(self, m): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1366 | def _handle_override_method_with_same_name_as_instance_method(self): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1412 | def _previous_method_already_contains(self, previous_m, curr): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1809 | def get_class_or_rename_class(self, class_name): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1816 | def should_obtain_return_value(self, class_name, method_name): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 1931 | def in_listed_classes_exactly(self, class_name): | CODE |
| LOW | native/tools/bindings-generator/generator.py | 2089 | def get_children_array_from_iter(iter): | CODE |
| LOW⚡ | native/tools/bindings-generator/clang/cindex.py | 1806 | def get_num_template_arguments(self): | CODE |
| LOW⚡ | native/tools/bindings-generator/clang/cindex.py | 1810 | def get_template_argument_kind(self, num): | CODE |
| LOW⚡ | native/tools/bindings-generator/clang/cindex.py | 1815 | def get_template_argument_type(self, num): | CODE |
| LOW⚡ | native/tools/bindings-generator/clang/cindex.py | 1819 | def get_template_argument_value(self, num): | CODE |
| LOW⚡ | native/tools/bindings-generator/clang/cindex.py | 1823 | def get_template_argument_unsigned_value(self, num): | CODE |
| LOW | native/tools/bindings-generator/clang/cindex.py | 1450 | def is_converting_constructor(self): | CODE |
| LOW | native/tools/bindings-generator/clang/cindex.py | 1676 | def exception_specification_kind(self): | CODE |
| LOW | native/tools/bindings-generator/clang/cindex.py | 2278 | def get_num_template_arguments(self): | CODE |
| LOW | native/tools/bindings-generator/clang/cindex.py | 2281 | def get_template_argument_type(self, num): | CODE |
| LOW | native/tools/bindings-generator/clang/cindex.py | 2418 | def get_exception_specification_kind(self): | CODE |
| LOW | native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h | 1260 | You can call function vmaMakePoolAllocationsLost() to set all eligible allocations | CODE |
| LOW | native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h | 3700 | To be used with function vmaBeginDefragmentationPass(). | CODE |
| LOW | native/cocos/core/geometry/Curve.h | 376 | export function constructLegacyCurveAndConvert() { | CODE |
| LOW | tests/core/test-component-scheduler.js | 690 | function testActivateChildManually (title, childActivedByDefault) { | CODE |
| LOW | tests/core/serialization/shared/port.ts | 43 | export function calculatePortSnapshotPath (caseModulePath: string, portName: string) { | CODE |
| LOW | tests/core/components/mesh-renderer.test.ts | 127 | // function createMeshWithShapeCounts (shapesCounts: number[]): Mesh { | COMMENT |
| LOW | tests/general/global-variable-cc.test.ts | 6 | async function summarizeFilesInDirectory (directory: string) { | CODE |
| LOW | tests/animation/animaion-clip-migration-3.x.test.ts | 351 | function createClipWithEasingMethodsAndConvert ( | CODE |
| LOW | tests/animation/animaion-clip-migration-3.x.test.ts | 577 | function testTimeBezierCurveConversion (testCase: TimeBezierTestCase) { | CODE |
| LOW | tests/animation/animation-graph-asset.test.ts | 193 | function assertsEqualSubStateMachine(lhs: SubStateMachine, rhs: SubStateMachine) { | CODE |
| LOW⚡ | tests/animation/animation-graph-asset.test.ts | 208 | function assertsEqualBaseTransition(lhs: Transition, rhs: Transition) { | CODE |
| LOW⚡ | tests/animation/animation-graph-asset.test.ts | 215 | function assertsEqualAnimationTransition(lhs: AnimationTransition, rhs: AnimationTransition) { | CODE |
| LOW⚡ | tests/animation/animation-graph-asset.test.ts | 225 | function assertsEqualEmptyStateTransition(lhs: EmptyStateTransition, rhs: EmptyStateTransition) { | CODE |
| LOW | tests/animation/animation-graph-asset.test.ts | 247 | function assertsEqualUnaryCondition(lhs: UnaryCondition, rhs: UnaryCondition) { | CODE |
| LOW | tests/animation/animation-graph-asset.test.ts | 265 | function assertsEqualBinaryCondition(lhs: BinaryCondition, rhs: BinaryCondition) { | CODE |
| LOW | tests/animation/animation-graph-asset.test.ts | 272 | function assertsEqualTriggerCondition(lhs: TriggerCondition, rhs: TriggerCondition) { | CODE |
| LOW | tests/animation/animation-graph-asset.test.ts | 296 | function assertsEqualOptionalMotion(lhs: Motion | null, rhs: Motion | null) { | CODE |
| LOW | tests/animation/animation-clip.test.ts | 444 | function evaluateClipSingleFrameTraditional(clip: AnimationClip, node: Node, time: number) { | CODE |
| LOW | tests/animation/animation-clip.test.ts | 452 | function evaluateClipSingleFrameMarionette (clip: AnimationClip, node: Node, time: number) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 1087 | function createAnimationGraphForConditionTest(conditions: Condition[]) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 2741 | function expectMotionStateRecordCalls(expects: Parameters<typeof expectRecordCall>[1][]) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 4426 | function addNonAdditiveConstantLayer() { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5239 | function createAnimationGraphRunningMotion(motion: ClipMotion) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5403 | function assertivelyGetGraphVariable(graph: AnimationGraph, name: string) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5421 | function createClipMotionPositionX(duration: number, value: number, name = ''): NonNullableClipMotion { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5436 | function createClipMotionPositionXLinear(duration: number, from: number, to: number, name = ''): NonNullableClipMotion { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5508 | function calculateExpectedMotionStatusProgress (expectedStateTime: number, expectedStateDuration: number) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5524 | function expectAnimationGraphEvalStatus(graphEval: AnimationGraphEval, layerStatus: LayerStatusExpectation[]) { | CODE |
| LOW | tests/animation/newgenanim.test.ts | 5535 | function expectAnimationGraphEvalStatusAtLayer (graphEval: AnimationGraphEval, layerIndex: number, status: LayerStatusEx | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 570 | function createSelfTransitioningGraph(state: StateParams) { | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 706 | function calculateExpectedTickResult(tickDeltaTime: number) { | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 781 | function computeExpectedTransitionSequenceResult( | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 795 | function computeExpectedWeightsOfTransitionSequence( | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 814 | function generateTransitionSequence( | CODE |
| LOW | …sts/animation/new-gen-anim/transition-sequence.test.ts | 869 | function makeGraphByTransitionSequenceFixture( | CODE |
| LOW | …te-machine/condition/state-motion-time-binding.test.ts | 178 | function expectEvaluationOfStateMachineToThrows(stateMachineParams: StateMachineParams) { | CODE |
| LOW | …te-machine/condition/state-motion-time-binding.test.ts | 190 | function createConditionUsingStateMotionTimeBinding() { | CODE |
| LOW | …te-machine/condition/state-motion-time-binding.test.ts | 194 | function createAlwaysTrueCondition() { | CODE |
| LOW | …n/new-gen-anim/pose-graph/pose-graph-authoring.test.ts | 121 | function defineSubClassOfPoseGraphNode() { | CODE |
| 225 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | cocos/3d/framework/mesh-renderer.ts | 522 | && this.mesh.struct.morph.subMeshMorphs.some((subMeshMorph) => !!subMeshMorph) | CODE |
| CRITICAL | cocos/gi/light-probe/light-probe-group.ts | 187 | const changed = this.node.scene.globals.lightProbeInfo.addNode(this.node); | CODE |
| CRITICAL | cocos/gi/light-probe/light-probe-group.ts | 202 | const changed = this.node.scene.globals.lightProbeInfo.removeNode(this.node); | CODE |
| CRITICAL | cocos/terrain/terrain.ts | 787 | this._terrain.node.scene.renderScene.addModel(this._renderable._model); | CODE |
| CRITICAL | editor/inspector/components/widget.js | 941 | this.dump.value._lockFlags.values.forEach((val, index) => { | CODE |
| CRITICAL | editor/inspector/components/lod-group/lod-item.js | 145 | that.data.value.renderers.value.push(that.data.value.renderers.elementTypeData); | CODE |
| CRITICAL | editor/inspector/components/lod-group/lod-item.js | 148 | that.data.value.renderers.value.pop(); | CODE |
| CRITICAL | …itor/inspector/components/lod-group/multi-lod-group.js | 70 | that.multiObjectSizeInvalid = that.dump.value.objectSize.values.some((val) => val !== that.dump.value.object | CODE |
| CRITICAL | …itor/inspector/components/lod-group/multi-lod-group.js | 94 | that.dump.value.objectSize.values = that.dump.value.objectSize.values.fill(event.target.value); | CODE |
| CRITICAL | …itor/inspector/components/lod-group/multi-lod-group.js | 117 | that.dump.value.uuid.values.forEach((uuid) => { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cocos/scene-graph/node.ts | 831 | * @return True if this node is a child, deep child or identical to the given node. | COMMENT |
| HIGH | cocos/scene-graph/node.ts | 1343 | * @return True if a callback of the specified type is registered; false otherwise. | COMMENT |
| HIGH | cocos/core/math/utils.ts | 53 | * @return True if the numbers are approximately equal, false otherwise. | COMMENT |
| HIGH | cocos/core/math/utils.ts | 65 | * @return True if the numbers are approximately equal, false otherwise. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 754 | * @return True if it's an absolute path, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 850 | * @return True if the file have been removed successfully, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 861 | * @return True if the directory exists, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 994 | * @return True if the directory have been removed successfully, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 1066 | * @return True if the file exists, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 1158 | * @return True if the directory have been created successfully, false if not. | COMMENT |
| HIGH | cocos/native-binding/index.ts | 1187 | * @return True if the file have been renamed successfully, false if not. | COMMENT |
| HIGH | cocos/rendering/custom/layout-graph-editor.ts | 1651 | print (): string { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | @types/webGPU.d.ts | 2283 | * Note: The {@link GPUCompilationMessage#message} should follow the best practices for language | COMMENT |
| MEDIUM | @types/webGPU.d.ts | 2625 | * Note: The {@link GPUError#message} should follow the best practices for language and | COMMENT |
| MEDIUM | …r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m | 271 | // or we leverage the OpenUDID shared by other apps that have already gone through the process | COMMENT |
| MEDIUM | native/tools/bindings-generator/clang/cindex.py | 519 | """Helper class to facilitate token management. | STRING |
| LOW | native/tools/bindings-generator/clang/cindex.py | 134 | # we only support strings and we have dummy fspath to just pass them through. | STRING |
| MEDIUM | native/cocos/renderer/gfx-metal/MTLDevice.mm | 330 | // the wiggle room to leverage immediate update vs. copy-upload strategies without | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1720 | // It uses the robust orient3d() test to make the branch decisions. // | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1728 | // Symbolic perturbations (robust) | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1733 | // An embedded 2-dimensional geometric predicate (non-robust) | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1736 | // Triangle-edge intersection test (robust) | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1741 | // Triangle-triangle intersection test (robust) | COMMENT |
| MEDIUM⚡ | native/cocos/gi/light-probe/tetgen.h | 1751 | // Geometric calculations (non-robust) | COMMENT |
| MEDIUM | native/cocos/gi/light-probe/tetgen.h | 844 | // The following routines are the robust geometric predicates for orientation // | COMMENT |
| MEDIUM | native/cocos/gi/light-probe/tetgen.h | 847 | // http://www.cs.cmu.edu/~quake/robust.html. // | COMMENT |
| MEDIUM | native/cocos/gi/light-probe/predicates.cpp | 28 | /* from the Web page http://www.cs.cmu.edu/~quake/robust.html . */ | COMMENT |
| MEDIUM | cocos/animation/cross-fade.ts | 75 | if (managedStates.length === 1 && fadings.length === 1) { // Definitely not code repetition | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/tools/coding-style/tailing-spaces.py | 10 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 333 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 393 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 469 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 621 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 635 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 649 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 933 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1043 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1093 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1366 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1399 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1418 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1577 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1835 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1863 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 1891 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 2084 | CODE | |
| LOW | native/tools/bindings-generator/generator.py | 2143 | CODE | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 341 | CODE | |
| LOW | native/tools/tojs/genbindings.py | 67 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/tools/bindings-generator/generator.py | 2028 | except Exception as err: | CODE |
| LOW | native/tools/bindings-generator/generator.py | 2400 | except Exception as e: | CODE |
| LOW | native/tools/tojs/genbindings.py | 27 | except Exception: | CODE |
| LOW | native/tools/tojs/genbindings.py | 31 | except Exception: | CODE |
| LOW | native/tools/tojs/genbindings.py | 43 | except Exception: | CODE |
| MEDIUM | native/tools/tojs/genbindings.py | 174 | print ("Error: failed to generate bindings for '%s'" % (section)) | CODE |
| LOW | native/tools/tojs/genbindings.py | 197 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cocos/ui/editbox/edit-box-impl.ts | 330 | // TODO: implement editBox in PAL | COMMENT |
| LOW | cocos/video/video-player-impl-web.ts | 386 | // TODO: implement videoPlayer in PAL | COMMENT |
| LOW | cocos/web-view/web-view-impl-web.ts | 169 | // TODO: implement webView in PAL | COMMENT |
| LOW | cocos/rendering/custom/web-pipeline.ts | 1196 | // TODO: implement resolve pass | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/run_test_cases.yml | 55 | # Check if the PR has new updates | COMMENT |
| LOW | .github/workflows/run_test_cases.yml | 216 | # Check if the PR has new updates | COMMENT |
| LOW | .github/workflows/run_test_cases.yml | 384 | # Check if the PR has new updates | COMMENT |
| LOW | .github/workflows/run_test_cases.yml | 544 | # Check if the PR has new updates | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | native/tools/bindings-generator/clang/cindex.py | 205 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/cocos/renderer/gfx-vulkan/vk_mem_alloc.h | 203 | Don't forget to destroy your objects when no longer needed: | CODE |
| LOW | native/cocos/network/HttpRequest.h | 196 | * Don't forget to delete it. HttpClient/HttpResponse/HttpRequest will do nothing with this pointer. | COMMENT |
| LOW | cocos/render-scene/core/program-lib.ts | 305 | // don't forget to change location 'shaderInfo.attributes' which comes from serialization | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/tools/bindings-generator/clang/enumerations.py | 33 | __all__ = ['TokenKinds'] | CODE |
| LOW | native/tools/bindings-generator/clang/__init__.py | 22 | __all__ = ['cindex'] | STRING |
| LOW | native/tools/bindings-generator/clang/cindex.py | 4197 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | native/tools/bindings-generator/clang/cindex.py | 46 | CODE | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 46 | CODE | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 46 | CODE | |
| LOW | native/tools/bindings-generator/clang/cindex.py | 65 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | editor/inspector/assets/texture-cube.js | 135 | image.setAttribute('placeholder', key); | CODE |