Repository Analysis

exelban/stats

macOS system monitor in your menu bar

2.7 Likely human-written View on GitHub
2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-05-29
Last Push
39,215
Stars
Swift
Language
44,426
Lines of Code
196
Files
93
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 24LOW 69

Pattern Findings

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

Over-Commented Block60 hits · 60 pts
SeverityFileLineSnippet
LOWKit/helpers.swift1//
LOWKit/lldb/lldb.m1//
LOWKit/lldb/lldb.h1//
LOWKit/lldb/include/env.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/env.h21#include "export.h"
LOWKit/lldb/include/env.h61 // system. Sophisticated users may wish to provide their own Env
LOWKit/lldb/include/env.h81 // status. Implementations should return a NotFound status when the file does
LOWKit/lldb/include/env.h101 // returns OK. On failure stores nullptr in *result and returns
LOWKit/lldb/include/env.h121 // Delete the named file.
LOWKit/lldb/include/env.h141 // Create the specified directory.
LOWKit/lldb/include/env.h161 // A future release will remove this method.
LOWKit/lldb/include/env.h181 // with a failure. I.e., this call does not wait for existing locks
LOWKit/lldb/include/env.h261 // Read up to "n" bytes from the file starting at "offset".
LOWKit/lldb/include/env.h401 private:
LOWKit/lldb/include/export.h1// Copyright (c) 2017 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/export.h21#define LEVELDB_EXPORT __attribute__((visibility("default")))
LOWKit/lldb/include/status.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/db.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/db.h61 virtual ~DB();
LOWKit/lldb/include/db.h81 // corresponding value in *value and return OK.
LOWKit/lldb/include/db.h101 // snapshot is no longer needed.
LOWKit/lldb/include/db.h121 // of the sstables that make up the db contents.
LOWKit/lldb/include/db.h141 // be invoked by users who understand the underlying implementation.
LOWKit/lldb/include/slice.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/cache.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/cache.h41 // Destroys all existing entries by calling the "deleter"
LOWKit/lldb/include/cache.h61 //
LOWKit/lldb/include/cache.h81 virtual void Erase(const Slice& key) = 0;
LOWKit/lldb/include/write_batch.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/options.h41 // Comparator used to define the order of keys in the table.
LOWKit/lldb/include/options.h61
LOWKit/lldb/include/options.h81 // Also, a larger write buffer will result in a longer recovery time
LOWKit/lldb/include/options.h101 size_t block_size = 4 * 1024;
LOWKit/lldb/include/options.h121 // Default: kSnappyCompression, which gives lightweight but fast
LOWKit/lldb/include/options.h161 // (which must belong to the DB that is being read and which must
LOWKit/lldb/include/dumpfile.h1// Copyright (c) 2014 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/filter_policy.h1// Copyright (c) 2012 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/filter_policy.h41 // Warning: do not change the initial contents of *dst. Instead,
LOWKit/lldb/include/filter_policy.h61// Note: if you are using a custom comparator that ignores some parts
LOWKit/lldb/include/comparator.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/comparator.h21 public:
LOWKit/lldb/include/comparator.h41
LOWKit/lldb/include/table.h21class TableCache;
LOWKit/lldb/include/table_builder.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/table_builder.h41 // Change the options used by this builder. Note: only some of the
LOWKit/lldb/include/table_builder.h61 Status status() const;
LOWKit/lldb/include/iterator.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
LOWKit/lldb/include/iterator.h41 // Position at the last key in the source. The iterator is
LOWKit/lldb/include/iterator.h61 // the returned slice is valid only until the next modification of
LOWKit/Supporting Files/Kit.h1//
LOWKit/scripts/SMJobBlessUtil.py1#! /usr/bin/python3
LOWKit/scripts/SMJobBlessUtil.py21# original Apple software (the "Apple Software"), to use,
LOWKit/scripts/SMJobBlessUtil.py41# COMBINATION WITH YOUR PRODUCTS.
LOWModules/Sensors/bridge.h1//
LOWModules/Sensors/readers.swift381
LOWModules/Sensors/reader.m1//
LOWModules/GPU/bridge.h1//
LOWModules/Net/popup.swift1//
LOWModules/CPU/bridge.h1//
LOWModules/Disk/header.h1//
Excessive Try-Catch Wrapping26 hits · 52 pts
SeverityFileLineSnippet
MEDIUMKit/helpers.swift771 print("Error IOServiceGetMatchingServices(): " + (String(cString: mach_error_string(result), encoding: String.En
MEDIUMKit/helpers.swift807 print("Error IORegistryEntryGetName(): " + (String(cString: mach_error_string(result), encoding: String.Encoding
MEDIUMKit/helpers.swift1099 print("Error while installing the Helper: \(blessError.localizedDescription)")
MEDIUMKit/plugins/SystemKit.swift364 print("Error find AppleARMPE: " + (String(cString: mach_error_string(result), encoding: String.Encoding.asci
MEDIUMKit/plugins/SystemKit.swift492 print("Error find AppleARMIODevice: " + (String(cString: mach_error_string(result), encoding: String.Encodin
MEDIUMKit/plugins/SystemKit.swift595 print("Error parsing diskutil output: \(error)")
MEDIUMKit/plugins/SystemStats.swift931 print("Error sending MQTT CONNECT: \(error)")
MEDIUMKit/plugins/SystemStats.swift945 print("Error sending MQTT PINGREQ: \(error)")
MEDIUMKit/plugins/SystemStats.swift963 print("Error publishing MQTT message: \(error)")
MEDIUMKit/plugins/SystemStats.swift974 print("Error subscribing to MQTT topic: \(error)")
LOWKit/scripts/i18n.py11except Exception:
LOWKit/scripts/i18n.py169 except Exception:
LOWKit/scripts/i18n.py373 except Exception:
MEDIUMSMC/smc.swift173 print("Error IOServiceGetMatchingServices(): " + (String(cString: mach_error_string(result), encoding: Strin
MEDIUMSMC/smc.swift180 print("Error IOIteratorNext(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.asc
MEDIUMSMC/smc.swift187 print("Error IOServiceOpen(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.asci
MEDIUMSMC/smc.swift209 print("Error read(\(key)): " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii)
MEDIUMSMC/smc.swift280 print("Error read(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "un
MEDIUMSMC/smc.swift416 print("Error read fan mode: " + (String(cString: mach_error_string(result), encoding: String.Encoding.as
MEDIUMSMC/smc.swift429 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ??
MEDIUMSMC/smc.swift464 print("Error read fan mode: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii)
MEDIUMSMC/smc.swift477 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unk
MEDIUMSMC/smc.swift493 print("Error read fan mode: " + (String(cString: mach_error_string(modeResult), encoding: String.Encoding.as
MEDIUMSMC/smc.swift506 print("Error read fan value: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii
MEDIUMSMC/smc.swift530 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unk
MEDIUMSMC/smc.swift542 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unk
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippet
LOWKit/scripts/SMJobBlessUtil.py131
LOWKit/scripts/changelog.py43
LOWKit/scripts/i18n.py73
LOWKit/scripts/i18n.py100
LOWKit/scripts/i18n.py332
LOWKit/scripts/i18n.py108
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMKit/scripts/SMJobBlessUtil.py233 # Create a map from the tool name (not path) to its designated requirement.