Repository Analysis

Caldis/Mos

一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS

0.7 Likely human-written View on GitHub
0.7
Adjusted Score
0.7
Raw Score
100%
Time Factor
2026-05-25
Last Push
20,302
Stars
Swift
Language
83,608
Lines of Code
384
Files
48
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 48

Pattern Findings

48 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block35 hits · 35 pts
SeverityFileLineSnippet
LOWMosTests/ScrollCoreHotkeyTests.swift1//
LOWwebsite/next-env.d.ts1/// <reference types="next" />
LOWMos/Shortcut/OpenTargetPayload.swift1//
LOWMos/Shortcut/ShortcutManager.swift1//
LOWMos/Shortcut/ShortcutManager.swift21 }
LOWMos/Shortcut/ShortcutExecutor.swift661 ///
LOWMos/Extension/CGEvent+Extensions.swift1//
LOWMos/InputEvent/InputProcessor.swift1//
LOWMos/InputEvent/InputEvent.swift1//
LOWMos/Utils/Utils.swift1//
LOWMos/Logi/Divert/DivertPlanner.swift1//
LOWMos/Logi/Core/LogiCIDDirectory.swift1//
LOWMos/Logi/Core/SessionActivityStatus.swift1//
LOWMos/Logi/Core/LogiReceiverCatalog.swift1//
LOWMos/Logi/Core/LogiSessionManager.swift1//
LOWMos/Logi/Debug/LogiSelfTestRunner.swift1//
LOWMos/Components/Toast/ToastManager.swift1//
LOWMos/Components/Toast/Toast.swift1//
LOWMos/Components/Toast/Toast.swift21/// Toast.show("当前设备不支持此功能", style: .warning)
LOWMos/Keys/KeyRecorder.swift1//
LOWMos/Windows/MonitorWindow/Logger.swift41 unacceleratedPointerMovementX: \(event.getDoubleValueField(.eventUnacceleratedPointerMovementX))
LOW…s/PreferencesWindow/PreferencesTabViewController.swift1//
LOW…dows/PreferencesWindow/ButtonsView/RecordedEvent.swift1//
LOW…rencesWindow/ButtonsView/OpenTargetConfigPopover.swift821}
LOW…ferencesWindow/ButtonsView/ActionDisplayRenderer.swift1//
LOW…Window/ButtonsView/ActivityPopoverViewController.swift1//
LOW…referencesWindow/ButtonsView/ButtonTableCellView.swift701// MARK: - NSMenuDelegate
LOW…erpowers/plans/2026-03-22-toast-component-evolution.md981
LOW…erpowers/plans/2026-03-22-toast-component-evolution.md1001/// ```swift
LOW…erpowers/plans/2026-03-22-toast-component-evolution.md1021 /// 红色强调, 用于错误
LOW…/superpowers/plans/2026-03-21-logitech-cid-registry.md41```swift
LOW…perpowers/plans/2026-03-16-logitech-hid-integration.md61// 统一输入事件 - 抽象 CGEventTap 和 HID++ 两种事件源
LOW…s/specs/2026-04-25-logi-module-consolidation-design.md161 // not the live class. External code never holds a session reference.
LOW…s/specs/2026-04-25-logi-module-consolidation-design.md321### 4.4 LogiExternalBridge
LOWscripts/qa/lint-logi-boundary.sh1#!/usr/bin/env bash
Verbosity Indicators8 hits · 14 pts
SeverityFileLineSnippet
LOWtools/hidpp/divert-debug.swift48// Step 1: Discover REPROG
LOWtools/hidpp/divert-debug.swift55// Step 2: Get control count
LOWtools/hidpp/divert-debug.swift61// Step 3: Enumerate divertable controls
LOWtools/hidpp/divert-debug.swift76// Step 4: TEST A - 顺序 divert (等待每个 ACK)
LOWtools/hidpp/divert-debug.swift84// Step 5: 验证 divert 状态 (GetControlReporting, function 2)
LOWtools/hidpp/divert-debug.swift97// Step 6: 捕获按键 (10 秒)
LOWtools/hidpp/divert-debug.swift125// Step 7: Undivert
LOWMos/Logi/LogiCenter.swift11 // Step 3: registry added; Step 4: bridge filled in)
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippet
LOWwebsite/app/page.tsx36function HomepageStructuredSummary() {
LOW…e/app/components/EasingPlayground/EasingPlayground.tsx17function generateDurationTransition(duration: number) {
LOWwebsite/app/i18n/context.tsx57function mapBrowserLanguageToSupported(langRaw: string): Language | null {
LOWwebsite/app/i18n/context.tsx79function defaultLanguageFromBrowser(): Language {
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/release/create_gh_draft.sh28# Check if release already exists