Repository Analysis

iina/iina

The modern video player for macOS.

2.4 Likely human-written View on GitHub
2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-05-30
Last Push
45,037
Stars
Swift
Language
84,814
Lines of Code
416
Files
185
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 2MEDIUM 1LOW 182

Pattern Findings

185 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block179 hits · 179 pts
SeverityFileLineSnippet
LOWiina/write_info_plist_header.sh1#!/bin/sh
LOWiina/JavascriptAPIEvent.swift1//
LOWiina/PlayerCore.swift1//
LOWiina/PlayerCore.swift161 /// - Is the Touch Bar configured to show app controls?
LOWiina/PlayerCore.swift261 /// - Precondition: The A loop point must have already been established using the A-B loop command otherwise the att
LOWiina/PlayerCore.swift661 /// This method is intended to only be used during application termination. Once shutdown has been initiated player me
LOWiina/PlayerCore.swift681
LOWiina/PlayerCore.swift721 NSApp.terminate(nil)
LOWiina/PlayerCore.swift901 /// - In the `idle` state
LOWiina/PlayerCore.swift1001 // It must be running when stepping to avoid slowdowns caused by mpv waiting for IINA to call
LOWiina/PlayerCore.swift1141 fileURL: saveToFile ? lastScreenshotURL : nil)
LOWiina/PlayerCore.swift1521 postNotification(.iinaPlaylistChanged)
LOWiina/PlayerCore.swift1721 /// Remove a video filter given as a `MPVFilter` object.
LOWiina/PlayerCore.swift1801 ///
LOWiina/PlayerCore.swift1821 /// - Returns: `true` if the filter was successfully removed, `false` otherwise.
LOWiina/PlayerCore.swift1841 /// [--audio-device](https://mpv.io/manual/stable/#options-audio-device) mpv option. The documentation for
LOWiina/PlayerCore.swift2561 // MARK: - Sync with UI in MainWindow
LOWiina/FFmpegController.m1//
LOWiina/FFmpegController.m481 return NULL;
LOWiina/MainWindowController.swift681
LOWiina/MainWindowController.swift1561 /// - Important: The following unexpected sequence of calls from AppKit has been encountered:
LOWiina/MainWindowController.swift2101 // style mask causes the AppKit method NSWindow.setTitleWithRepresentedFilename to trigger the
LOWiina/MainWindowController.swift2161 "chapterCount": player.info.chapters.count.description
LOWiina/MainWindowController.swift2561 /// Normally the OSC's thumbnail preview is shown above the time preview. This is the preferred location. However the
LOWiina/HistoryController.swift1//
LOWiina/VideoTime.swift21 /// Return this time as a string with the given precision.
LOWiina/PlaySlider.swift1//
LOWiina/PlaySlider.swift61 /// The [NSSlider](https://developer.apple.com/documentation/appkit/nsslider) method is being overridden
LOWiina/OpenSubClient.swift1//
LOWiina/OpenSubClient.swift21/// Thus this is more than a switch from a XMLRPC API to a REST API, it also involves a migration from `opensubtitles.or
LOWiina/OpenSubClient.swift41/// request header is hardcoded to IINA's key
LOWiina/OpenSubClient.swift61 case contentMissing(statusCode: Int?)
LOWiina/OpenSubClient.swift101
LOWiina/OpenSubClient.swift141 private var rateLimiter = RateLimiter()
LOWiina/OpenSubClient.swift161 ///
LOWiina/OpenSubClient.swift261 }
LOWiina/OpenSubClient.swift341 }
LOWiina/OpenSubClient.swift461 /// Form the base URL to append a REST API method to.
LOWiina/OpenSubClient.swift601 /// REST API call rate limiter.
LOWiina/OpenSubClient.swift621 /// credentials if user fail to authenticate.
LOWiina/OpenSubClient.swift761 /// [Subtitle](https://opensubtitles.stoplight.io/docs/opensubtitles-api/573f76acc1493-subtitle) model.
LOWiina/OpenSubClient.swift801#endif
LOWiina/MemoryUsage.swift1//
LOWiina/VolumeSliderCell.swift21 /// [NSSliderCell.drawBar](https://developer.apple.com/documentation/appkit/nsslidercell/drawbar(inside:flipped:))
LOWiina/KeyCodeHelper.swift101 // 0x37: ("Command", nil),
LOWiina/HardwareDecodeCapabilities.swift1//
LOWiina/MiniPlaySlider.swift1//
LOWiina/OSDMessage.swift1//
LOWiina/AccessibilityPreferences.swift1//
LOWiina/AccessibilityPreferences.swift21 ///
LOWiina/FFmpegLogger.swift1//
LOWiina/LanguageTokenField.swift1//
LOWiina/Logger.swift1//
LOWiina/Logger.swift241 /// the evaluation of the expressions and construction of the string can be delayed until it is known that the mes
LOWiina/DisplayController.swift1//
LOWiina/VolumeSlider.swift1//
LOWiina/Sysctl.swift1//
LOWiina/SleepPreventer.swift1//
LOWiina/SleepPreventer.swift21/// [#3478](https://github.com/iina/iina/issues/3478) to see if they explain the failure.
LOWiina/PrefSubViewController.swift221 }
119 more matches not shown…
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHdeps/include/libavformat/avformat.h1435#define AVFMT_FLAG_AUTO_BSF 0x200000 ///< Add bitstream filters as requested by the muxer
HIGHdeps/include/libavformat/avformat.h1435#define AVFMT_FLAG_AUTO_BSF 0x200000 ///< Add bitstream filters as requested by the muxer
AI Slop Vocabulary2 hits · 2 pts
SeverityFileLineSnippet
MEDIUMiina/PlayerCore.swift2568 /// that call for an app to avoid needless energy use. [Minimizing Timer Usage](https://developer.apple.com/library/ar
LOWdeps/include/libavformat/avformat.h1417#define AVFMT_FLAG_NOFILLIN 0x0010 ///< Do not infer any values from other values, just return what is stored in the
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWiina/write_info_plist_header.sh30# Check if git is on the path.
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWother/l10n_xib_to_strings.rb3# Usage: