AI Slop Code Risk Monitor

cocos/cocos-engine

SlopCodeMonitor badge for cocos/cocos-engine Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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.

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
9.9K
Stars
C++
Language
1.0M
Lines of Code
4.5K
Files
1.3K
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 6.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1239 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

Are imports declared and package/API names verified? 27 finding(s).

Agent Over-Engineering Ratio 1.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 296 finding(s).

PR Review Velocity Impact 7.0/100 · LOW

Which changes need focused human review? 1277 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 10HIGH 13MEDIUM 16LOW 1238

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block906 hits · 870 pts
SeverityFileLineSnippetContext
LOWnative/CMakeLists.txt1741##### lightsCOMMENT
LOW…ive/tools/simulator/libsimulator/lib/SimulatorExport.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…ive/tools/simulator/libsimulator/lib/SimulatorExport.h41 #endifCOMMENT
LOW…tive/tools/simulator/libsimulator/lib/CustomAppEvent.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…tive/tools/simulator/libsimulator/lib/PlayerProtocol.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m1//COMMENT
LOW…r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m41 // to selectively compile this file as non-ARC, do as follows:COMMENT
LOW…r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m121// _openUDID = [[UIDevice currentDevice] uniqueIdentifier];COMMENT
LOW…lator/libsimulator/lib/platform/win32/SimulatorWin.cpp21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…bsimulator/lib/platform/win32/PlayerTaskServiceWin.cpp61 }COMMENT
LOW…ols/simulator/libsimulator/lib/network/CCHTTPRequest.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…ols/simulator/libsimulator/lib/network/CCHTTPRequest.h41#endifCOMMENT
LOW…/tools/simulator/libsimulator/lib/runtime/FileServer.h21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOW…/tools/simulator/libsimulator/lib/runtime/FileServer.h41#include <WS2tcpip.h>COMMENT
LOW…ools/simulator/libsimulator/lib/runtime/FileServer.cpp21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOW…e/tools/simulator/libsimulator/lib/runtime/Protos.pb.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…e/tools/simulator/libsimulator/lib/runtime/Protos.pb.h41#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSIONCOMMENT
LOW…e/tools/simulator/libsimulator/lib/runtime/Runtime.cpp21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOW…lator/libsimulator/lib/ProjectConfig/ProjectConfig.cpp21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…mulator/libsimulator/lib/ProjectConfig/ProjectConfig.h41#define kCCRuntimeDebuggerStudio 3COMMENT
LOW…ools/simulator/libsimulator/lib/protobuf-lite/config.h181# define _ALL_SOURCE 1COMMENT
LOWnative/tools/simulator/libsimulator/proj.win32/stdafx.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOWnative/tools/simulator/libsimulator/proj.win32/stdafx.h41#include <malloc.h>COMMENT
LOW…ools/simulator/frameworks/runtime-src/Classes/Game.cpp21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…orks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…orks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp41COMMENT
LOW…rameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERCOMMENT
LOW…s/simulator/frameworks/runtime-src/proj.win32/stdafx.h21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…s/simulator/frameworks/runtime-src/proj.win32/stdafx.h41#include <malloc.h>COMMENT
LOW…simulator/frameworks/runtime-src/proj.win32/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…simulator/frameworks/runtime-src/proj.win32/resource.h21#define ID_TEST_RESET 32782COMMENT
LOW…tor/frameworks/runtime-src/proj.win32/SimulatorApp.cpp21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOW…tor/frameworks/runtime-src/proj.win32/SimulatorApp.cpp41#include <stdlib.h>COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py41 Objects representing information about the input source.COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py841CursorKind.OBJC_PROTOCOL_REF = CursorKind(41)COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py981# C++'s static_cast<> expression.COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py1041CursorKind.OBJC_PROTOCOL_EXPR = CursorKind(140)COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py1061COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py1301COMMENT
LOWnative/tools/bindings-generator/clang/cindex.py2741 PARSE_INCOMPLETE = 2COMMENT
LOW…generator/targets/spidermonkey/templates/layout_foot.c21 \#if $jsclass.module_config[0]COMMENT
LOW…gs-generator/targets/spidermonkey/templates/register.c1#set has_constructor = FalseCOMMENT
LOW…gs-generator/targets/spidermonkey/templates/register.c61#for m in public_fieldsCOMMENT
LOW…gs-generator/targets/spidermonkey/templates/register.c81 cls->defineFunction("${current_class.rename_destructor}", _SE(js_${current_class.underlined_class_name}_${current_clCOMMENT
LOW…rator/targets/spidermonkey/templates/ctor_overloaded.c41 "is_persistent": $is_persistent,COMMENT
LOW…s-generator/targets/spidermonkey/templates/ifunction.c1## ===== instance function implementation templateCOMMENT
LOW…s-generator/targets/spidermonkey/templates/ifunction.c21 if (argc == ${arg_idx}) {COMMENT
LOW…s-generator/targets/spidermonkey/templates/ifunction.c41 "context" : "s.thisObject()", \COMMENT
LOW…s-generator/targets/spidermonkey/templates/ifunction.c101#if $current_class.is_getter_attribute($func_name)COMMENT
LOW…/targets/spidermonkey/templates/sfunction_overloaded.c1## ===== static function implementation template - for overloaded functionsCOMMENT
LOW…ndings-generator/targets/spidermonkey/templates/ctor.c1## ===== ctor function implementation templateCOMMENT
LOW…ndings-generator/targets/spidermonkey/templates/ctor.c21 #if $arg.is_numericCOMMENT
LOW…ndings-generator/targets/spidermonkey/templates/ctor.c41 "class_name": $class_name,COMMENT
LOW…argets/spidermonkey/templates/constructor_overloaded.c21 #set arg_list = ""COMMENT
LOW…argets/spidermonkey/templates/constructor_overloaded.c41 "out_value": "arg" + str(count),COMMENT
LOW…generator/targets/spidermonkey/templates/layout_foot.h1#if $macro_judgementCOMMENT
LOW…/targets/spidermonkey/templates/ifunction_overloaded.c1## ===== instance function implementation template - for overloaded functionsCOMMENT
LOW…/targets/spidermonkey/templates/ifunction_overloaded.c21 #set arg_array = []COMMENT
LOW…/targets/spidermonkey/templates/ifunction_overloaded.c101SE_BIND_FUNC_AS_PROP_SET(${signature_name})COMMENT
LOW…generator/targets/spidermonkey/templates/layout_head.c1COMMENT
846 more matches not shown…
Hyper-Verbose Identifiers285 hits · 301 pts
SeverityFileLineSnippetContext
LOWnative/tools/bindings-generator/generator.py173def normalize_type_name_by_sections(sections):CODE
LOWnative/tools/bindings-generator/generator.py194def normalize_std_function_by_sections(sections):CODE
LOWnative/tools/bindings-generator/generator.py382def get_namespaced_class_name(declaration_cursor):CODE
LOWnative/tools/bindings-generator/generator.py1334 def generate_struct_constructor(self):CODE
LOWnative/tools/bindings-generator/generator.py1360 def _add_temp_override_method(self, m):CODE
LOWnative/tools/bindings-generator/generator.py1366 def _handle_override_method_with_same_name_as_instance_method(self):CODE
LOWnative/tools/bindings-generator/generator.py1412 def _previous_method_already_contains(self, previous_m, curr):CODE
LOWnative/tools/bindings-generator/generator.py1809 def get_class_or_rename_class(self, class_name):CODE
LOWnative/tools/bindings-generator/generator.py1816 def should_obtain_return_value(self, class_name, method_name):CODE
LOWnative/tools/bindings-generator/generator.py1931 def in_listed_classes_exactly(self, class_name):CODE
LOWnative/tools/bindings-generator/generator.py2089 def get_children_array_from_iter(iter):CODE
LOW⚡native/tools/bindings-generator/clang/cindex.py1806 def get_num_template_arguments(self):CODE
LOW⚡native/tools/bindings-generator/clang/cindex.py1810 def get_template_argument_kind(self, num):CODE
LOW⚡native/tools/bindings-generator/clang/cindex.py1815 def get_template_argument_type(self, num):CODE
LOW⚡native/tools/bindings-generator/clang/cindex.py1819 def get_template_argument_value(self, num):CODE
LOW⚡native/tools/bindings-generator/clang/cindex.py1823 def get_template_argument_unsigned_value(self, num):CODE
LOWnative/tools/bindings-generator/clang/cindex.py1450 def is_converting_constructor(self):CODE
LOWnative/tools/bindings-generator/clang/cindex.py1676 def exception_specification_kind(self):CODE
LOWnative/tools/bindings-generator/clang/cindex.py2278 def get_num_template_arguments(self):CODE
LOWnative/tools/bindings-generator/clang/cindex.py2281 def get_template_argument_type(self, num):CODE
LOWnative/tools/bindings-generator/clang/cindex.py2418 def get_exception_specification_kind(self):CODE
LOWnative/cocos/renderer/gfx-vulkan/vk_mem_alloc.h1260You can call function vmaMakePoolAllocationsLost() to set all eligible allocationsCODE
LOWnative/cocos/renderer/gfx-vulkan/vk_mem_alloc.h3700To be used with function vmaBeginDefragmentationPass().CODE
LOWnative/cocos/core/geometry/Curve.h376export function constructLegacyCurveAndConvert() {CODE
LOWtests/core/test-component-scheduler.js690 function testActivateChildManually (title, childActivedByDefault) {CODE
LOWtests/core/serialization/shared/port.ts43export function calculatePortSnapshotPath (caseModulePath: string, portName: string) {CODE
LOWtests/core/components/mesh-renderer.test.ts127 // function createMeshWithShapeCounts (shapesCounts: number[]): Mesh {COMMENT
LOWtests/general/global-variable-cc.test.ts6async function summarizeFilesInDirectory (directory: string) {CODE
LOWtests/animation/animaion-clip-migration-3.x.test.ts351 function createClipWithEasingMethodsAndConvert (CODE
LOWtests/animation/animaion-clip-migration-3.x.test.ts577 function testTimeBezierCurveConversion (testCase: TimeBezierTestCase) {CODE
LOWtests/animation/animation-graph-asset.test.ts193 function assertsEqualSubStateMachine(lhs: SubStateMachine, rhs: SubStateMachine) {CODE
LOW⚡tests/animation/animation-graph-asset.test.ts208 function assertsEqualBaseTransition(lhs: Transition, rhs: Transition) {CODE
LOW⚡tests/animation/animation-graph-asset.test.ts215 function assertsEqualAnimationTransition(lhs: AnimationTransition, rhs: AnimationTransition) {CODE
LOW⚡tests/animation/animation-graph-asset.test.ts225 function assertsEqualEmptyStateTransition(lhs: EmptyStateTransition, rhs: EmptyStateTransition) {CODE
LOWtests/animation/animation-graph-asset.test.ts247 function assertsEqualUnaryCondition(lhs: UnaryCondition, rhs: UnaryCondition) {CODE
LOWtests/animation/animation-graph-asset.test.ts265 function assertsEqualBinaryCondition(lhs: BinaryCondition, rhs: BinaryCondition) {CODE
LOWtests/animation/animation-graph-asset.test.ts272 function assertsEqualTriggerCondition(lhs: TriggerCondition, rhs: TriggerCondition) {CODE
LOWtests/animation/animation-graph-asset.test.ts296 function assertsEqualOptionalMotion(lhs: Motion | null, rhs: Motion | null) {CODE
LOWtests/animation/animation-clip.test.ts444function evaluateClipSingleFrameTraditional(clip: AnimationClip, node: Node, time: number) {CODE
LOWtests/animation/animation-clip.test.ts452function evaluateClipSingleFrameMarionette (clip: AnimationClip, node: Node, time: number) {CODE
LOWtests/animation/newgenanim.test.ts1087 function createAnimationGraphForConditionTest(conditions: Condition[]) {CODE
LOWtests/animation/newgenanim.test.ts2741 function expectMotionStateRecordCalls(expects: Parameters<typeof expectRecordCall>[1][]) {CODE
LOWtests/animation/newgenanim.test.ts4426 function addNonAdditiveConstantLayer() {CODE
LOWtests/animation/newgenanim.test.ts5239 function createAnimationGraphRunningMotion(motion: ClipMotion) {CODE
LOWtests/animation/newgenanim.test.ts5403function assertivelyGetGraphVariable(graph: AnimationGraph, name: string) {CODE
LOWtests/animation/newgenanim.test.ts5421function createClipMotionPositionX(duration: number, value: number, name = ''): NonNullableClipMotion {CODE
LOWtests/animation/newgenanim.test.ts5436function createClipMotionPositionXLinear(duration: number, from: number, to: number, name = ''): NonNullableClipMotion {CODE
LOWtests/animation/newgenanim.test.ts5508function calculateExpectedMotionStatusProgress (expectedStateTime: number, expectedStateDuration: number) {CODE
LOWtests/animation/newgenanim.test.ts5524function expectAnimationGraphEvalStatus(graphEval: AnimationGraphEval, layerStatus: LayerStatusExpectation[]) {CODE
LOWtests/animation/newgenanim.test.ts5535function expectAnimationGraphEvalStatusAtLayer (graphEval: AnimationGraphEval, layerIndex: number, status: LayerStatusExCODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts570 function createSelfTransitioningGraph(state: StateParams) {CODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts706 function calculateExpectedTickResult(tickDeltaTime: number) {CODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts781function computeExpectedTransitionSequenceResult(CODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts795function computeExpectedWeightsOfTransitionSequence(CODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts814function generateTransitionSequence(CODE
LOW…sts/animation/new-gen-anim/transition-sequence.test.ts869function makeGraphByTransitionSequenceFixture(CODE
LOW…te-machine/condition/state-motion-time-binding.test.ts178 function expectEvaluationOfStateMachineToThrows(stateMachineParams: StateMachineParams) {CODE
LOW…te-machine/condition/state-motion-time-binding.test.ts190 function createConditionUsingStateMotionTimeBinding() {CODE
LOW…te-machine/condition/state-motion-time-binding.test.ts194 function createAlwaysTrueCondition() {CODE
LOW…n/new-gen-anim/pose-graph/pose-graph-authoring.test.ts121 function defineSubClassOfPoseGraphNode() {CODE
225 more matches not shown…
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALcocos/3d/framework/mesh-renderer.ts522 && this.mesh.struct.morph.subMeshMorphs.some((subMeshMorph) => !!subMeshMorph)CODE
CRITICALcocos/gi/light-probe/light-probe-group.ts187 const changed = this.node.scene.globals.lightProbeInfo.addNode(this.node);CODE
CRITICALcocos/gi/light-probe/light-probe-group.ts202 const changed = this.node.scene.globals.lightProbeInfo.removeNode(this.node);CODE
CRITICALcocos/terrain/terrain.ts787 this._terrain.node.scene.renderScene.addModel(this._renderable._model);CODE
CRITICALeditor/inspector/components/widget.js941 this.dump.value._lockFlags.values.forEach((val, index) => {CODE
CRITICALeditor/inspector/components/lod-group/lod-item.js145 that.data.value.renderers.value.push(that.data.value.renderers.elementTypeData);CODE
CRITICALeditor/inspector/components/lod-group/lod-item.js148 that.data.value.renderers.value.pop();CODE
CRITICAL…itor/inspector/components/lod-group/multi-lod-group.js70 that.multiObjectSizeInvalid = that.dump.value.objectSize.values.some((val) => val !== that.dump.value.objectCODE
CRITICAL…itor/inspector/components/lod-group/multi-lod-group.js94 that.dump.value.objectSize.values = that.dump.value.objectSize.values.fill(event.target.value);CODE
CRITICAL…itor/inspector/components/lod-group/multi-lod-group.js117 that.dump.value.uuid.values.forEach((uuid) => {CODE
Cross-Language Confusion (JS/TS)12 hits · 88 pts
SeverityFileLineSnippetContext
HIGHcocos/scene-graph/node.ts831 * @return True if this node is a child, deep child or identical to the given node.COMMENT
HIGHcocos/scene-graph/node.ts1343 * @return True if a callback of the specified type is registered; false otherwise.COMMENT
HIGHcocos/core/math/utils.ts53 * @return True if the numbers are approximately equal, false otherwise.COMMENT
HIGHcocos/core/math/utils.ts65 * @return True if the numbers are approximately equal, false otherwise.COMMENT
HIGHcocos/native-binding/index.ts754 * @return True if it's an absolute path, false if not.COMMENT
HIGHcocos/native-binding/index.ts850 * @return True if the file have been removed successfully, false if not.COMMENT
HIGHcocos/native-binding/index.ts861 * @return True if the directory exists, false if not.COMMENT
HIGHcocos/native-binding/index.ts994 * @return True if the directory have been removed successfully, false if not.COMMENT
HIGHcocos/native-binding/index.ts1066 * @return True if the file exists, false if not.COMMENT
HIGHcocos/native-binding/index.ts1158 * @return True if the directory have been created successfully, false if not.COMMENT
HIGHcocos/native-binding/index.ts1187 * @return True if the file have been renamed successfully, false if not.COMMENT
HIGHcocos/rendering/custom/layout-graph-editor.ts1651 print (): string {CODE
AI Slop Vocabulary16 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUM@types/webGPU.d.ts2283 * Note: The {@link GPUCompilationMessage#message} should follow the best practices for languageCOMMENT
MEDIUM@types/webGPU.d.ts2625 * Note: The {@link GPUError#message} should follow the best practices for language andCOMMENT
MEDIUM…r/libsimulator/lib/platform/mac/openudid/OpenUDIDMac.m271 // or we leverage the OpenUDID shared by other apps that have already gone through the processCOMMENT
MEDIUMnative/tools/bindings-generator/clang/cindex.py519 """Helper class to facilitate token management.STRING
LOWnative/tools/bindings-generator/clang/cindex.py134# we only support strings and we have dummy fspath to just pass them through.STRING
MEDIUMnative/cocos/renderer/gfx-metal/MTLDevice.mm330 // the wiggle room to leverage immediate update vs. copy-upload strategies withoutCOMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1720// It uses the robust orient3d() test to make the branch decisions. //COMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1728 // Symbolic perturbations (robust)COMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1733 // An embedded 2-dimensional geometric predicate (non-robust)COMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1736 // Triangle-edge intersection test (robust)COMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1741 // Triangle-triangle intersection test (robust)COMMENT
MEDIUM⚡native/cocos/gi/light-probe/tetgen.h1751 // Geometric calculations (non-robust)COMMENT
MEDIUMnative/cocos/gi/light-probe/tetgen.h844// The following routines are the robust geometric predicates for orientation //COMMENT
MEDIUMnative/cocos/gi/light-probe/tetgen.h847// http://www.cs.cmu.edu/~quake/robust.html. //COMMENT
MEDIUMnative/cocos/gi/light-probe/predicates.cpp28/* from the Web page http://www.cs.cmu.edu/~quake/robust.html . */COMMENT
MEDIUMcocos/animation/cross-fade.ts75 if (managedStates.length === 1 && fadings.length === 1) { // Definitely not code repetitionCODE
Deep Nesting21 hits · 15 pts
SeverityFileLineSnippetContext
LOWnative/tools/coding-style/tailing-spaces.py10CODE
LOWnative/tools/bindings-generator/generator.py333CODE
LOWnative/tools/bindings-generator/generator.py393CODE
LOWnative/tools/bindings-generator/generator.py469CODE
LOWnative/tools/bindings-generator/generator.py621CODE
LOWnative/tools/bindings-generator/generator.py635CODE
LOWnative/tools/bindings-generator/generator.py649CODE
LOWnative/tools/bindings-generator/generator.py933CODE
LOWnative/tools/bindings-generator/generator.py1043CODE
LOWnative/tools/bindings-generator/generator.py1093CODE
LOWnative/tools/bindings-generator/generator.py1366CODE
LOWnative/tools/bindings-generator/generator.py1399CODE
LOWnative/tools/bindings-generator/generator.py1418CODE
LOWnative/tools/bindings-generator/generator.py1577CODE
LOWnative/tools/bindings-generator/generator.py1835CODE
LOWnative/tools/bindings-generator/generator.py1863CODE
LOWnative/tools/bindings-generator/generator.py1891CODE
LOWnative/tools/bindings-generator/generator.py2084CODE
LOWnative/tools/bindings-generator/generator.py2143CODE
LOWnative/tools/bindings-generator/clang/cindex.py341CODE
LOWnative/tools/tojs/genbindings.py67CODE
Excessive Try-Catch Wrapping7 hits · 8 pts
SeverityFileLineSnippetContext
LOWnative/tools/bindings-generator/generator.py2028 except Exception as err:CODE
LOWnative/tools/bindings-generator/generator.py2400 except Exception as e:CODE
LOWnative/tools/tojs/genbindings.py27 except Exception:CODE
LOWnative/tools/tojs/genbindings.py31 except Exception:CODE
LOWnative/tools/tojs/genbindings.py43 except Exception:CODE
MEDIUMnative/tools/tojs/genbindings.py174 print ("Error: failed to generate bindings for '%s'" % (section))CODE
LOWnative/tools/tojs/genbindings.py197 except Exception as e:CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcocos/ui/editbox/edit-box-impl.ts330 // TODO: implement editBox in PALCOMMENT
LOWcocos/video/video-player-impl-web.ts386 // TODO: implement videoPlayer in PALCOMMENT
LOWcocos/web-view/web-view-impl-web.ts169 // TODO: implement webView in PALCOMMENT
LOWcocos/rendering/custom/web-pipeline.ts1196 // TODO: implement resolve passCOMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOW.github/workflows/run_test_cases.yml55 # Check if the PR has new updatesCOMMENT
LOW.github/workflows/run_test_cases.yml216 # Check if the PR has new updatesCOMMENT
LOW.github/workflows/run_test_cases.yml384 # Check if the PR has new updatesCOMMENT
LOW.github/workflows/run_test_cases.yml544 # Check if the PR has new updatesCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHnative/tools/bindings-generator/clang/cindex.py205except:CODE
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWnative/cocos/renderer/gfx-vulkan/vk_mem_alloc.h203Don't forget to destroy your objects when no longer needed:CODE
LOWnative/cocos/network/HttpRequest.h196 * Don't forget to delete it. HttpClient/HttpResponse/HttpRequest will do nothing with this pointer.COMMENT
LOWcocos/render-scene/core/program-lib.ts305 // don't forget to change location 'shaderInfo.attributes' which comes from serializationCOMMENT
Modern Structural Boilerplate3 hits · 2 pts
SeverityFileLineSnippetContext
LOWnative/tools/bindings-generator/clang/enumerations.py33__all__ = ['TokenKinds']CODE
LOWnative/tools/bindings-generator/clang/__init__.py22__all__ = ['cindex']STRING
LOWnative/tools/bindings-generator/clang/cindex.py4197__all__ = [CODE
Unused Imports4 hits · 2 pts
SeverityFileLineSnippetContext
LOWnative/tools/bindings-generator/clang/cindex.py46CODE
LOWnative/tools/bindings-generator/clang/cindex.py46CODE
LOWnative/tools/bindings-generator/clang/cindex.py46CODE
LOWnative/tools/bindings-generator/clang/cindex.py65CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWeditor/inspector/assets/texture-cube.js135 image.setAttribute('placeholder', key);CODE