Repository Analysis

localsend/localsend

An open-source cross-platform alternative to AirDrop

0.3 Likely human-written View on GitHub
0.3
Adjusted Score
0.3
Raw Score
100%
Time Factor
2026-04-30
Last Push
82,410
Stars
Dart
Language
172,573
Lines of Code
670
Files
50
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 48

Pattern Findings

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

Over-Commented Block46 hits · 46 pts
SeverityFileLineSnippet
LOWcore/src/http/dto_v2.rs21}
LOWcore/src/http/dto_v2.rs101///
LOWcore/src/http/dto_v2.rs121 /// Ignored in HTTPS mode (certificate is used instead).
LOWcore/src/http/dto_v2.rs161
LOWcore/src/http/dto_v2.rs181/// Response from GET /api/localsend/v2/info.
LOWcore/src/http/client/v2.rs41 .use_rustls_tls()
LOWcore/src/http/client/v2.rs101 ///
LOWcore/src/http/client/v2.rs181 /// Uploads a file to the receiver.
LOWcore/src/http/client/v2.rs321 /// # Arguments
LOWcore/src/webrtc/webrtc.rs41 /// HASH_METHOD.HASH.SIGN_METHOD.SIGN
LOWapp/test/mocks.mocks.dart21// ignore_for_file: type=lint
LOWapp/linux/flutter/generated_plugin_registrant.h1//
LOWapp/lib/util/native/file_saver.dart21///
LOWapp/lib/rust/api/http.freezed.dart41}
LOWapp/lib/rust/api/http.freezed.dart141}
LOWapp/lib/rust/api/http.freezed.dart161return json(_that.field0);case RsHttpClientError_Io():
LOWapp/lib/rust/api/webrtc.freezed.dart41}
LOWapp/lib/rust/api/webrtc.freezed.dart121return sending(_that);case RTCStatus_Finished() when finished != null:
LOWapp/lib/rust/api/webrtc.freezed.dart521
LOWapp/lib/rust/api/webrtc.freezed.dart581return answer(_that);case WsServerMessage_Error():
LOWapp/lib/rust/api/webrtc.freezed.dart661/// A variant of `when` that fallback to returning `null`
LOWapp/lib/provider/network/server/server_provider.dart241// - we cannot request client certificates while ignoring errors
LOWapp/lib/provider/network/server/server_provider.dart261// });
LOWapp/lib/provider/network/webrtc/webrtc_receiver.dart141
LOWapp/lib/provider/network/webrtc/webrtc_receiver.dart161 // errorMessage: null,
LOWapp/lib/gen/strings_en.g.dart1///
LOWapp/lib/gen/strings.g.dart861/// Translation happens during initialization of the widget (call of t).
LOWapp/lib/model/state/settings_state.mapper.dart161 #multicastGroup: _f$multicastGroup,
LOW…b/model/state/server/receive_session_state.mapper.dart101 #sessionId: _f$sessionId,
LOWapp/lib/pages/tabs/settings_tab_vm.mapper.dart181
LOWapp/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWapp/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWapp/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOWapp/windows/runner/winrt_ext.cpp1#include "winrt_ext.h"
LOWapp/windows/flutter/generated_plugin_registrant.h1//
LOW…rust_builder/cargokit/build_tool/analysis_options.yaml1# This is copied from Cargokit (which is the official way to use it currently)
LOW…/rust_builder/cargokit/build_tool/lib/src/options.dart21class SourceSpanException implements Exception {
LOWcommon/lib/constants.dart1/// The protocol version.
LOWcommon/lib/constants.dart21/// and multicast port.
LOWcommon/lib/model/device.mapper.dart421 static const Field<Device, bool> _f$download = Field('download', _$download);
LOWcommon/lib/src/isolate/child/sync_provider.mapper.dart61 #securityContext: _f$securityContext,
LOWscripts/compile_android_apk.sh1# This apk script is written in a way to conform with "Reproducible Builds" by F-Droid
LOWscripts/appimage/AppImageBuilder_x86_64.yml41 exclude:
LOWscripts/appimage/AppImageBuilder_x86_64.yml61# image: appimagecrafters/tests-env:centos-7
LOWscripts/appimage/AppImageBuilder_arm_64.yml41 exclude:
LOWscripts/appimage/AppImageBuilder_arm_64.yml61# image: appimagecrafters/tests-env:centos-7
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWapp/lib/gen/strings.g.dart873/// Step 1:
LOWapp/lib/gen/strings.g.dart879/// Step 2:
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM…rust_builder/cargokit/build_tool/analysis_options.yaml12# If you want a smaller set of lints you can change this to specify
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMapp/macos/ShareExtension/Utilities.swift108 print("Error opening the application: \(error.localizedDescription)")