Repository Analysis

dcloudio/uni-app

A cross-platform framework using Vue.js

1.6 Likely human-written View on GitHub
1.6
Adjusted Score
1.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
41,532
Stars
Objective-C
Language
447,682
Lines of Code
2346
Files
493
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 16HIGH 3MEDIUM 7LOW 467

Pattern Findings

493 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block440 hits · 426 pts
SeverityFileLineSnippet
LOWdocs/api/theme-change.md701 // #ifdef APP
LOW…s/Frameworks/TencentLBS.framework/Headers/TencentLBS.h1//
LOW…SwiftFramework.framework/Headers/ToastSwiftFramework.h1//
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h1#if 0
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h21
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h61#if !defined(SWIFT_CLASS_PROPERTY)
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h81#else
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h101#else
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h121#endif
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h141#if !defined(OBJC_DESIGNATED_INITIALIZER)
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h161# endif
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h181#if __has_feature(attribute_diagnose_if_objc)
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h201#pragma clang diagnostic ignored "-Wnullability"
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h221#define TOASTSWIFTFRAMEWORK_SWIFT_H
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h241
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h261typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h281# define SWIFT_CLASS_PROPERTY(...)
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h301# define SWIFT_NOESCAPE __attribute__((noescape))
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h321# define SWIFT_CLASS_EXTRA
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h341# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h361# define OBJC_DESIGNATED_INITIALIZER
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h381#endif
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h401#endif
LOW…ramework.framework/Headers/ToastSwiftFramework-Swift.h421# undef any
LOW…pp-ios/lottie-ios/Public/DotLottie/DotLottieFile.swift1//
LOW…ttie-ios/Public/DotLottie/DotLottieConfiguration.swift1//
LOW…lottie-ios/Public/DotLottie/DotLottieFileHelpers.swift1//
LOW…os/Public/DotLottie/Cache/DotLottieCacheProvider.swift1//
LOW…lottie-ios/Public/DotLottie/Cache/DotLottieCache.swift1//
LOW…lottie-ios/Public/DotLottie/Cache/DotLottieCache.swift61// MARK: Sendable
LOW…tie-ios/Public/Configuration/LottieConfiguration.swift21 }
LOW…e-ios/Public/Configuration/RenderingEngineOption.swift1// Created by Cal Stephens on 7/14/23.
LOW…e-ios/Public/Configuration/RenderingEngineOption.swift21
LOW…tie-ios/Public/Configuration/ReducedMotionOption.swift1// Created by Cal Stephens on 7/14/23.
LOW…lottie-ios/Public/Configuration/DecodingStrategy.swift1// Created by Cal Stephens on 7/14/23.
LOW…ottie-ios/Public/macOS/BundleImageProvider.macOS.swift1//
LOW…tie-ios/Public/macOS/FilepathImageProvider.macOS.swift1//
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift281 }
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift501 /// The underlying CALayer created to display the content.
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift561 /// synchronously (when loading a `LottieAnimation` from a .json file on disk)
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift821
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift841 /// ```
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift961 /// Markers are encoded into animation JSON. By using markers a designer can mark
LOW…lottie-ios/Public/Animation/LottieAnimationLayer.swift1361 switch loopMode {
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift1//
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift21 /// The completion block is stored and called when the animation completes.
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift221 /// Applies the given `LottiePlaybackMode` to this layer.
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift261 {
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift301 ///
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift321 /// If a marker doesn't have a duration value, it will play with a duration of 0
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift381 }
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift401 }
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift421 /// ```
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift601 /// except as a workaround to a bug in the main thread rendering engine.
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift641 public func reloadImages() {
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift661 /// - Parameter keypath: The keypath used to search for properties.
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift701 /// Computes and returns a list of all child keypaths in the current animation.
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift741 /// Converts a CGRect from the LottieAnimationView's coordinate space into the
LOW…/lottie-ios/Public/Animation/LottieAnimationView.swift781 /// playback points for a developer to use without having to worry about keeping
LOW…Public/Animation/LottieAnimationViewInitializers.swift1//
380 more matches not shown…
Hallucination Indicators16 hits · 240 pts
SeverityFileLineSnippet
CRITICALdocs/uts/runtime-known-issues.md2611:27:17.144 at io.dcloud.uniapp.runtime.CSSStyleDeclaration.putAll(r8-map-id-46ae994bfc64fb01690a5f42986f2c98bdb324bdb
CRITICALdocs/uts/runtime-known-issues.md3311:27:17.145 at io.dcloud.uniapp.dom.UniNativeDocumentImpl.createElement(r8-map-id-46ae994bfc64fb01690a5f42986f2c98bdb3
CRITICALdocs/uts/runtime-known-issues.md3411:27:17.145 at io.dcloud.uniapp.dom.UniNativeDocumentImpl.createElement(r8-map-id-46ae994bfc64fb01690a5f42986f2c98bdb3
CRITICALdocs/uts/runtime-known-issues.md3511:27:17.145 at io.dcloud.uniapp.vue.IndexKt.mountElement(index.kt:7044)
CRITICALdocs/uts/runtime-known-issues.md3611:27:17.145 at io.dcloud.uniapp.vue.IndexKt.processElement(index.kt:6654)
CRITICALdocs/uts/runtime-known-issues.md3711:27:17.145 at io.dcloud.uniapp.vue.IndexKt.patch(index.kt:6585)
CRITICALdocs/uts/runtime-known-issues.md3811:27:17.145 at io.dcloud.uniapp.vue.IndexKt.mountChildren(index.kt:7093)
CRITICALdocs/uts/runtime-known-issues.md4011:27:17.145 at io.dcloud.uniapp.vue.IndexKt.mountElement(index.kt:7054)
CRITICALdocs/uts/runtime-known-issues.md4111:27:17.146 at io.dcloud.uniapp.vue.IndexKt.processElement(index.kt:6654)
CRITICALdocs/uts/runtime-known-issues.md4211:27:17.146 at io.dcloud.uniapp.vue.IndexKt.patch(index.kt:6585)
CRITICALdocs/uts/runtime-known-issues.md4311:27:17.146 at io.dcloud.uniapp.vue.IndexKt.mountChildren(index.kt:7093)
CRITICALdocs/uts/runtime-known-issues.md4511:27:17.146 at io.dcloud.uniapp.vue.IndexKt.mountElement(index.kt:7054)
CRITICALdocs/uts/runtime-known-issues.md4611:27:17.146 at io.dcloud.uniapp.vue.IndexKt.processElement(index.kt:6654)
CRITICALdocs/uts/runtime-known-issues.md4711:27:17.146 at io.dcloud.uniapp.vue.IndexKt.patch(index.kt:6585)
CRITICALdocs/uts/runtime-known-issues.md56io.dcloud.uniapp.vue.IndexKt.mountChildren(index.kt:7093)
CRITICALdocs/uts/runtime-known-issues.md58io.dcloud.uniapp.vue.IndexKt.mountElement(index.kt:7054)
Decorative Section Separators6 hits · 24 pts
SeverityFileLineSnippet
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift18 // ┌──────────────────────────────────┐
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift20 // └──────────────────────────────────┘
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift32 // ┌────────────────────┬───────►
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift34 // └────────────────────┴───────►
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift36 // ┌──────────────────────────────────┐
MEDIUM…ation/Animations/CAAnimation+TimingConfiguration.swift38 // └──────────────────────────────────┘
Hyper-Verbose Identifiers22 hits · 24 pts
SeverityFileLineSnippet
LOWdocs/css/transition.md700 function changeBorderAndBackgroundColor() {
LOWdocs/plugin/uts-component-vue.md584export function createNativeButtonContext(id : string, ins : ComponentPublicInstance | null = null) : INativeButtonConte
LOWdocs/plugin/uts-component-vue.md820export function createNativeButtonContext(id : string, ins : ComponentPublicInstance | null = null) : INativeButtonConte
LOWdocs/plugin/uts-component-vue.md916export function createNativeButtonContext(id : string, ins : ComponentPublicInstance | null = null) : INativeButtonConte
LOWdocs/uts/uts_diff_ts.md1043class DataProcessor {
LOWdocs/uts/uts_diff_ts.md1077class DataProcessor {
LOWdocs/uts/uts_diff_ts.md1081class DataProcessor<T> {
LOWdocs/uts/uts_diff_ts.md1085class DataProcessor {
LOWdocs/component/text.md1086function getBoundingClientRectForTest() : DOMRect | null {
LOWdocs/api/dom/unielement.md324 function getBoundingClientRectAsyncChild(){
LOWdocs/api/dom/unielement.md991 function getBoundingClientRectAsync() {
LOWdocs/api/dom/unielement.md1798 function takeCustomComponentSnapshot() {
LOWdocs/api/dom/unielement.md2460 function backgroundAndWidthProperty(e : UniPointerEvent) {
LOWdocs/api/dom/unielement.md2470 function backgroundAndMarginLeftProperty(e : UniPointerEvent) {
LOWdocs/api/dom/unielement.md2489 function backgroundAndTransformProperty(e : UniPointerEvent) {
LOWdocs/api/dom/unielement.md2526 function borderColorMarginLeftProperty(e : UniPointerEvent) {
LOWexamples/hello-uvue/jest-setup.js81function writeTestCaseToSnapshotFile (testCaseName, snapshotFilePath) {
LOWsrc/jest-setup.js27function writeTestCaseToSnapshotFile(testCaseName, snapshotFilePath) {
LOWsrc/uni_modules/uni-virtualPayment/readme.md452async function verifyTransactionWithApple(transactionId, environment = 'production') {
LOW…common/uniCloud/cloudfunctions/uni-map-co/index.obj.js500function getRandomCoordinateWithinRadius(longitude, latitude, radiusInKm) {
LOW…t-async/element-get-bounding-client-rect-async.test.js19async function invokeGetBoundingClientRect(page, methodName, dataName) {
LOWsrc/pages/API/download-file/download-file.test.js14 async function waitCallbackTriggredOrTimeout(){
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippet
HIGH…vate/CoreAnimation/Extensions/Keyframes+combined.swift0failed to cast untyped keyframe values to expected type. this is an internal error.
HIGH…vate/CoreAnimation/Extensions/Keyframes+combined.swift0failed to cast untyped keyframe values to expected type. this is an internal error.
HIGH…CoreAnimation/Extensions/Keyframes+timeRemapping.swift0failed to cast untyped keyframe values to expected type. this is an internal error.
Overly Generic Function Names5 hits · 5 pts
SeverityFileLineSnippet
LOWsrc/pages/component/progress/progress.test.js5function getData(key = '') {
LOWsrc/pages/component/picker/picker.test.js19 function getData(key = '') {
LOWsrc/pages/component/label/label.test.js26 function getData(key = '') {
LOWsrc/pages/API/loading/loading.test.js19 function getData (key = '') {
LOWsrc/pages/API/storage/storage.test.js43 function getData (key = '') {
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippet
MEDIUM…_modules/uni-camera/utssdk/app-ios/CameraManager.swift826 print("Error locking configuration")