Your favorite self-hostable alternative to Google Timeline (Google Location History)
This report presents the forensic synthetic code analysis of Freika/dawarich, a Ruby project with 9,720 GitHub stars. SynthScan v2.0 examined 223,865 lines of code across 1715 source files, recording 421 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 2.8 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 421 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/queries/stats/daily_distance_query.rb | 68 | def convert_to_daily_distances(distance_by_day_map) | CODE |
| LOW | app/models/stat.rb | 163 | def calculate_daily_distances(monthly_points) | CODE |
| LOW | app/models/trip.rb | 78 | def select_dominant_orientation(photos) | CODE |
| LOW | app/models/user.rb | 201 | def generate_subscription_token(plan: nil, interval: nil, variant: nil) | CODE |
| LOW | app/models/concerns/calculateable.rb | 58 | def convert_distance_for_storage(calculated_distance_meters) | CODE |
| LOW | app/models/concerns/distanceable.rb | 16 | def calculate_distance_for_array_geocoder(points, unit = :km) | CODE |
| LOW | app/models/concerns/distanceable.rb | 102 | def calculate_distance_for_relation(unit) | CODE |
| LOW | app/models/concerns/distanceable.rb | 130 | def calculate_distance_for_array(points, unit = :km) | CODE |
| LOW | app/models/concerns/distanceable.rb | 142 | def calculate_batch_distances(points) | CODE |
| LOW | app/models/concerns/nearable.rb | 54 | def extract_coordinates_and_options(*args) | CODE |
| LOW | app/models/concerns/archivable.rb | 78 | def handle_archive_fetch_error(error) | CODE |
| LOW | app/serializers/stats_serializer.rb | 68 | def countries_and_cities_from_stats(stats) | CODE |
| LOW⚡ | app/serializers/points/gpx_serializer.rb | 58 | def build_track_point_attributes(point) | CODE |
| LOW⚡ | app/serializers/points/gpx_serializer.rb | 67 | def enhance_gpx_with_speed_and_course(gpx_xml) | CODE |
| LOW⚡ | app/serializers/points/gpx_serializer.rb | 76 | def enhance_trackpoints_with_speed_and_course(xml_string) | CODE |
| LOW⚡ | app/serializers/points/gpx_serializer.rb | 85 | def enhance_single_trackpoint(trkpt_xml, point) | CODE |
| LOW | app/javascript/maps/polylines.js | 620 | export function reestablishPolylineEventHandlers( | CODE |
| LOW | app/javascript/maps/tracks.js | 544 | export function handleIncrementalTrackUpdate( | CODE |
| LOW | app/javascript/maps/helpers.js | 35 | export function minutesToDaysHoursMinutes(minutes) { | CODE |
| LOW | app/javascript/maps/map_controls.js | 92 | export function createVisitsDrawerControl(onClickCallback, userTheme = "dark") { | CODE |
| LOW | app/javascript/maps/map_controls.js | 116 | export function createAreaSelectionControl( | CODE |
| LOW | app/javascript/maps/map_controls.js | 277 | export function setAddVisitButtonInactive(button, userTheme = "dark") { | CODE |
| LOW | app/javascript/maps/map_controls.js | 289 | export function setCreatePlaceButtonActive(button) { | CODE |
| LOW | app/javascript/maps/map_controls.js | 304 | export function setCreatePlaceButtonInactive(button, userTheme = "dark") { | CODE |
| LOW | …vascript/controllers/maps/maplibre/map_data_manager.js | 17 | export class MapDataManager { | CODE |
| LOW | app/jobs/tracks/realtime_generation_job.rb | 44 | def enqueue_reverse_geocoding(user) | CODE |
| LOW | app/jobs/tracks/daily_generation_job.rb | 36 | def process_user_daily_tracks(user) | CODE |
| LOW | app/jobs/tracks/time_chunk_processor_job.rb | 96 | def create_track_from_points_array(points) | CODE |
| LOW | app/jobs/imports/destroy_job.rb | 47 | def broadcast_deletion_complete(import) | CODE |
| LOW | app/jobs/users/import_data_job.rb | 65 | def create_import_failed_notification(user, error) | CODE |
| LOW | app/jobs/users/recalculate_data_job.rb | 82 | def create_success_notification(years_to_process) | CODE |
| LOW | app/jobs/users/recalculate_data_job.rb | 93 | def create_failure_notification(error) | CODE |
| LOW | app/jobs/users/digests/monthly/calculating_job.rb | 19 | def create_digest_failed_notification(user_id, error) | CODE |
| LOW | app/jobs/users/digests/yearly/calculating_job.rb | 17 | def recalculate_monthly_stats(user_id, year) | CODE |
| LOW | app/jobs/users/digests/yearly/calculating_job.rb | 25 | def create_digest_failed_notification(user_id, error, period_label) | CODE |
| LOW | app/jobs/points/anomaly_backfill_user_job.rb | 34 | def run_filter_in_monthly_chunks(user) | CODE |
| LOW | app/jobs/stats/calculating_job.rb | 14 | def create_stats_update_failed_notification(user_id, error) | CODE |
| LOW | app/controllers/visits_controller.rb | 238 | def build_bulk_update_streams(status, count) | CODE |
| LOW | app/controllers/visits_controller.rb | 346 | def update_visit_name_from_place(place_id) | CODE |
| LOW | app/controllers/visits_controller.rb | 438 | def build_bulk_destroy_streams(count) | CODE |
| LOW | app/controllers/visits_controller.rb | 506 | def message_for_missing_visits(ids) | CODE |
| LOW | app/controllers/visits_controller.rb | 525 | def bulk_destroy_success_message(count) | CODE |
| LOW | app/controllers/imports_controller.rb | 122 | def create_import_from_signed_id(signed_id) | CODE |
| LOW | app/controllers/imports_controller.rb | 136 | def generate_unique_import_name(original_name) | CODE |
| LOW | app/controllers/settings/users_controller.rb | 158 | def create_import_from_signed_archive_id(signed_id) | CODE |
| LOW | app/controllers/settings/users_controller.rb | 176 | def generate_unique_import_name(original_name) | CODE |
| LOW | app/controllers/users/registrations_controller.rb | 112 | def after_inactive_sign_up_path_for(resource) | CODE |
| LOW | app/controllers/users/registrations_controller.rb | 185 | def accept_invitation_for_user(user) | CODE |
| LOW | app/controllers/api/v1/photos_controller.rb | 31 | def handle_thumbnail_response(upstream) | CODE |
| LOW | app/controllers/api/v1/subscriptions_controller.rb | 127 | def advance_last_seen_watermark(decoded) | CODE |
| LOW | app/controllers/api/v1/imports_controller.rb | 61 | def generate_unique_import_name(original_name) | CODE |
| LOW | app/controllers/api/v1/auth/sessions_controller.rb | 36 | def constant_time_authenticate(user, password) | CODE |
| LOW | app/controllers/concerns/share_links/managable.rb | 123 | def broadcast_live_share_ended(share) | CODE |
| LOW⚡ | app/helpers/insights_helper.rb | 20 | def monthly_digest_active_days(digest) | CODE |
| LOW⚡ | app/helpers/insights_helper.rb | 44 | def weekly_pattern_chart_data(digest, user) | CODE |
| LOW | app/helpers/insights_helper.rb | 59 | def top_locations_from_digest(digest, limit = 3) | CODE |
| LOW | app/helpers/insights_helper.rb | 107 | def first_time_visits_from_digest(digest) | CODE |
| LOW | app/helpers/stats_helper.rb | 8 | def countries_and_cities_stat_for_year(year, stats) | CODE |
| LOW | app/helpers/stats_helper.rb | 22 | def countries_and_cities_stat_for_month(stat) | CODE |
| LOW | app/helpers/stats_helper.rb | 74 | def collect_countries_and_cities(year_stats) | CODE |
| 123 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | app/models/concerns/nearable.rb | 20 | # Create a point from the given coordinates | COMMENT |
| MEDIUM | app/services/google_maps/records_storage_importer.rb | 3 | # This class is used to import Google's Records.json file | COMMENT |
| MEDIUM | app/services/google_maps/records_importer.rb | 3 | # This class is used to import Google's Records.json file | COMMENT |
| MEDIUM | app/services/tasks/imports/google_records.rb | 3 | # This class is named based on Google Takeout's Records.json file | COMMENT |
| MEDIUM | app/services/tracks/track_builder.rb | 5 | # This module provides the core functionality for converting arrays of GPS points into | COMMENT |
| MEDIUM | app/services/tracks/segmentation.rb | 5 | # This module provides the core algorithm for determining where one track ends | COMMENT |
| MEDIUM | app/services/tracks/session_manager.rb | 16 | # Create a new session | COMMENT |
| MEDIUM | config/initializers/permissions_policy.rb | 5 | # Define an application-wide HTTP permissions policy. For further | COMMENT |
| MEDIUM | config/initializers/content_security_policy.rb | 5 | # Define an application-wide content security policy. | COMMENT |
| MEDIUM | spec/integration/family_privacy_spec.rb | 147 | # Create an expired request 30 minutes ago | COMMENT |
| MEDIUM | spec/integration/family_privacy_spec.rb | 163 | # Create a pending request from A to B | COMMENT |
| MEDIUM | spec/models/concerns/point_validation_spec.rb | 6 | # Create a test class that includes the concern | COMMENT |
| MEDIUM | spec/models/concerns/user_family_spec.rb | 124 | # Create a point from 13 months ago | COMMENT |
| MEDIUM | spec/requests/authentication_spec.rb | 286 | # Create an expired invitation | COMMENT |
| MEDIUM | spec/support/geocoder_stubs.rb | 6 | # Create a generic stub for all Geocoder requests | COMMENT |
| MEDIUM | spec/jobs/application_job_spec.rb | 7 | # Create a concrete job class to test the helper | COMMENT |
| MEDIUM | spec/jobs/trips/calculate_countries_job_spec.rb | 20 | points # Create the points | CODE |
| MEDIUM | spec/jobs/concerns/user_timezone_spec.rb | 6 | # Create a dummy class that includes the concern | COMMENT |
| MEDIUM | …ec/services/google_maps/phone_takeout_importer_spec.rb | 12 | # This file contains 3 duplicates | COMMENT |
| MEDIUM | …ec/services/google_maps/phone_takeout_importer_spec.rb | 32 | # This file contains 4 duplicates | COMMENT |
| MEDIUM | …/services/google_maps/records_storage_importer_spec.rb | 148 | # Create a mock that will return a successful result | COMMENT |
| MEDIUM | …/services/google_maps/records_storage_importer_spec.rb | 153 | # Create the downloader mock before it gets used | COMMENT |
| MEDIUM | …/services/google_maps/records_storage_importer_spec.rb | 169 | # Create the downloader mock before it gets used - expect only one call from the importer | COMMENT |
| MEDIUM | spec/services/cache/clean_spec.rb | 93 | # Create a user that will be found during the cleaning process | COMMENT |
| MEDIUM | spec/services/cache/clean_spec.rb | 101 | # Create a new user while iterating - this should not cause errors | COMMENT |
| MEDIUM | spec/services/visits/find_within_bounding_box_spec.rb | 9 | # Define a bounding box for testing | COMMENT |
| MEDIUM | spec/services/visits/find_within_bounding_box_spec.rb | 75 | # Create a visit for another user inside the bounding box | COMMENT |
| MEDIUM | spec/services/tracks/track_builder_spec.rb | 6 | # Create a test class that includes the concern for testing | COMMENT |
| MEDIUM | spec/services/tracks/parallel_generator_spec.rb | 214 | # Create a proper mock and stub user.safe_settings to return it | COMMENT |
| MEDIUM | spec/services/tracks/incremental_generator_spec.rb | 107 | # Create an existing track that ended recently | COMMENT |
| MEDIUM | spec/services/overland/params_spec.rb | 7 | # This file contains one valid point and one invalid point w/out coordinates | COMMENT |
| MEDIUM | spec/services/imports/secure_file_downloader_spec.rb | 10 | # Create a mock that mimics ActiveStorage::Attached::One | COMMENT |
| MEDIUM | spec/services/users/export_import_integration_spec.rb | 139 | # Create a user with specific places and visits | COMMENT |
| MEDIUM | spec/services/users/export_import_integration_spec.rb | 152 | # Create a visit without a place | COMMENT |
| MEDIUM | spec/services/users/export_import_integration_spec.rb | 435 | # Create a v1 format archive with data.json | COMMENT |
| MEDIUM | spec/services/users/import_data/imports_spec.rb | 114 | # Create an existing import with same name, source, and created_at | COMMENT |
| MEDIUM | spec/services/users/import_data/trips_spec.rb | 70 | # Create an existing trip with same name and times | COMMENT |
| MEDIUM | spec/services/users/import_data/stats_spec.rb | 78 | # Create an existing stat with same year and month | COMMENT |
| MEDIUM | spec/services/users/import_data/points_spec.rb | 29 | country # Create the country | CODE |
| MEDIUM | …c/services/users/import_data/raw_data_archives_spec.rb | 79 | # Create a gzip test file | COMMENT |
| MEDIUM | spec/services/users/import_data/exports_spec.rb | 107 | # Create the file in the files directory | COMMENT |
| MEDIUM | spec/services/users/import_data/notifications_spec.rb | 70 | # Create an existing notification with same title, content, and created_at | COMMENT |
| MEDIUM | spec/services/users/import_data/areas_spec.rb | 70 | # Create an existing area with same name and coordinates | COMMENT |
| MEDIUM | spec/services/users/digests/calculate_year_spec.rb | 135 | # Create the monthly stats | COMMENT |
| MEDIUM | db/schema.rb | 1 | # This file is auto-generated from the current state of the database. Instead | COMMENT |
| MEDIUM | db/schema.rb | 5 | # This file is the source Rails uses to define your schema when running `bin/rails | COMMENT |
| MEDIUM | .circleci/config.yml | 50 | # Create the queue database manually if it doesn't exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/models/concerns/distance_convertible.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/javascript/channels/imports_channel.js | 1 | // Imports channel subscriptions are handled by: | COMMENT |
| LOW | app/javascript/channels/index.js | 1 | // Import all the channels to be used by Action Cable | COMMENT |
| LOW | app/javascript/channels/points_channel.js | 1 | // Points channel subscriptions are handled by: | COMMENT |
| LOW | app/javascript/channels/notifications_channel.js | 1 | // Notifications channel subscriptions are handled by: | COMMENT |
| LOW | app/jobs/tracks/realtime_generation_job.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/jobs/tracks/daily_generation_job.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/assets/config/manifest.js | 1 | //= link rails-ujs.js | COMMENT |
| LOW | app/helpers/places_helper.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/responsive_qr_svg.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/auth/internal_token_secret.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/auth/mobile_handoff_secret.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/transportation_modes/movement_analyzer.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/transportation_modes/mode_classifier.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/transportation_modes/mode_classifier.rb | 41 | high_speed_boundary: 130, # Very high speeds: train or autobahn | COMMENT |
| LOW | app/services/transportation_modes/detector.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/tracks/track_builder.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/tracks/track_builder.rb | 21 | # - Elevation gain/loss: Cumulative ascent and descent in meters | COMMENT |
| LOW | app/services/tracks/track_builder.rb | 41 | # # Track now exists with calculated statistics | COMMENT |
| LOW | app/services/tracks/merger.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/tracks/segmentation.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/tracks/segmentation.rb | 21 | # effectively disables distance-based splitting, so we mirror that behavior on the | COMMENT |
| LOW | app/services/tracks/incremental_generator.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/tracks/realtime_debouncer.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/users/import_data.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/users/export_data.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/users/export_data.rb | 21 | # ├── raw_data_archives.jsonl # One archive record per line | COMMENT |
| LOW | app/services/users/export_data.rb | 41 | # "dawarich_version": "1.0.0", | COMMENT |
| LOW | app/services/users/import_data/v2_handler.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/users/import_data/v2_handler.rb | 21 | # ├── points/ # Points split by year/month | COMMENT |
| LOW | app/services/users/import_data/v1_handler.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/timeline/month_summary.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/services/concerns/url_validatable.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/storage.yml | 21 | response_checksum_validation: when_required | COMMENT |
| LOW | config/storage.yml | 41 | # mirror: | COMMENT |
| LOW | config/puma.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/puma.rb | 21 | # Specifies the `environment` that Puma will run in. | COMMENT |
| LOW | config/environments/production.rb | 41 | # Specifies the header that your server uses for sending files. | COMMENT |
| LOW | config/environments/staging.rb | 41 | # Specifies the header that your server uses for sending files. | COMMENT |
| LOW | config/environments/staging.rb | 81 | config.action_mailer.perform_caching = false | COMMENT |
| LOW | config/environments/test.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/initializers/new_framework_defaults_8_0.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/initializers/new_framework_defaults_8_0.rb | 21 | COMMENT | |
| LOW | config/initializers/rswag_api.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/initializers/rswag_ui.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/initializers/devise.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | config/initializers/devise.rb | 21 | config.mailer_sender = ENV['SMTP_FROM'] | COMMENT |
| LOW | config/initializers/devise.rb | 41 | # You can also supply a hash where the value is a boolean determining whether | COMMENT |
| LOW | config/initializers/devise.rb | 61 | COMMENT | |
| LOW | config/initializers/devise.rb | 81 | # The realm used in Http Basic Authentication. 'Application' by default. | COMMENT |
| LOW | config/initializers/devise.rb | 101 | COMMENT | |
| LOW | config/initializers/devise.rb | 121 | COMMENT | |
| LOW | config/initializers/devise.rb | 141 | COMMENT | |
| LOW | config/initializers/devise.rb | 161 | # config.remember_for = 2.weeks | COMMENT |
| LOW | config/initializers/devise.rb | 181 | COMMENT | |
| LOW | config/initializers/devise.rb | 201 | config.unlock_strategy = :both | COMMENT |
| LOW | config/initializers/devise.rb | 221 | config.reset_password_within = 6.hours | COMMENT |
| LOW | config/initializers/devise.rb | 241 | # config.scoped_views = false | COMMENT |
| LOW | config/initializers/devise.rb | 301 | else | COMMENT |
| LOW | config/initializers/devise.rb | 321 | # config.router_name = :my_engine | COMMENT |
| 22 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | config/initializers/posthog.rb | 9 | # ============================================================================ | COMMENT |
| MEDIUM | config/initializers/posthog.rb | 11 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 52 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 54 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 60 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 62 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 69 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 71 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 108 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 110 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 119 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | config/initializers/posthog.rb | 121 | # ============================================================================ | COMMENT |
| MEDIUM | docs/How_to_extract_geodata_from_photos.md | 17 | #------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | docs/How_to_extract_geodata_from_photos.md | 35 | #------------------------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/swagger/api/v1/auth/apple_controller_spec.rb | 44 | let(:payload) { { id_token: 'fake_token' } } | CODE |
| LOW | spec/swagger/api/v1/auth/google_controller_spec.rb | 44 | let(:payload) { { id_token: 'fake_token' } } | CODE |
| LOW | spec/queries/stats_query_spec.rb | 32 | geodata: { 'address' => '123 Main St' }) | CODE |
| LOW | spec/models/family/invitation_spec.rb | 159 | valid_emails = ['test@example.com', 'user.name@domain.co.uk', 'user+tag@example.org'] | CODE |
| LOW | spec/requests/auth/account_links_spec.rb | 6 | let(:user) { create(:user, email: 'user@example.com') } | CODE |
| LOW | spec/requests/users/registrations_spec.rb | 109 | email: 'user@example.com', | CODE |
| LOW | spec/requests/users/registrations_spec.rb | 117 | new_user = User.find_by(email: 'user@example.com') | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 24 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 35 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 53 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 86 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 112 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 131 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/google_spec.rb | 149 | post '/api/v1/auth/google', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 24 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 35 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 53 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 81 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 101 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 127 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 146 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 163 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/requests/api/v1/auth/apple_spec.rb | 184 | post '/api/v1/auth/apple', params: { id_token: 'fake_token' } | CODE |
| LOW | spec/helpers/application_helper_spec.rb | 18 | let(:fake_user) { double(lite?: true, generate_subscription_token: 'test_token') } | CODE |
| LOW | spec/helpers/application_helper_spec.rb | 21 | allow(helper).to receive(:current_user).and_return(fake_user) | CODE |
| LOW | spec/helpers/application_helper_spec.rb | 78 | allow(user).to receive(:generate_subscription_token).and_return('fake_token') | CODE |
| LOW | spec/helpers/application_helper_spec.rb | 80 | expect(helper.subscription_upgrade_url(user)).to eq('https://manager.example.com/auth/dawarich?token=fake_token') | CODE |
| LOW | spec/services/auth/verify_google_token_spec.rb | 27 | .and_return({ 'sub' => 'google-user-id', 'email' => 'user@example.com' }) | CODE |
| LOW | spec/services/auth/verify_google_token_spec.rb | 31 | expect(result).to eq(sub: 'google-user-id', email: 'user@example.com') | CODE |
| LOW | spec/services/auth/verify_apple_token_spec.rb | 38 | email: 'user@example.com', | CODE |
| LOW | spec/services/auth/verify_apple_token_spec.rb | 49 | expect(claims[:email]).to eq('user@example.com') | CODE |
| LOW | spec/services/auth/verify_apple_token_spec.rb | 95 | email: 'user@example.com', | CODE |
| LOW | spec/services/auth/verify_apple_token_spec.rb | 113 | email: 'user@example.com', | CODE |
| LOW | spec/services/visits/names/builder_spec.rb | 64 | 'street' => '123 Main St', | CODE |
| LOW | spec/services/visits/names/builder_spec.rb | 91 | 'street' => '123 Main St', | CODE |
| LOW | spec/services/visits/names/suggester_spec.rb | 100 | 'street' => '123 Main St', | CODE |
| LOW | …c/services/reverse_geocoding/places/fetch_data_spec.rb | 683 | expect(place.name).to include('123 Main Street') | CODE |
| LOW | spec/services/users/export_data/points_spec.rb | 48 | geodata: { 'address' => '123 Main St' }, | CODE |
| LOW | spec/services/users/export_data/points_spec.rb | 101 | 'geodata' => '{"address": "123 Main St"}', # JSON string | CODE |
| LOW | spec/services/users/import_data/places_spec.rb | 14 | 'geodata' => { 'address' => '123 Main St' }, | CODE |
| LOW | spec/services/users/import_data/places_spec.rb | 47 | expect(home_place.geodata).to eq('address' => '123 Main St') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/models/concerns/distanceable.rb | 26 | # Check if lonlat exists and is valid | COMMENT |
| LOW | app/models/concerns/distanceable.rb | 70 | # Check if Geocoder returned NaN or infinite value | COMMENT |
| LOW | app/models/concerns/distanceable.rb | 263 | # Check if Geocoder returned valid distance | COMMENT |
| LOW | app/jobs/tracks/time_chunk_processor_job.rb | 92 | # Check if segment overlaps with the actual chunk range (not buffer) | COMMENT |
| LOW | app/controllers/insights_controller.rb | 143 | # Check if essential data is missing | COMMENT |
| LOW | app/controllers/insights_controller.rb | 146 | # Check if stats have been updated since digest was last calculated | COMMENT |
| LOW | app/controllers/concerns/safe_timestamp_parser.rb | 20 | # Check if it's a valid parse by seeing if year is suspiciously at epoch | COMMENT |
| LOW⚡ | app/helpers/insights_helper.rb | 29 | # Check if previous month exists in available months (same year only for simplicity) | COMMENT |
| LOW⚡ | app/helpers/insights_helper.rb | 38 | # Check if next month exists in available months (same year only for simplicity) | COMMENT |
| LOW | app/helpers/insights_helper.rb | 172 | # Check if activity breakdown has meaningful data | COMMENT |
| LOW | app/services/location_search/geocoding_service.rb | 63 | # Check if there's already a result within 100m | COMMENT |
| LOW | app/services/tracks/boundary_detector.rb | 194 | # Check if two tracks are spatially connected (endpoints are close) | COMMENT |
| LOW | app/services/tracks/boundary_detector.rb | 219 | # Check if two points are within the specified distance | COMMENT |
| LOW | app/services/tracks/time_chunker.rb | 81 | # Check if there are any points in the buffer range to avoid empty chunks | COMMENT |
| LOW | app/services/tracks/session_manager.rb | 60 | # Check if session exists | COMMENT |
| LOW | app/services/tracks/session_manager.rb | 107 | # Check if all chunks are completed | COMMENT |
| LOW | app/services/imports/source_detector.rb | 163 | # Check if it's a KMZ file (ZIP archive) | COMMENT |
| LOW | config/environments/production.rb | 87 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. | COMMENT |
| LOW | config/environments/staging.rb | 84 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. | COMMENT |
| LOW | config/initializers/00_random.rb | 16 | # Check if Random.urandom is available | COMMENT |
| LOW | spec/models/concerns/user_family_spec.rb | 81 | # Set started_at to well in the past so general tests can find their points. | COMMENT |
| LOW | …/services/google_maps/records_storage_importer_spec.rb | 118 | # Set up to capture batch sizes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docker/web-entrypoint.sh | 90 | # Step 1: Database Setup | COMMENT |
| LOW⚡ | docker/web-entrypoint.sh | 96 | # Step 2: Run migrations for all databases | COMMENT |
| LOW | app/models/concerns/soft_deletable.rb | 6 | # WARNING: This concern adds a default_scope that excludes soft-deleted records. | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 12 | # Step 1: User1 creates a family | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 29 | # Step 2: User1 invites User2 | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 41 | # Step 3: User2 views and accepts invitation | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 57 | # Step 4: User1 invites User3 | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 67 | # Step 5: User3 accepts invitation | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 74 | # Step 6: Family owner views members on family show page | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 79 | # Step 7: Owner removes a member | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docker/web-entrypoint.sh | 90 | # Step 1: Database Setup | COMMENT |
| LOW⚡ | docker/web-entrypoint.sh | 96 | # Step 2: Run migrations for all databases | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 12 | # Step 1: User1 creates a family | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 29 | # Step 2: User1 invites User2 | COMMENT |
| LOW | spec/requests/family_workflows_spec.rb | 41 | # Step 3: User2 views and accepts invitation | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 57 | # Step 4: User1 invites User3 | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 67 | # Step 5: User3 accepts invitation | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 74 | # Step 6: Family owner views members on family show page | COMMENT |
| LOW⚡ | spec/requests/family_workflows_spec.rb | 79 | # Step 7: Owner removes a member | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | app/queries/stats_query.rb | 21 | # Split into two queries to leverage partial indexes: | COMMENT |
| MEDIUM | app/javascript/maps_maplibre/utils/route_segmenter.js | 121 | // Stitch segments at ±180° with interpolated latitude for seamless rendering | COMMENT |
| LOW | app/controllers/visits_controller.rb | 141 | # name the picker just set. | COMMENT |
| MEDIUM | app/services/tracks/track_builder.rb | 12 | # 3. Calculates comprehensive statistics: distance, duration, average speed | COMMENT |
| MEDIUM | config/initializers/rswag_api.rb | 12 | # For example, you could leverage this to dynamically assign the "host" property | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CHANGELOG.md | 2395 | - Fix authentication to `GET /api/v1/countries/visited_cities` with header `Authorization: Bearer YOUR_API_KEY` instead | CODE |
| HIGH | CHANGELOG.md | 2691 | Authorization: Bearer YOUR_API_KEY | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/models/concerns/distance_convertible.rb | 14 | # Usage: | COMMENT |
| LOW | app/jobs/transportation_modes/backfill_job.rb | 9 | # Usage: | COMMENT |
| LOW | app/services/transportation_modes/detector.rb | 9 | # Usage: | COMMENT |
| LOW | app/services/tracks/track_builder.rb | 31 | # Example usage: | COMMENT |
| LOW | app/services/tracks/segmentation.rb | 31 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | spec/spec_helper.rb | 55 | # with RSpec, but feel free to customize to your heart's content. | COMMENT |